LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-08-2012, 11:06 AM   #1
shayno90
Member
 
Registered: Oct 2009
Distribution: Debian Lenny 2.6.26 Ubuntu Lucid Lynx 10.04 Windows 7
Posts: 187
Blog Entries: 2

Rep: Reputation: 21
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.

Last edited by shayno90; 08-09-2012 at 10:14 AM.
 
Old 08-15-2012, 07:59 AM   #2
shayno90
Member
 
Registered: Oct 2009
Distribution: Debian Lenny 2.6.26 Ubuntu Lucid Lynx 10.04 Windows 7
Posts: 187
Blog Entries: 2

Original Poster
Rep: Reputation: 21
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.
 
Old 08-18-2012, 03:21 PM   #3
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
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
 
Old 08-19-2012, 01:54 PM   #4
shayno90
Member
 
Registered: Oct 2009
Distribution: Debian Lenny 2.6.26 Ubuntu Lucid Lynx 10.04 Windows 7
Posts: 187
Blog Entries: 2

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by Ygrex View Post
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.
 
  


Reply

Tags
debian, samba permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] samba insuffecent permissions issue schrodingore Linux - Newbie 3 03-13-2012 08:41 PM
SAMBA Permissions issue sourabhmaggo Linux - Newbie 8 08-20-2011 01:13 AM
permissions issue with Samba and CentOS 5.2 hotrock3 Linux - Networking 4 01-10-2009 09:59 PM
Samba Permissions Issue... I'm So Close, Please Help! balzack Debian 11 02-21-2006 09:53 AM
Another samba permissions issue... but at least I searched! gauge73 Linux - Networking 11 08-05-2005 07:32 PM


All times are GMT -5. The time now is 02:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration