[Ilugc] One Day One GNU/Linux Command (CHOWN)

  • From: knura@xxxxxxxxx (Arun Khan)
  • Date: Wed Jun 18 23:32:24 2008

On Wednesday 18 Jun 2008, Balu manyam wrote:

On Wed, Jun 18, 2008 at 10:45 AM, Arun Khan <knura@xxxxxxxxx> wrote:
On Wednesday 18 Jun 2008, Arun Khan wrote:
$ cd /home; chown -R usr1: usr1

Oops.  should be

       # cd /home; chown -R usr1: usr1

if i recall correctly one needs to be careful with -R flag as if the
dir contains symlinks chown -R may follow the symlink ? --  '-RH '
may prevent this happenining

<from man page>
-H if a command line argument is a symbolic link to a directory, 
traverse it
-P do not traverse any symbolic links (default)
</from man page>

For the specific use case, the CLI above is fine as is, have not yet 
encountered symlinks in /home for user dirs.

-- 
Arun Khan

Other related posts: