We help IT Professionals succeed at work.

strange user

its_ns_04
its_ns_04 asked
on
307 Views
Last Modified: 2012-05-07
Hi,

I have a user with strange settings. If i try to find this user in /etc/group, i don't find it mentioned anywhere. But when I run the command "id username", it shows the groups the user belongs to.

id nicole
uid=504(nicole) gid=501(admin) groups=501(admin) context=user_u:system_r:unconfined_t

[root@unix etc]# grep nicole /etc/group

The last command doesn't output anything.

Why is it happening such ? I am confused...

By the way, is it something like the user has been deleted from /etc/group, but the group database has not been updated. If so, where do I find the group database file ??
Thank you

Comment
Watch Question

In the /etc/group file, a user does not need to be added to its primary group. The connection is established in /etc/passwd only. So, if my primary group is 'users' and secondary, 'work' I will only see the username appended to work in the /etc/group file.

I believe this was done to limit the length of lines in /etc/group quite some time ago. However, it is nothing to worry about and the system is behaving as expected.
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Most Valuable Expert 2013
Top Expert 2013

Commented:
Could be NIS.

To check issue

ypcat group | grep nicole

'ypcat: not found'  - no NIS, and I'm on the wrong track.

CERTIFIED EXPERT
Top Expert 2007

Commented:
the primary group in which the user is in is not mentioned in /etc/group, but it is in the /etc/passwd file in the gid filed
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.