?
Solved

Linux - Group permission for a user not working

Posted on 2006-11-27
10
Medium Priority
?
272 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
9 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month17 days, left to enroll

862 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