|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Setting permissions
I've been told I need to set the permissions for everything in the htdocs folder to 777, but how do I go about doing this?
Thanks ![]() |
| Sponsored Links | |
|
|
|
#2
|
||||
|
||||
|
'man chmod'
|
| Sponsored Links | ||
|
|
|
#3
|
|||
|
|||
|
sorry, I don't understand that - what does that mean and where do I put that?
|
|
#4
|
|||
|
|||
|
777 = everybody can execute and alter everything. That is for sure not what you want. However, it would go as follows (escaping like bash): Code:
find /whereever/my/htdocs/are/ -exec chmod 777 {} \;Better do the following (everybody can read, only owner can alter or execute): Code:
find /whereever/my/htdocs/are/ -type d -exec chmod 755 {} \;
find /whereever/my/htdocs/are/ -type f -exec chmod 644 {} \;If some cgi needs to write to some location beneath htdocs change ownership of those files/directories to the user used by your webserver to run cgis (normally apache, httpd oder nobody). Quote:
|
| Sponsored Links | |
|
|
#5
|
||||
|
||||
|
Quote:
chmod is the command to change permissions. One thing about man: read the whole thing, particularly the last few lines. There you're see references to similar commands that may be helpful. |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
Okay thanks, I've got the man chmod and am now about to read it, but how do I find out where the file to change the htdocs permissions is?
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
htdocs is no single file but a folder. Ask the one who installed your system, he'll tell you. Maybe Have a look for /srv/www/htdocs , /var/www , /var/lib/apache/htdocs .
If you've installed the system yourself start reading the documentation coming with it - it will help you to actually understand what to do. |
| Sponsored Links | ||
|
|
![]() |
| Tags |
| unix commands |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help setting up file permissions | andrewpmoore | UNIX for Dummies Questions & Answers | 0 | 04-24-2008 07:46 AM |
| To give the "unzip" permissions & "create" file permissions | Mike1234 | HP-UX | 3 | 03-02-2008 04:34 PM |
| Setting Default Permissions for Files | robbieg | UNIX for Dummies Questions & Answers | 1 | 11-24-2004 04:26 PM |
| Permissions on /bin | josramon | UNIX for Advanced & Expert Users | 7 | 04-02-2003 10:50 AM |
| permissions | mma_buc_98 | UNIX for Dummies Questions & Answers | 1 | 08-13-2002 05:15 PM |
|
|