surefire Posted July 23, 2003 Share Posted July 23, 2003 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? Quote Link to comment Share on other sites More sharing options...
Digirunt Posted July 23, 2003 Share Posted July 23, 2003 http://uk.php.net/chown Not that I know what its on about? Quote Link to comment Share on other sites More sharing options...
TCH-Rob Posted July 24, 2003 Share Posted July 24, 2003 Change Owner? And here I thought it was a contraction for CHow dOWN Quote Link to comment Share on other sites More sharing options...
KevinW Posted July 24, 2003 Share Posted July 24, 2003 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 Quote Link to comment Share on other sites More sharing options...
TCH-Rob Posted July 24, 2003 Share Posted July 24, 2003 Alfred V. Aho Peter J. Weinberger Brian W. Kernighan Gotta love Google Quote Link to comment Share on other sites More sharing options...
surefire Posted July 24, 2003 Author Share Posted July 24, 2003 Okay... making more sense. But my follow up question would be whether we can do this for our scripts? Or is the best/only way to change permissions through chmod? Thanks. Quote Link to comment Share on other sites More sharing options...
idallen Posted July 25, 2003 Share Posted July 25, 2003 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.