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

Marco Stornelli marco.stornelli at coritel.it
Thu Dec 4 16:09:21 GMT 2008


Sorry, my mistake, with nounix works! Thank you very much!!!

Marco Stornelli ha scritto:
> With nounix option works but only if I mount with dir_mode=0777 and
> file_mode=0777. However user1 can access to the folder2 of user2. It's
> not very useful. If I mount with dir_mode=0755 and file_mode=0755, it
> doen't work, I still have permission denied.
> 
> Jeff Layton ha scritto:
>> 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?
>>
> 



More information about the linux-cifs-client mailing list