Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chmod
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Hendri><
n00b
n00b


Joined: 16 May 2004
Posts: 14

PostPosted: Sat Dec 11, 2004 7:16 am    Post subject: chmod Reply with quote

I've asked this before but what are the commands to make a folder in your htdocs accessable to everyone. I know it's chmod and chown or something but I can't find anything that I can understand. Even a web site with a good discription and some examples would help.
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Sat Dec 11, 2004 7:28 am    Post subject: Reply with quote

chown - changes ownership (be careful)

Code:
chown apache:apache /var/www/localhost/htdocs -R


This would recusively change ownership to owner apache and the group apache in the htdocs directory.

chmod - changes permissions (be careful) , read, write, execute to owner, group and everyone. Directories need to have execute, and executable scripts.. need to obviously be executable. Depending on what you want you'll probably want 755 on the directories (giving read+write+execute to the owner, read+execute to the group, and read+execute to everyone)

Code:
chmod 755 /var/www/localhost/htdocs


Make sure you understand what you're doing, cause it can have serious impact on your box. You always want to be careful with ownership and permissions!

Learn to use man. There are good man pages for chmod and chown.

Code:
man chmod
man chown


Here is a web calculator to assign proper permissions on files or directories.. this may help

http://search.able2know.com/About/1225.html

hanji
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum