Hi list, I've installed samba 2.2.3a on my Linux box. I have to join into an NT4 domain and all works fine. I've got only a question: Now I'm able to mount the NT share with the command: mount -t smbfs -o username=morgan,password=morgan //SERVERNT/DISC /mnt and it works only if I am root. Is there any possibility of mounting it automatically on boot? I've tough about /etc/fstab but I don't if there is a correct syntax to include username and password. Any ideas? Thanks in advance.
> Now I'm able to mount the NT share with the command: > mount -t smbfs -o username=morgan,password=morgan //SERVERNT/DISC/mnt> and it works only if I am root. > Is there any possibility of mounting it automatically on boot? > I've tough about /etc/fstab but I don't if there is a correct syntaxto include> username and password. > Any ideas?You can use the credentials option: //SERVER/DISC /mnt smbfs credentials=/home/morgan/.smbpw,uid=morgan,gid=morgan,fmask=600,dmask=700 Where .smbpw file contains the following lines:* username=morgan password=morgan pam_mount (http://pam-mount.conectevil.com/) might be the best solution. I've installed the package yesterday but haven't managed to make it work with winbind yet. Regards. Sabrina --------------------------------------------- Powered by Alinto (http://www.alinto.net) for lavache.com (http://www.lavacheautomatique.com)
You could put that command into rc.local or its equivalent on your system. Joel On Thu, Jun 13, 2002 at 10:34:22AM +0200, morgan31@libero.it wrote:> Hi list, I've installed samba 2.2.3a on my Linux box. > I have to join into an NT4 domain and all works fine. > I've got only a question: > Now I'm able to mount the NT share with the command: > mount -t smbfs -o username=morgan,password=morgan //SERVERNT/DISC /mnt > and it works only if I am root. > Is there any possibility of mounting it automatically on boot? > I've tough about /etc/fstab but I don't if there is a correct syntax to include username and password.
morgan31@libero.it
2002-Jun-13 03:33 UTC
[Samba] Re:Re: [Samba] How to automatically mount shares.
>You can use the credentials option: >//SERVER/DISC /mnt smbfs >credentials=/home/morgan/.smbpw,uid=morgan,gid=morgan,fmask=600,dmask=700 > >Where .smbpw file contains the following lines:* >username=morgan >password=morganIt works!Thanks a lot. Where did you find that option? I can't find it in man pages.> >pam_mount (http://pam-mount.conectevil.com/) might be the best >solution. I've installed the package yesterday but haven't managed >to >make it work with winbind yet.I'm a beginner with pam.I'll try to understand how does it works. Thanks again.