I know the Linux community wants newcomers to read to find their answers, which I'm cool with. Thing is: I've been Google-ing and combing the howtos for the past 2 days to try to come up with a solution to this problem:
I would like to start samba at boot, which I think I accomplished. Made my own script and then found a better one. I think I'm calling "samba.init" from inittab.
At that point, I'm calling another script "mntmldnfs" with a couple of smbmount lines to mount different directories, but nothing's happening. Samba's running, I think, because I can smbmount after boot from the console.
A note: I have no password on the account the shares are in, so I've been using the "guest" option to avoid a password prompt. I also tried playing around with the fstab file. I get a bootup message along the lines of "Can't mount some network file systems."
There's my problem in a nutshell. Can anyone help?
samba on boot, and mounting windoze shares on boot
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
(generally) gentoo provides you with scripts to start and stop your daemons.
To make samba start on boot
To mount a network share at boot fstab is the way to do it add a line like
You may need to use the ip address of the server rather than it's name, unless there is an entry in your hosts file.
To make samba start on boot
Code: Select all
rc-update add samba default
Code: Select all
//server/share /mnt/point smbfs username=user,password=pass 0 0
If you keep an open mind, will your brain fall out?
I am so stupid...
It worked, and I owe you many thanks...
I'd seen it in other places where you put "username=user", etc, and I had been substituting my windows username and password. I could kick myself for that waster time.
Again, thanks for the help....
I'd seen it in other places where you put "username=user", etc, and I had been substituting my windows username and password. I could kick myself for that waster time.
Again, thanks for the help....