Status
Not open for further replies.

booker

Banned
Banned
158
2011
14
0
i have a issue with chown

first i dont have cpanel or any control panel i run without control panel

my issue is i when i try

chown mom.cgi *
chown: invalid user: `mom.cgi'

any one know how i can add user root to mom.cgi
 
4 comments
i have a issue with chown

first i dont have cpanel or any control panel i run without control panel

my issue is i when i try

chown mom.cgi *
chown: invalid user: `mom.cgi'

any one know how i can add user root to mom.cgi

you can try with this command:
# chown -R root:root mom.cgi*
or
$ sudo chown -R root:root mom.cgi*
 
You were right given the CHOWN command but always mention the parameter.

CHOWN = File/Folder Ownership
-R = Recursively
root:root = User:Group

Basically depend on you what you want to allow to users.
 
Last edited:
-R mean recursive and means it will try to change the owner/group of all files in a directory and sub directories
-W doesn't exist only other option would be -v what means verbose and this will give feed back on all chown does.
 
Status
Not open for further replies.
Back
Top