Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Benuterverwaltung
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
lukasletitburn
Apprentice
Apprentice


Joined: 17 Mar 2011
Posts: 209
Location: München

PostPosted: Sat Apr 28, 2012 10:28 am    Post subject: Benuterverwaltung Reply with quote

Hey Forum,

wie kann ich mir auf der Konsole eine Übersicht anzeigen lassen der vorhanden Benutzer Ihrer Gruppen und Ihren UID´s und GID´s? habe nichts gefunden dazu oder ich habe nicht nach den richtigen Schlagwörtern gesucht...

Danke für eure Hilfe
Back to top
View user's profile Send private message
bell
Guru
Guru


Joined: 27 Nov 2007
Posts: 482

PostPosted: Sat Apr 28, 2012 10:38 am    Post subject: Reply with quote

Code:
cat /etc/passwd
cat /etc/group
?
Code:
man 5 passwd
man 5 group
Back to top
View user's profile Send private message
papahuhn
l33t
l33t


Joined: 06 Sep 2004
Posts: 623

PostPosted: Sat Apr 28, 2012 11:53 am    Post subject: Reply with quote

"getent passwd" und "getent group" funktionieren auch mit LDAP-Accounts.
_________________
Death by snoo-snoo!
Back to top
View user's profile Send private message
lukasletitburn
Apprentice
Apprentice


Joined: 17 Mar 2011
Posts: 209
Location: München

PostPosted: Sat Apr 28, 2012 12:23 pm    Post subject: Reply with quote

Danke für eure Hilfe :)

Aber kann ich mir auch eine Tabelle ausgeben lassen mit Feldern so der user UID GID steht und dazu die Gruppe zugehörigkeiten?
Back to top
View user's profile Send private message
papahuhn
l33t
l33t


Joined: 06 Sep 2004
Posts: 623

PostPosted: Sat Apr 28, 2012 12:32 pm    Post subject: Reply with quote

Code:
getent passwd | perl -ne 'system "id", (split ":", $_)[0]'

_________________
Death by snoo-snoo!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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