Most probably PATH. Dirty solution may be appending the full path to the
binary.

Logged as root:

# which usmb

should get you the full path name for your command. Something like
'/usr/local/bin/usmb'. Use this full path instead of 'usmb0', i.e.

/usr/local/bin/usmb -c /root/.usmb.conf boxx &> /dev/null

Regards!


El mié., 19 jun. 2019 a las 9:53, slackwaree (<slackwa...@protonmail.com>)
escribió:

> Hello guys,
>
> I know everyone hates windoz :( but here is something I would like to
> solve:
>
> I have a working share with usmb. I have writteng an rc script to mount
> this at boots:
>
> #!/bin/sh
> sleep 60
>
> usmb -c /root/.usmb.conf boxx &> /dev/null
>
> Adding sleep didnt help.
> I have put this script into /etc/rc.local but unfortunately it does not
> mount anything. Maybe some enviromental variable is not loaded in correctly?
>
> As root manually this works and mounts the share.
>

Reply via email to