Re: user 1000
On 2018-07-11 12:30:33 +0200, G2PC wrote:
> Le 10/07/2018 à 09:34, Belaïd a écrit :
> > Pardon au faite il faudrait aussi rajouter une option si tu veux Que
> > le home change aussi de nom, la commande exacte devient :
> >
> > usermod --login nouvel-identifiant --home /home/nouvel-identifiant
> > --move-home ancien-identifiant
>
> Vous l'avez testé ? C'est fonctionnelle cette solution ? Je n'ose pas
> tester sur mon hôte mais si la commande est correcte, je vais la garder
> à disposition.
Pour les détails: man usermod
Mais ce n'est peut-être pas la bonne solution, car usermod semble
faire une copie des fichiers et non pas juste un renommage du nom
du répertoire:
usermod will try to adapt the ownership of the files and to copy
the modes, ACL and extended attributes, but manual changes might
be needed afterwards.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: