Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-02-2008, 07:16 AM   #1
Registered: Sep 2008
Posts: 41

Rep: Reputation: 15
Question chown v/s chmod

How different is the CHOWN command v/s the CHMOD command. As per my understanding - both of them are used to make changes to the ownership and privileges of the files.


Last edited by Tinkster; 10-30-2010 at 05:02 PM.
Old 10-02-2008, 07:22 AM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
chown changes _who_ owns files (change owner), chmod changes the access rights of those users (change mode, perhaps?).

Old 10-02-2008, 07:26 AM   #3
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
chown changes which user and group owns a file/directory, chmod changes the rwx rights on a file/directory.
Old 10-02-2008, 07:43 AM   #4
Registered: Sep 2008
Posts: 36

Rep: Reputation: 15
a file's permissions are separated in to 3 categories. one for the owner (witch can be modified by CHOWN), one for the group (also CHOWN) and one for the rest.
What CHMOD does is modify what permissions the owner, the group and the world have, while the CHOWN modifies the actual owner or group.
If I for example have created a file with no rights to the group and the rest, but full rights to the owner, and i CHOWN the file to another user, I will have no permissions on it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chown and chmod specialized Linux - Hardware 9 04-04-2006 10:26 PM
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 01:57 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 03:49 PM
Arg!! chown /chmod Kanon Linux - Newbie 10 01-16-2005 04:05 PM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 04:27 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration