![]() |
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)
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!
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 03:11. | Show all 2 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.