[Samba] authentication problem pam_mount

daves-jr at cecom.ufmg.br daves-jr at cecom.ufmg.br
Mon Nov 29 16:28:40 GMT 2004


Try using:

volume * smb server homes ~ uid=&,gid=&,dmask=0750,workgroup=AEGIDIUS - -

---------------------------------------------------
Emerson Henrique Kfuri Pereira

Divisão de Atendimento e Consultoria
CECOM - Reitoria - UFMG
Telefone: 34994009
---------------------------------------------------


                                                                           
             Norman                                                        
             Uittenbogaart                                                 
             <norman at webminded                                        Para 
             .nl>                      samba at lists.samba.org               
             Enviado Por:                                               cc 
             samba-bounces+dav                                             
             es-jr=ufmg.br at lis                                     Assunto 
             ts.samba.org              [Samba] authentication problem      
                                       pam_mount                           
                                                                           
             29/11/2004 14:20                                              
                                                                           
                                                                           
                                                                           
                                                                           




The setup is a samba server with mixed clients (samba clients and
windows clients).

The problem,

I want the linux client to mount there home to their home share on the
server. The problem is, I have followed the guide mentioned below and
everything works except that the linux usernames have the format
domeinnaam+username as a result of which pam_mount wants to mount
\\server\domeinnaam+username which naturally should be
\\server\username, can you think of a manner to solve this issue or know
of another way to solve this problem?

GUIDE: http://www.hants.lug.org.uk/cgi-bin/wiki.pl?LinuxHints/SambaAuth

> Nov 29 14:08:17 xandros login[1050]: pam_mount: about to perform mount
operations
> Nov 29 14:08:17 xandros login[1050]: pam_mount: information for mount:
> Nov 29 14:08:17 xandros login[1050]: pam_mount: --------
> Nov 29 14:08:17 xandros login[1050]: pam_mount: (defined by globalconf)
> Nov 29 14:08:17 xandros login[1050]: pam_mount: user: AEGIDIUS+norman
> Nov 29 14:08:17 xandros login[1050]: pam_mount: server: server
> Nov 29 14:08:17 xandros login[1050]: pam_mount: volume: AEGIDIUS+norman
> Nov 29 14:08:17 xandros login[1050]: pam_mount: mountpoint:
/home/AEGIDIUS/norman
> Nov 29 14:08:17 xandros login[1050]: pam_mount: options:
uid=AEGIDIUS+norman,gid=AEGIDIUS+norman,dmask=0750,workgroup=AEGIDIUS
> Nov 29 14:08:17 xandros login[1050]: pam_mount: fs_key_cipher:
> Nov 29 14:08:17 xandros login[1050]: pam_mount: fs_key_path:
> Nov 29 14:08:17 xandros login[1050]: pam_mount: use_fstab: 0
> Nov 29 14:08:17 xandros login[1050]: pam_mount: --------
> Nov 29 14:08:17 xandros login[1050]: pam_mount: checking to see if
//server/AEGIDIUS+norman is already mounted at /home/AEGIDIUS/norman
> Nov 29 14:08:17 xandros login[1050]: pam_mount: checking for encrypted
filesystem key configuration
> Nov 29 14:08:17 xandros login[1050]: pam_mount: about to start building
mount command
> Nov 29 14:08:17 xandros login[1050]: pam_mount: command:
/usr/bin/smbmount //server/AEGIDIUS+norman /home/AEGIDIUS/norman -o
username=AEGIDIUS+norman,uid=AEGIDIUS+norman,gid=AEGIDIUS+
> Nov 29 14:08:17 xandros login[1050]: pam_mount: mount errors (should be
empty):
> Nov 29 14:08:17 xandros login[1050]: pam_mount: pam_mount: setting uid to
0
> Nov 29 14:08:17 xandros login[1050]: pam_mount: pam_mount: real and
effective user ID are 0 and 0.
> Nov 29 14:08:17 xandros login[1050]: 2197: tree connect failed: ERRDOS -
ERRnosuchshare (You specified an invalid share name)
> Nov 29 14:08:18 xandros login[1050]: pam_mount: SMB connection failed

An here is the configuration rule from pam_mount.conf

> # If user is "*", "&" will be replaced by name of the user logging on in
the
> # volume, mount point, mount options and fs key path fields. "~/*" will
be
> # replaced with "<user's homedir>/*."
> # Format:
> # volume <user> [smb|ncp|nfs|local] <server> <volume> <mount point>
<mount options> <fs key cipher> <fs key path>

> volume * smb server & ~ uid=&,gid=&,dmask=0750,workgroup=AEGIDIUS - -

I have been at this for a week now and still haven't found a solution,
big problems because this week I have to deploy the workstations :(


Best regards,

Norman
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list