LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to use CHMOD? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-chmod-707691/)

linus72 02-26-2009 06:33 AM

How to use CHMOD?
 
Morning everyone, I need to gain permissions on a Feather linux remaster I am trying to make. I ran Feather on CD, copied and extracted the "KNOPPIX" to my Desktop, and when I went back to my Desktop, it won't let me have pernissions to either delete it or move it.
Exactly how would I use chmod to be the owner?
Thanks.-see Screenshot too!

colucix 02-26-2009 06:59 AM

From a terminal you can do
Code:

sudo chown -R user:group $HOME/Desktop/KNOPPIX
where user and group are the names of the owner you want to set. As you can see the command is chown, whereas the chmod command is meant to change read, write and executable permissions of a file/directory.

pixellany 02-26-2009 07:01 AM

change ownership with CHOWN, change permissions with CHMOD.

Either way, you have to first use "su" to become root.

linus72 02-26-2009 07:11 AM

AWESOME-It worked flawlessly!
Thanks-somehow I got chmod and chown mixed up-der?Newbie...


All times are GMT -5. The time now is 11:46 PM.