Solved

Linux - Group permission for a user not working

Posted on 2006-11-27
10
248 Views
Last Modified: 2010-04-20
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.
0
Comment
Question by:davidndallas
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 12

Expert Comment

by:ibu1
ID: 18025954
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

0
 
LVL 12

Expert Comment

by:ibu1
ID: 18026324
Sorry,its
#usermod -g Sales abc
0
 

Author Comment

by:davidndallas
ID: 18029949
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
0
 

Author Comment

by:davidndallas
ID: 18078363
Any suggestions ??? Anybody????
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 4

Expert Comment

by:infleadorix
ID: 18103394
Please post the output of the following command:

# id abc
0
 

Author Comment

by:davidndallas
ID: 18104730
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
0
 
LVL 4

Expert Comment

by:infleadorix
ID: 18105945
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?
0
 

Author Comment

by:davidndallas
ID: 18236882
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.
0
 

Accepted Solution

by:
AnnieMod earned 0 total points
ID: 19389404
PAQed with points refunded (250)

AnnieMod
Cleanup Admin
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now