[plug] chown and chmod questions.

Timothy White weirdit at gmail.com
Thu Jan 11 12:23:26 WST 2007

On 1/11/07, Jonathan Young <jonathan at pcphix.com> wrote:
> Some quick answers to help get you going.  I am sure others will add
> to/correct me, but I noticed you hadn't had any replies yet... So here
> goes:
> On 1/11/2007, "Lee Jamieson" <leejam at gmail.com> wrote:
> >and now all the files and folders I copied are set as root access.
> Normal when copying or moving as root.
> >I'm just checking that this command will change  the folder and files
> >recursively,
> >
> >"chown --recursive <username>:<group of user> <directory>"
> >
> >Do I put lee:lee as the username and group?
> Should work.  I personally use -R instead (just fewer keystrokes) and
> often you can use a group such as lee:administrators or similar, but
> what you have is OK.

>From memory, you can also just put the username, and the group will
default to your default group.

chown -R lee <directory>

> >That should change the ownership and the permissions need a different command
> >
> >"chmod --recursive u+rw <directory>"

You'll most likely find you don't need to do this. The perm's are
probably +rw for the owner anyway, so once you chown you should have
access to the files.

Linux Counter user #273956
Don't email joeblogs at scouts.org.au

More information about the plug mailing list