[linux-cifs-client] mount.cifs permission denied problem

Jeff Layton jlayton at redhat.com
Thu Dec 4 15:04:43 GMT 2008


On Thu, 04 Dec 2008 15:34:35 +0100
Marco Stornelli <marco.stornelli at coritel.it> wrote:

> He's the user user1 (with uid 1001).
> 
> Jeff Layton ha scritto:
> > On Thu, 04 Dec 2008 11:36:11 +0100
> > Marco Stornelli <marco.stornelli at coritel.it> wrote:
> > 
> >> Hi all,
> >>
> >> I'm trying to make a file server with samba. I have got a folder called
> >> shared and I'd like to have N sub-folder for N users. The permission
> >> pattern is 755. Everything works both with Linux and Windows client. It
> >> doesn't work if mount the shared folder with mount.cifs. The situation is:
> >>
> >> drwxr-xr-x 2 1001 users 0  3 dic 13:38 folder1
> >> drwxr-xr-x 2 1002 users 0  3 dic 13:39 folder2
> >> drwxr-xr-x 2 1003 users 0  3 dic 13:40 folder3
> >> drwxr-xr-x 2 1004 users 0  3 dic 13:41 folder4
> >>
> >>
> >> If I use:
> >>
> >> mount -t cifs -o credentials=<file>,gid=users,uid=1001 //<ip>/sharedoc
> >> <mount_point>
> >>
> >> (uid 1001 is the uid of user1)
> >>
> >>
> >> when I enter in the folder1 and I try to create a new folder, for
> >> example, I receive the error permission denied! But the owner of folder1
> >> is user1! This thing happens only with mount, with smbclient command
> >> everything works. Can you help me?
> >>
> > 
> > Who is the user in the credentials file?
> > 
> 

Ahh ok...if you're using samba as the server then you may be having
problems with uid mapping. Does user1 have the same uid on client and
server? Presuming you're using a recent kernel, if you mount with the
"nounix" mount option, does it then work?

-- 
Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list