![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 | Thread Starter | Forum | Replies | Last Post |
| Help setting up file permissions | andrewpmoore | UNIX for Dummies Questions & Answers | 0 | 04-24-2008 04:46 AM |
| To give the "unzip" permissions & "create" file permissions | Mike1234 | HP-UX | 3 | 03-02-2008 02:34 PM |
| Setting Default Permissions for Files | robbieg | UNIX for Dummies Questions & Answers | 1 | 11-24-2004 02:26 PM |
| Permissions on /bin | josramon | UNIX for Advanced & Expert Users | 7 | 04-02-2003 07:50 AM |
| permissions | mma_buc_98 | UNIX for Dummies Questions & Answers | 1 | 08-13-2002 02:15 PM |
|
|
Submit Tools | LinkBack | 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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
'man chmod'
|
|
#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 {} \;
Code:
find /whereever/my/htdocs/are/ -type d -exec chmod 755 {} \;
find /whereever/my/htdocs/are/ -type f -exec chmod 644 {} \;
Put that into command line - it will display help about chmod command. Use "man find" to find out what above does in detail. |
|
#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. |
|
#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?
|
|
#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. |
|||
| Google The UNIX and Linux Forums |