Solved

Linux - Group permission for a user not working

Posted on 2006-11-27
10
258 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

739 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