I'm using Samba for sharing files in a Linux Embedded. I need the permissions of the files to be of this type on the server:

-rwxrwx--- 1 user group

I shared those files with Samba and allowed the access to the only user "user". This works correctly. But if I mount using cifs, on the other end I get:

-rwxrwx--- 1 usbmux avahi-autoipd

What are those user/group? Can I somehow change this? Because this way I can do nothing on those files.

This is my configuration:

comment = Luca's public files
path = <path>
force user = luca
valid users = luca
force group = luca
read only = no
hosts allow =
hosts deny =
create mask = 0777
browsable = yes

where luca is a user that on the server is able to both read and write those files (he is in the group "group").

  • Check the UID and GID on both ends of the affected users. – Michael Hampton Aug 24 '13 at 19:25
  • Ah, I see. The uid and gid are mapped to different users. I didn't know this. I didn't even know that uid and gid existed... But is it possible to change this? Like allowing my client to read/write those files provided the client has the password of course. – Luca Carlon Aug 24 '13 at 19:52

Solution was pretty simple: just add these options to the mount options:


this way it seems to work perfectly. Permissions are preserved and owner and group are mapped to those I specified in the mount options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.