?
Solved

Linux - Group permission for a user not working

Posted on 2006-11-27
10
Medium Priority
?
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:davidndallas
ID: 18078363
Any suggestions ??? Anybody????
0
 
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

765 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