Hi there, How do I automate smbmnt so that when logging on, it mounts the required shared directories on an NT4.0 file system using the user name and password I used t gain access to the GUI ? I s this possible. I am currently running Network Neighborhood and have been using this application for access but this requires that I scan mount and log-on again before gaining access to that share. I would like to be able to add a shortcut to the desktop that will give me access to that the share as well. Is this at all possible ? thanks Lloyd Intervid Technologies
On Mon, 23 Sep 2002, lloydl wrote:> Hi there, > > How do I automate smbmnt so that when logging on, it mounts the required > shared directories on an NT4.0 file system using the user name and > password I used t gain access to the GUI ?You mean smbmount? pam_mount will mount things at login time. But that's the full extent of my knowledge on it.> I s this possible. I am currently running Network Neighborhood and have > been using this application for access but this requires that I scan > mount and log-on again before gaining access to that share. I would like > to be able to add a shortcut to the desktop that will give me access to > that the share as well. Is this at all possible ?If it's only for one user you can create an autofs mount that mounts the //server/share when you access it, without asking for password if you give it one in the cfg file (or in a separate file using the credentials option). /Urban PS: 'lloydl@cat..co.za' doesn't look like a vaild email address.
I have a tangential question based upon your response about the credentials file. I have set up a smbmount to happen on boot in /etc/fstab, but am looking for a good way to not be prompted for the password, and not have the password in plaintext in /etc/fstab, or in a credentials file. Do you know how I can acheive this? Thanks for the help. Michael -----Original Message----- From: Urban Widmark [mailto:urban@teststation.com] Sent: Tuesday, September 24, 2002 3:20 PM To: samba@samba.org Subject: Re: [Samba] How to automate SMBMNT On Mon, 23 Sep 2002, lloydl wrote:> Hi there, > > How do I automate smbmnt so that when logging on, it mounts the required > shared directories on an NT4.0 file system using the user name and > password I used t gain access to the GUI ?You mean smbmount? pam_mount will mount things at login time. But that's the full extent of my knowledge on it.> I s this possible. I am currently running Network Neighborhood and have > been using this application for access but this requires that I scan > mount and log-on again before gaining access to that share. I would like > to be able to add a shortcut to the desktop that will give me access to > that the share as well. Is this at all possible ?If it's only for one user you can create an autofs mount that mounts the //server/share when you access it, without asking for password if you give it one in the cfg file (or in a separate file using the credentials option). /Urban PS: 'lloydl@cat..co.za' doesn't look like a vaild email address. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
> Message: 21 > Date: Thu, 26 Sep 2002 22:20:08 +0200 (CEST) > From: Urban Widmark <urban@teststation.com> > To: Michael Marano <michael.marano@m23.com> > Cc: samba@samba.org > Subject: RE: [Samba] How to automate SMBMNT > > On Tue, 24 Sep 2002, Michael Marano wrote: > > >> I have a tangential question based upon your response about the >> credentials file. I have set up a smbmount to happen on boot in >> /etc/fstab, but am looking for a good way to not be prompted for the >> password, and not have the password in plaintext in /etc/fstab, or in a >> credentials file. Do you know how I can acheive this? > > > I think pam_mount does what you want. It uses the username/password you > use to login to the linux box in the smbfs mount command. > > > smbmount could be modified to work with some kind of "ssh-agent" workalike > to allow you to give the username/password once and then re-use it for > your other mount requests. It wouldn't even have to be a smbmount specific > daemon. >You mean something like this? http://uranus.it.swin.edu.au/~jn/linux/smbfs/index.html But, every time I think about this, it makes me wonder if this ins't what kerberos is supposed to do (aka I don't like having anything around which caches the clear-text passowrd).> I don't think any of the smb related pam modules do this (or winbindd or > ...) but I haven't really looked.If something like this were to occur, then it would be nice if it were standardised, so that all linux smb clients could use it. Including smbclient, smbmount, pam_mount (in case smbmount doesn't find a running daemon when pam_mount runs it), kio_smb, the gnome-vfs module for smb, komba2 (so it doesn't need your password to find shares on a server that doesn't allow guest connections) etc. BTW, we got a patch from a user who had problems with smbmount's hanging when the smb server went down, to run umount2 on the mount point. Interested? Buchan -- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7