Click to See Complete Forum and Search --> : mounting samba shares automatically?
Is there any where to put smbmount commands so they are called each time the computer is started up?
Also, is there any possiblility of changing the smbmount command to be run as any user rather than just root?
Cheers,
James
twofoolish2b
03-14-2001, 01:39 PM
Try putting smbmount commands in the /etc/rc.d/rc.local file.
Ummmm, thanks for the suggestion, but there is no rc.local file :-/
I am running SuSE 7.1 by the way,
Thanks again,
James
:david:
03-14-2001, 02:39 PM
my colleague says it could be called boot.local
Ahhh, there is a boot.local, but, the script is executed before samba is set up!
I have managed to do it before.... but I just can not remember how!
Thanks anyway,
James
Lorithar
03-14-2001, 03:51 PM
*chuckles*
Not knowing Suse of the start ..I'll give this a stab ..
Find the script that starts samba .. and insert the mount commands after samba is started ... I suggest putting in comments so that someone coming along later can figure out what/why they are there...
Something to note from my experiences .. background the command (use the & ) ... since if the windows box you're trying to attach to isn't up ... that command will take quite some time to execute... and fail. ... (I run slack and my smbmounts are in rc.local) .. I tried sticking them in fstab (it can be done,) however I had the same problem ... fstab is executed before samba starts.
Well, I tried to put the smbmount commands in the rc.d/smbfs... but no joy :-(
And I too tried the fstab.... which did work once the system had started and you run mount -a!
Maybe rc.d/smb instead? I will try that ;-)
Just out of interest, when is the rc.local script run then? And do you use the smbmount or mount -t smbfs command?
Cheers,
James
Fantastic, putting commands in the /etc/rc.d/smb worked!
:D
cheers everyone ;)