Access denied on mount in rc.local
I have the following line in rc.local:
mount /mnt/HellServer/fat-c
mount /mnt/HellServer/fat-d
and in fstab:
//10.0.0.12/c /mnt/HellServer/fat-c smbfs noauto,users,rw,guest 1 0
//10.0.0.12/d /mnt/HellServer/fat-d smbfs noauto,users,rw,guest 1 0
I can execute the mount commands exactly as shown above after I login, and it works, but I can't it to work from rc.local. I tried to put the appropriate lines in fstab with auto instead of noauto, but it gives a no network error. Maybe I'm going about this the wrong way? How can I map/mount these shares at boot, but before login?
|