chown -h (préserve propriétés pour liens symboliques ln -s...)

se mettre le plus bas possible;
find . -user oldOwner
!! > /tmp/junk
(récupère la dernière commande dans le fichier junk)
vi /tmp/junk
:1,$s/^/chown newOwner /
(expression régulière)
(TESTER SUR UN ECHANTILLON REDUIT; UNE FOIS OK, taper:)

source /tmp/junk
(source=lancer le bash)
 
info/changer_automatiquement_un_proprietaire_chown.txt · Dernière modification: 2008/11/11 11:37 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki