LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Samba permissions issue in Debian (http://www.linuxquestions.org/questions/debian-26/samba-permissions-issue-in-debian-4175421022/)

shayno90 08-08-2012 10:06 AM

Samba permissions issue in Debian
 
I cannot access to a specific folder on my samba share:

Quote:

You do not have the permissions necessary to view the contents of "folder 2".
I added my account to the required group but still cannot access this folder.

I can access folder 3 in this share as the group is different, i.e.:

ls -l /share/MainFolder

drwsrws--- 2 root user 4096 Apr 7 2012 folder 1
drwsrws--- 2 root admin 4096 Apr 7 2012 folder 2
drwsrws--- 2 root operator 4096 Apr 7 2012 folder 3

I can access "folder 3" as this is the primary group for my username:

uid=1005(myusername) gid=513(operator) groups=513(operator),1010(othergroup),1013(admin)

Folder 1, I don't need access to but folder 2, I do need access to and I added myself as member but don't have the correct permissions:

smbldap-groupshow admin
dn: cn=admin,ou=Groups,dc=storage,dc=ie
objectClass: top,posixGroup,sambaGroupMapping
cn: admin
gidNumber: 1013
sambaSID: XXX-XXX-XXX-XX-XXX-XX
sambaGroupType: 2
displayName: admin
memberUid: user1,user2,myusername

How can I check the permissions my username has for this directory and how do I change it to get access?

I don't have the commands for setfacl or getfacl installed so want to know how else I can check.

shayno90 08-15-2012 06:59 AM

Check the groups which you are a member of and need to be a member of carefully and then restart the samba service.

This will correct the permission denied error.

Ygrex 08-18-2012 02:21 PM

samba does not provide any info about owner or access mode, all these things can be easily overridden with mount options: http://linux.die.net/man/8/mount.cifs ; uid=1005,forceuid should help you

shayno90 08-19-2012 12:54 PM

Quote:

Originally Posted by Ygrex (Post 4757795)
samba does not provide any info about owner or access mode, all these things can be easily overridden with mount options: http://linux.die.net/man/8/mount.cifs ; uid=1005,forceuid should help you

Best to check the specific samba commands as set out in the /etc/samba/samba.conf and use those commands, only those commands can be used to add/remove etc., users to specific groups.

Of course then restart Samba service.


All times are GMT -5. The time now is 02:13 PM.