adri wrote:

una curiosita'.
come posso fare a cambiare il numero identificativo di un utente a tutti
i file di quell'utente?
mi spiego con un esempio: su un pc ho due distribuzioni diverse.
in tutte e due c'e' lo stesso utente, solo che nella distribuzione a
l'utente ha identificativo 1000, mentre nella b, ha identificativo 500.
a parte cambiare /etc/passwd, e mettrgli il 1000 all'utente, tutti i
file di quell'utente come li posso cambiare in 1000?
spero di non aver fatto la solita confusione nella domanda... ;))
ciao a tutti





supponedo che tutti i file dell'utente siano nella sua home....

da man chown:

chown [OPTION]... OWNER[:[GROUP]] FILE


If only a user name (or numeric user ID) is given, that user is made the owner of each given file, and the files' group is not changed. If the user name is followed by a colon or dot and a group name (or numeric group ID), with no spaces between them, the group ownership of the files is changed as well.




-R, --recursive operate on files and directories recursively




quindi chown -R nuovoui /home/utente dovrebbe fare al caso tuo


ti ricord che in /etc/adduser.conf ci sono i parametri,.. FIRST_SYSTEM_UID=100 LAST_SYSTEM_UID=999


altra cosa che potresti fare e' rendere i 2 /etc/passwd attraverso un link simbolico....



ciao


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Rispondere a