LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Make a file owned by root owned by a user (https://www.linuxquestions.org/questions/linux-newbie-8/make-a-file-owned-by-root-owned-by-a-user-150629/)

sharpie 02-26-2004 01:19 AM

Make a file owned by root owned by a user
 
Could someone tell me how to change who owns a certain file? Right now it's owned by root.

Tinkster 02-26-2004 01:26 AM

Become root, and do

chown <user>:[<group>] file


Cheers,
Tink

slakmagik 02-26-2004 01:26 AM

Check out the man page for 'chown' and the others - 'chgrp', 'chmod'. Basically 'chown user:group file' as root. Make sure it *should* be changed though, as it can be a security issue.


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