Help me make my dream a reality : Mounting smb shares at logi n.

Anders C. Thorsen anders at cwd.no
Wed Jan 24 21:25:42 GMT 2001


You might have done this as well, but....

Check the permissions on the file. It might be world readable, 
which may not be good if it contains passwords. 

(I've never tried pam_mount, but it's my best guess...)

--Anders

-----Original Message-----
From: samba-technical-admin at us5.samba.org
[mailto:samba-technical-admin at us5.samba.org]On Behalf Of Grant Torresan
Sent: Wednesday, January 24, 2001 9:58 PM
To: samba-technical at samba.org
Subject: RE: Help me make my dream a reality : Mounting smb shares at
logi n.


Heh.

yeah I did that, didn't change anything, surprisingly.

So then, just to make SURE the user owned the file, I logged in as the user
and wrote the file as him in his home directory.  Still no luck. same error
message.

Is there some special stuff I have to put into the .pam_mount.conf file or
something? I am really confused by this error message.

-----Original Message-----
From: Welsh, Armand [mailto:armand.welsh at sscims.com]
Sent: Wednesday, January 24, 2001 4:00 PM
To: 'Grant Torresan'; samba-technical at samba.org
Subject: RE: Help me make my dream a reality : Mounting smb shares at
logi n.


Don't take this the wrong way, but is the user of /home/username the owner
of the the file??
ls -l /home/username/.pam_mount.conf

you should see owner as being username.  if not, from root, chown username
/home/username/.pam_mount.conf

-> -----Original Message-----
-> From: Grant Torresan [mailto:gtorresan at itemus.com]
-> Sent: Wednesday, January 24, 2001 12:33 PM
-> To: samba-technical at samba.org
-> Subject: RE: Help me make my dream a reality : Mounting smb shares at
-> logi n.
-> 
-> 
-> Ok I'm trying to use this pam_mount stuff.. It works well enough if I
-> specify the volumes to be mounted in /etc/pam_mount.conf , 
-> but if I use the
-> Luserconf option, I get the following error :
-> 
-> File ~/.pam_mount.conf could not be stat'ed
-> User does not own <luserconf>
-> 
-> 
-> below is the contents of my /home/username/.pam_mount.conf :
-> 
-> volume test smb xappserv homes /home/test
-> 
-> 
-> and next is my /etc/pam_mount.conf file :
-> # Turn on if you want to debug why some volume cannot be mounted etc.
-> # This can be overriden by user's local configuration
-> # 
-> # Format: debug [ 1 | 0 ]
-> # Local user configuration can override this.
-> 
-> debug 1
-> 
-> # Users' local configuration file (if there is none, comment out this
-> # parameter). Will be read as ~/<file>
-> #
-> # Format: luserconf <file>
-> 
-> luserconf .pam_mount.conf
-> 
-> # Commands to mount/unmount volumes. They can take 
-> parameters, as shown.
-> 
-> smbmount /bin/mount -t smbfs
-> ncpmount /bin/mount -t ncpfs
-> umount   /bin/umount
-> pmhelper /usr/bin/pmhelper
-> 
-> # Volumes that will be mounted when user triggers pam_mount module
-> # (usually at login).
-> #
-> # Format: volume <user> [ smb | ncp ] <server> <volume> <mount point>
-> #
-> # Local user configuration can extend this.
-> # Mount mount must be owned by the user.
-> 
-> #volume user1 smb krueger public /home/user1/krueger
-> #volume user2 smb krueger public /home/user2/krueger
-> 
-> 
-> I ask you guys only because the docs don't really cover this sort of
-> occurance.
-> 
-> And yes, I can mount this stuff manually.
-> 
-> Thanks
-> 
-> Grant Torresan.
-> 
-> 
-> -----Original Message-----
-> From: Grant Torresan [mailto:gtorresan at itemus.com]
-> Sent: Wednesday, January 24, 2001 11:23 AM
-> To: Chris Hines; samba-technical at samba.org
-> Subject: RE: Help me make my dream a reality : Mounting smb shares at
-> logi n.
-> 
-> 
-> Tried using NFS but I'm afraid it won't work because those 
-> directories still
-> need to be SMB-accessible for windows clients. mounting the 
-> same directories
-> with NFS and Samba at the same time causes me some nasty 
-> file-permission
-> problems. (no write access from NFS side, even though RW is enabled).
-> 
-> However, the pam_mount thing seems to be just what the 
-> doctor ordered!! Way
-> cool.
-> 
-> I'm working it into my solution now and it looks like it'll 
-> fit like a
-> glove.
-> 
-> Thanks guys!
-> 
-> 
-> 
-> 
-> -----Original Message-----
-> From: Chris Hines [mailto:c.d.r.hines at reading.ac.uk]
-> Sent: Wednesday, January 24, 2001 11:23 AM
-> To: Grant Torresan
-> Subject: Re: Help me make my dream a reality : Mounting smb shares at
-> login.
-> 
-> 
-> 
-> If it's a samba server it must be on unix. Can you just use 
-> nfs mounting
-> to mount the drives off the samba server onto linux servers. 
-> NFS is more
-> effecient than samba. If you wanted the files to only be mounted when
-> needed you can use the automounter.
-> 
-> Chris
->  
-> On Wed, 24 Jan 2001, Grant Torresan wrote:
-> 
-> > Hi all.
-> > 
-> > Here's what I'm trying to do here:
-> > 
-> > When a user logs into Linux server A , the login script (.bashrc or
-> > equivalent) then mounts the contents of 
-> <file://SAMBASERV/HOMES> to the
-> > user's current home directory : /home/(username) using smbmount (or
-> > equivalent).
-> > 
-> > The problem I am having here is that the username AND 
-> password must be
-> > included in the script to mount that share from the 
-> SAMBASERV server.. And
-> > I'm not sure howI can get that information into the login script
-> > automatically.
-> > 
-> > As is, Linux server A uses LDAP authentication to 
-> authenticate all users,
-> so
-> > I'm thinking that perhaps i can make the login script grab 
-> that user's
-> > username/password from the ldap database, and then forward that
-> information
-> > on to the SAMBASERV when it tries to mount thier [HOMES] directory.
-> > 
-> > However, I'm not sure if this is possible/practical.  Any 
-> Ideas on how I
-> > might implement this solution?
-> > 
-> > If anyone can help me with this I would be most greatful.
-> > 
-> > Thanks.
-> > 
-> > Grant Torresan.
-> > gtorresan at itemus dot com
-> > 
-> > 
-> 





More information about the samba-technical mailing list