Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to see which groups a user belongs to?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
viniosity
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 108
Location: DC

PostPosted: Sun Jun 29, 2003 5:48 pm    Post subject: How to see which groups a user belongs to? Reply with quote

Is there any way to display which groups a user belongs to? For instance, I've got 2 users on my machine - my CD player works with one user but not the other so I'd like to see what groups user1 is part of that user2 is not..

Thanks!
Back to top
View user's profile Send private message
petu
Apprentice
Apprentice


Joined: 01 Sep 2002
Posts: 269
Location: Turku, Finland

PostPosted: Sun Jun 29, 2003 6:03 pm    Post subject: Reply with quote

grep user1 /etc/group
grep user2 /etc/group
_________________
Never be afraid to try something new. Remember, amateurs built the
ark; professionals built the Titanic. -- Anonymous
Back to top
View user's profile Send private message
viniosity
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 108
Location: DC

PostPosted: Sun Jun 29, 2003 6:14 pm    Post subject: even more confused now.. Reply with quote

Yes - that did it. Thank you.

I'm still confused though because both (non-root) users are members of the exact same groups. Yet one can play CD's with KsCD while the other user can't even load the application. (It starts to run then quits without any message!) Help!
Back to top
View user's profile Send private message
Xiderpunk
Tux's lil' helper
Tux's lil' helper


Joined: 05 Mar 2003
Posts: 149
Location: London, UK

PostPosted: Sun Jun 29, 2003 8:44 pm    Post subject: Reply with quote

or just..

Code:

groups *username*
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Sun Jun 29, 2003 8:48 pm    Post subject: Reply with quote

Another possibility would be the id command.
Back to top
View user's profile Send private message
shaung
n00b
n00b


Joined: 25 May 2003
Posts: 44

PostPosted: Mon Jun 30, 2003 1:17 am    Post subject: Re: How to see which groups a user belongs to? Reply with quote

viniosity wrote:
Is there any way to display which groups a user belongs to? For instance, I've got 2 users on my machine - my CD player works with one user but not the other so I'd like to see what groups user1 is part of that user2 is not..

Thanks!


run
Code:
groups [user]
as root to see what groups the user belongs to
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum