[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pam-mount-devel] new files in mounted directory owned by root
From: |
Selena Brewington |
Subject: |
[Pam-mount-devel] new files in mounted directory owned by root |
Date: |
Fri, 18 Mar 2005 15:00:07 -0800 |
Hello!
I've been scratching my head for an hour or so trying to figure this
one out. I'm working with Fedora Core 2. I've got the directory
mounting, but when I try to create new files, they are owned by root.
At first, I was getting this in the debug logging:
Mar 18 13:31:06 manu-proe1 sshd[3199]: pam_mount: real and effective
user ID are 1056 and 1056.
...
Mar 18 13:31:06 manu-proe1 sshd[3200]: pam_mount: error setting uid to 0
And the system was unable to mount the directory.
Then, per a suggestion here:
https://www.eng.uwaterloo.ca/twiki/bin/view/Linux/
I disabled UsePrivilegeSeparation in SSH and all the sudden I had:
Mar 18 13:58:11 manu-proe1 sshd[3339]: pam_mount: real and effective
user ID are 0 and 0.
And the directory mounted! Now, I've got this file creation problem.
My pam_mount.conf is:
debug 1
mkmountpoint 1
lsof /usr/sbin/lsof %(MNTPT)
fsck /sbin/fsck -p %(FSCKLOOP)
losetup /sbin/losetup -p0 "%(before=\"-e \" CIPHER)" "%(before=\"-k \"
KEYBITS)" %(FSCKLOOP) %(VOLUME)
unlosetup /sbin/losetup -d %(FSCKLOOP)
cifsmount /bin/mount -t cifs //%(SERVER)/%(VOLUME) %(MNTPT) -S -o
"user=%(USER)%(before=\",\" OPTIONS)"
smbmount /bin/mount -t smbfs //%(SERVER)/%(VOLUME) %(MNTPT) -o
"username=%(USER)%(before=\",\" OPTIONS)"
ncpmount /bin/mount -t ncpfs %(SERVER)/%(USER) %(MNTPT) -o
"pass-fd=0,volume=%(VOLUME)%(before=\",\" OPTIONS)"
# Linux supports lazy unmounting (-l). May be dangerous for encrypted
volumes.
# May also break loopback mounts because loopback devices are not freed.
# Need to unmount mount point not volume to support SMB mounts, etc.
umount /bin/umount %(MNTPT)
# On OpenBSD try "/usr/local/bin/mount_ehd" (included in pam_mount
package).
lclmount /bin/mount -p0 %(VOLUME) %(MNTPT) "%(before=\"-o \" OPTIONS)"
nfsmount /bin/mount %(SERVER):%(VOLUME) "%(MNTPT)%(before=\"-o \"
OPTIONS)"
# --bind may be a Linuxism. FIXME: find BSD equivalent.
mntagain /bin/mount --bind %(PREVMNTPT) %(MNTPT)
mntcheck /bin/mount # For BSD's (don't have /etc/mtab)
volume * smb server & /network/path/Everybody/&
uid=&,dmask=0750,gid=staff,workgroup=WORKGROUP - -
Anyone have a hint to point me in the right direction?
-selena
--
Selena Brewington
IT Manager, King Cycle Group
www.chrisking.com / 503.972.4050 x230
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pam-mount-devel] new files in mounted directory owned by root,
Selena Brewington <=