Link to home
Start Free TrialLog in
Avatar of davidndallas
davidndallas

asked on

Linux - Group permission for a user not working

Hi ..I use Debian with Samba installed. I have a group called Sales that has full access to a folder called Reports. 10 users are part of this Sales group. It's been working fine for years then sudenly one user from this group is getting a denied access on this Reports folder. I did not change or add any permissions or groups.

Any ideas?

Thank you.
Avatar of Ibrahim Bazarwala
Ibrahim Bazarwala
Flag of Kuwait image

First remove user from that group and again him to that group
For example I want to remove 'abc' user from the Sales group
# usermod -g abc abc

It will remove abc user from Sales group
Test if the user remove from Sales group
# groups abc
abc:abc

means the primary group for user abc is abc

Than again add the user abc to group Sales
useradd -g Sales abc

Sorry,its
#usermod -g Sales abc
Avatar of davidndallas
davidndallas

ASKER

User 'abc' is on a primary group called 'main' .. this gives them a login script. User 'abc' is also a member of 10 other groups.
I took the user out of the Sales groups then added the user back.
Still not working.

Thanks
Any suggestions ??? Anybody????
Please post the output of the following command:

# id abc
Here's what I get when I do the "id abc" command:

uid=1356(abc) gid=1060(main) groups=1060(main),1008(sales),1015(dept)

Thanks
Please post the output of the same 'id' command with another user that you know can access the share.

Please post the output of the command:  ls -ldn /path/to/Reports

Might be helpful to also post the Reports share definition in the /etc/samba/smb.conf file.

Have you tried running 'smbpasswd -e abc' as root?

What version of Samba are you running?
Resolved the problem .. the user is on 35 other groups .. when I started deleting her off the other groups, the permissions started working. Looks like I can only go up to 32 groups.

Thanks for everybody's responses.
ASKER CERTIFIED SOLUTION
Avatar of AnnieMod
AnnieMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial