.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Sistemi operativi I (http://www.dsy.it/forum/forumdisplay.php?forumid=269)
-- uid (http://www.dsy.it/forum/showthread.php?threadid=31582)


Posted by Laüra on 18-07-2007 16:28:

uid

Ciao a tutti!

Se volessi sapere l'UID di un utente come faccio?
Io sono partita dal file /etc/passwd.....si fa così o c'è qualche altro metodo o comando particolare?

Grazie!


Posted by n3o on 18-07-2007 17:22:

ehm, credo ci siano già di esempi dentro gli script già fatti, tuttavia:

grep "^root" /etc/passwd | cut -d : -f 3

sostituisci root con l'utente cercato (^ vuol dire inizio riga, per evitare risultati multipli...)

__________________
The answer is blowing in the wind...


All times are GMT. The time now is 16:49.
Show all 2 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.