View previous topic :: View next topic |
Author |
Message |
viniosity Tux's lil' helper
Joined: 25 May 2003 Posts: 108 Location: DC
|
Posted: Sun Jun 29, 2003 5:48 pm Post subject: How to see which groups a user belongs to? |
|
|
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 |
|
|
petu Apprentice
Joined: 01 Sep 2002 Posts: 269 Location: Turku, Finland
|
Posted: Sun Jun 29, 2003 6:03 pm Post subject: |
|
|
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 |
|
|
viniosity Tux's lil' helper
Joined: 25 May 2003 Posts: 108 Location: DC
|
Posted: Sun Jun 29, 2003 6:14 pm Post subject: even more confused now.. |
|
|
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 |
|
|
Xiderpunk Tux's lil' helper
Joined: 05 Mar 2003 Posts: 149 Location: London, UK
|
Posted: Sun Jun 29, 2003 8:44 pm Post subject: |
|
|
or just..
|
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9625 Location: beyond the rim
|
Posted: Sun Jun 29, 2003 8:48 pm Post subject: |
|
|
Another possibility would be the id command. |
|
Back to top |
|
|
shaung n00b
Joined: 25 May 2003 Posts: 44
|
Posted: Mon Jun 30, 2003 1:17 am Post subject: Re: How to see which groups a user belongs to? |
|
|
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 as root to see what groups the user belongs to |
|
Back to top |
|
|
|