LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   file and folder owner ship (https://www.linuxquestions.org/questions/linux-software-2/file-and-folder-owner-ship-270053/)

wisdom 12-24-2004 07:41 PM

file and folder owner ship
 
been looking on here did not find anything spesfic to what i wanted... I am wondering can anyhow help me out.

In the terminal as root i copied a file from the root directory with root only ownership to the normal user area so i can have access to this file but the problem is that its still locked to been ownership of root how can i change it to have its ownership of normal user and the same thing with folders as well.

anyone care to help pls?

leonscape 12-24-2004 07:53 PM

chown is the command your looking for.

You need to be the owner of the file ( or root ) to change ownership. Also don't forget the group ( which is usually the same as the owner ).

chown userName:userGroup fileName

Don't forget man pages for more info.

wisdom 12-24-2004 08:28 PM

hey chears for that worked like a charm!!!


All times are GMT -5. The time now is 03:53 PM.