[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Montaggio home directories da server sui client con pam_mount



Ciao,
non sono esperto di pam_mount, e non ho la soluzione pronta, ma ti posso
fare notare alcune cose.

Il giorno mar, 15/05/2012 alle 21.31 +0200, zingalo ha scritto:
[...]
> Riesco a montarle a mano da client:
> mount.cifs //amahoro/users/username /home/username -o user=username

nota: lo monti a mano da root o dall'utente in questione?

[...]
> login:leonidas
> Password:
> 
> pam_mount(rdconf1.c:699): path to luserconf set to 

nota: luserconf

> /users/leonidas/.pam_mount.conf.xml
> pam_mount(pam_mount.c:553): pam_mount 2.10: entering session stage
> pam_mount(misc.c:38): Session open: (ruid/rgid=0/0, e=0/0)
> pam_mount(mount.c:647): Could not get realpath of /home/leonidas: No 
> such file or directory
> pam_mount(mount.c:218): Mount info: globalconf, user=leonidas <volume 
> fstype="cifs" server="amahoro" path="users/leonidas" 
> mountpoint="/home/leonidas" cipher="(null)" fskeypath="(null)" 
> fskeycipher="(null)" fskeyhash="(null)" options="" /> fstab=0 ssh=0
> pam_mount(mount.c:259): mkmountpoint: checking /home
> pam_mount(mount.c:259): mkmountpoint: checking /home/leonidas
> pam_mount(mount.c:299): mkdir[0] /home/leonidas
> pam_mount(mount.c:307): chown /home/leonidas -> 2001:513
> command: 'mount' '-t' 'cifs' '//amahoro/users/leonidas' '/home/leonidas' 
> '-o' 'user=leonidas,uid=2001,gid=513'
> pam_mount(spawn.c:134): setting uid to user leonidas

nota: setting uid to user leonidas

> pam_mount(misc.c:38): set_myuid<post>: (ruid/rgid=2001/513, e=2001/513)
> pam_mount(mount.c:69): Messages from underlying mount program:
> pam_mount(mount.c:73): mount: only root can do that

nota: only root can do this.

Prova a leggere questo bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=190267

Mi sa che devi trovare un metodo per montare la home con l'account
dell'utente e non con quello di root. Dal messaggio d'errore sembrerebbe
che il comando mount che hai definito non funzioni da utente normale.

Ciao,
G.


Reply to: