[Ilugc] One Day One GNU/Linux Command (CHOWN)
- From: knura@xxxxxxxxx (Arun Khan)
- Date: Wed Jun 18 10:03:21 2008
On Wednesday 18 Jun 2008, Bharathi Subramanian wrote:
One Day One GNU/Linux Command
=============================
chown -- CHange file OWNer and Group
$ chown usr1:grp1 file1 -- Same as above. But `:' in place of the `.'
The following is also works when you want to default to the usr1's main
group.
$ chown usr1: file1
$ cd /home; chown -R usr1: usr1
works great when you mount /home with different distros that have
different uid/gid for the same "lexical" user name.
--
Arun Khan
Other related posts: