issue with chown

abo elyas

New Member
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 chown root:root mom.cgi Quote: Originally Posted by booker 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 by feronso; Yesterday at 06:08 PM. Reason: Edit Miss-information regarding CHOWN command -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.
 
Back
Top