LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-02-2008, 06:16 AM   #1
justmovedtolinux
Member
 
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.

Right?

Last edited by Tinkster; 10-30-2010 at 04:02 PM.
 
Old 10-02-2008, 06:22 AM   #2
ilikejam
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?).

Dave
 
Old 10-02-2008, 06:26 AM   #3
Total-MAdMaN
Member
 
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, 06:43 AM   #4
Nightfish
Member
 
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.
 
  


Reply


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 09:26 PM
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 12:57 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 02:49 PM
Arg!! chown /chmod Kanon Linux - Newbie 10 01-16-2005 03:05 PM
Understanding chmod, chown mikemrh9 Linux - Newbie 4 11-19-2004 03:27 PM


All times are GMT -5. The time now is 08:46 AM.

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