chown question

2009-07-02 Thread Douglas A. Tutty
Hello all, I have a really basic question; I really messed up my box. I was doing a reinstall on an old box after a drive failure. I restored /home but one of the UIDs were created differently so I needed to chown their directory, including all the hidden files in their ~/. Without thinking,

Re: chown question

2009-07-02 Thread Chris Jackson
Douglas A. Tutty wrote: I know that I could have used find to look for all files owned by the old UID, plunked it through xargs and chowned them that way, but is there a way, as root, to chown directly the hidden files without chowning the whole box? The simplest way would be to recursively

Re: chown question

2009-07-02 Thread Mark Allums
Douglas A. Tutty wrote: Hello all, I have a really basic question; I really messed up my box. I was doing a reinstall on an old box after a drive failure. I restored /home but one of the UIDs were created differently so I needed to chown their directory, including all the hidden files in

Re: chown question

2009-07-02 Thread Chris Burkhardt
Douglas A. Tutty wrote: [...] I know that I could have used find to look for all files owned by the old UID, plunked it through xargs and chowned them that way, but is there a way, as root, to chown directly the hidden files without chowning the whole box? Just for my future reference? I

Re: chown question

2009-07-02 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Douglas A. Tutty wrote: I know that I could have used find to look for all files owned by the old UID, plunked it through xargs and chowned them that way, but is there a way, as root, to chown directly the hidden files without chowning the whole

Re: chown question

2009-07-02 Thread Chris Burkhardt
Chris Jackson wrote: Douglas A. Tutty wrote: I know that I could have used find to look for all files owned by the old UID, plunked it through xargs and chowned them that way, but is there a way, as root, to chown directly the hidden files without chowning the whole box? The simplest

Re: chown question

2009-07-02 Thread Chris Burkhardt
Johannes Wiedersich wrote: Douglas A. Tutty wrote: I know that I could have used find to look for all files owned by the old UID, plunked it through xargs and chowned them that way, but is there a way, as root, to chown directly the hidden files without chowning the whole box? Instead of

Re: chown question

2009-07-02 Thread Chris Jackson
Chris Burkhardt wrote: chown chrisj.chrisj ~chrisj That won't follow the .. link. Shouldn't that include the recursive flag? chown -R chrisj.chrisj ~chrisj Apologies, yes it should. -- Chris Jackson Shadowcat Systems Ltd. -- To UNSUBSCRIBE, email to