Jump to content

What Does Chown Mean?


surefire

Recommended Posts

Every so often, I see a script with directions such as

 

"You must chown the directory this script resides in to the same user or group your webserver runs

in"

 

Can someone shed some light on this for me?

Link to comment
Share on other sites

Welcome to the wonderful world of Unix commands!

 

chown = CHange OWNer (ie, change owner of file or directory)

 

knowing that, then what's: chmod?

 

Yep, CHange MODification (ie, change permissions to read, write or execute a file)

 

And ed? Yep, editor.

 

But, then what about: awk?

 

Nope, awk is not an abbreciation of any words. Rather, the 'awk' command, which is a very powerful parser program in Unix, is the first initial of the last name of the 3 men who invented this neat, little Unix utility!

 

-kw

Link to comment
Share on other sites

Since your original question was about chown; but, your most recent comment talks only

about chmod, I'm not sure to what "whether we can do this" refers.

 

Only the Unix super-user can change the ownership of anything. You can't.

 

Only the owner of a thing can use chmod on the thing to change the permissions.

 

You can change permissions on files that you own using the cPanel interface or using

chmod or chmod-like commands in CGI/PHP/shell scripts.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...