Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I got a problem mounting a samba share with /etc/security/pam_mount.conf.xml. Client OS: Ubuntu 12.10 x64

When I manually mount it access right information (user/group/other) are displayed correctly like they are set on the server, but with pam_mount the options forceuid and forcegid are passed aswell, as it seems (from log):

/mnt/user rw,relatime - cifs //x.x.x.x/share rw,vers=1.0,sec=ntlm,cache=loose,unc=\\x.x.x.x\share,username=user,uid=1234,forceuid,gid=1234,forcegid,addr=x.x.x.x,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,actimeo=1

So all folder and files seem to belong to the user although they do not.

drwxr-xr-x 2 user user    0 Mai 14 14:32 testfolder1/
drwxr-x--- 2 user user    0 Mai  3 12:41 testfolder2/

What can I do to control what options PAM mount issues ? Or what can I do to negate forceuid and forcegid ?

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.