Running user script at boot

I want to be able to run a user defined script at completion of the boot process on my WD My Cloud running OS5.

The script will simply create an ‘.ssh’ directory in /home/root and copy the authorized_keys file there so that ‘passwordless’ ssh logins can occur.

This is required because I have Windows scheduled tasks that copy files off of the Windows Server to the MyCloud and its backup device.

Hi @gary.franco,

Please refer to the article of How to Access a My Cloud Using SSH (Secure Shell):

Thank you for the response however if you read my question more carefully, it did even come close to answering my question.

I would think that there should be a way to run a script in a change in config.xml during the boot process

Under OS3 this was possible. Not sure under OS5. Search for s98user-start to find numerous discussions about using that file to issue certain scripting calls under OS3. It might give some ideas how to do it under OS5 through trial and error.

https://community.wd.com/search?q=s98user-start

Of course standard warning applies. Use at your own risk!!! Issuing the wrong root level command could brick the unit and render it unusable.

Thanks for your response and the ‘warning’ , I tried something on my own and cratered my NAS, luckily got it back

Thanks again