View previous topic :: View next topic |
Author |
Message |
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Thu Sep 27, 2007 12:07 am Post subject: I may have f'ed my permissions. [solved!] |
|
|
I upgraded to apache2.2.6 and am having troubles (may be my doing).
I was figuring out my problem and thought it might relate to permissions. so as root i did chmod -R 644 /path/to/public_html
Now, as that user, i can't even do ls on the directory. See for yourselves:
As root:
Code: | [/root]# ls -alh /home/tim/public_html/
total 277K
drw-r--r-- 21 tim users 1.6K Aug 11 10:19 .
drwxr-xr-x 16 tim users 1.4K Sep 26 20:02 ..
-rw-r--r-- 1 tim users 0 May 22 16:09 .htaccess
drw-r--r-- 2 tim users 144 Jun 1 21:55 Blue_Note
drw-r--r-- 5 tim users 336 May 22 07:18 Calendar
drw-r--r-- 22 tim users 1.1K Aug 27 17:42 Images
drw-r--r-- 5 tim users 744 May 17 05:32 backup
-rw-r--r-- 1 tim users 583 Jun 1 22:07 camstyle.css
-rw-r--r-- 1 tim users 25K Jun 4 12:25 favicon.ico
drw-r--r-- 10 tim users 792 Jun 2 09:17 forum
-rw-r--r-- 1 tim users 0 Jun 1 03:52 google052d2dac4d31b663.html
-rw-r--r-- 1 tim users 94 Nov 19 2006 index.php
-rw-r--r-- 1 tim users 36 May 19 12:47 index.php.down
-rw-r--r-- 1 tim users 15K Apr 1 2003 license.txt
drw-r--r-- 2 tim users 168 Jun 28 2006 modules
drw-r--r-- 2 tim users 136 May 17 05:59 movies
drw-r--r-- 2 tim users 496 Dec 5 2006 old_site
drw-r--r-- 2 tim users 624 May 17 06:04 old_wp
drw-r--r-- 11 tim users 3.0K Jun 25 10:07 phpMyAdmin
drw-r--r-- 4 tim users 264 Jun 28 2006 projects
-rw-r--r-- 1 tim users 7.5K Apr 20 21:20 readme.html
drw-r--r-- 3 tim users 808 Aug 19 2005 scripts
drw-r--r-- 5 tim users 368 Jan 15 2007 stats
drw-r--r-- 6 tim users 440 Nov 7 2006 stats2
drw-r--r-- 2 tim users 248 Aug 19 2005 themes
-rw-r--r-- 1 tim users 410 Jun 1 21:53 webcam.html
-rw-r--r-- 1 tim users 674 Jun 1 22:09 webcam.php
drw-r--r-- 4 tim users 3.0K May 17 06:06 wp-admin
-rw-r--r-- 1 tim users 36K Apr 18 22:03 wp-app.php
-rw-r--r-- 1 tim users 127 Feb 22 2007 wp-atom.php
-rw-r--r-- 1 tim users 997 May 9 11:17 wp-blog-header.php
-rw-r--r-- 1 tim users 2.9K Mar 28 12:34 wp-comments-post.php
-rw-r--r-- 1 tim users 151 Feb 22 2007 wp-commentsrss2.php
-rw-r--r-- 1 tim users 942 May 12 13:29 wp-config-sample.php
-rw-r--r-- 1 tim users 913 May 19 13:29 wp-config.php
drw-r--r-- 7 tim users 296 Sep 3 10:37 wp-content
-rw-r--r-- 1 tim users 849 Apr 16 15:47 wp-cron.php
-rw-r--r-- 1 tim users 120 Nov 19 2006 wp-feed.php
-rw-r--r-- 1 tim users 3.3K May 22 16:04 wp-gallery2.php
drw-r--r-- 4 tim users 2.4K May 17 06:06 wp-includes
-rw-r--r-- 1 tim users 1.5K Mar 31 15:15 wp-links-opml.php
-rw-r--r-- 1 tim users 16K Apr 18 21:53 wp-login.php
-rw-r--r-- 1 tim users 5.6K May 4 21:51 wp-mail.php
-rw-r--r-- 1 tim users 291 Jun 24 2006 wp-pass.php
-rw-r--r-- 1 tim users 188 Feb 22 2007 wp-rdf.php
-rw-r--r-- 1 tim users 251 Oct 11 2006 wp-register.php
-rw-r--r-- 1 tim users 125 Feb 22 2007 wp-rss.php
-rw-r--r-- 1 tim users 127 Feb 22 2007 wp-rss2.php
-rw-r--r-- 1 tim users 9.1K Apr 30 20:13 wp-settings.php
-rw-r--r-- 1 tim users 3.5K Mar 22 2007 wp-trackback.php
-rw-r--r-- 1 tim users 54K May 11 16:40 xmlrpc.php
drw-r--r-- 2 tim users 112 Jun 22 05:02 zombocom
|
As user:
Code: |
--(tim@Magus)--(~)--(08:06 PM)--(521)--
: ls -alh public_html/
ls: cannot access public_html/.: Permission denied
ls: cannot access public_html/..: Permission denied
ls: cannot access public_html/webcam.html: Permission denied
ls: cannot access public_html/favicon.ico: Permission denied
ls: cannot access public_html/wp-config.php: Permission denied
ls: cannot access public_html/old_site: Permission denied
ls: cannot access public_html/wp-rss2.php: Permission denied
ls: cannot access public_html/webcam.php: Permission denied
ls: cannot access public_html/Calendar: Permission denied
ls: cannot access public_html/Images: Permission denied
ls: cannot access public_html/index.php.down: Permission denied
ls: cannot access public_html/forum: Permission denied
ls: cannot access public_html/stats: Permission denied
ls: cannot access public_html/scripts: Permission denied
ls: cannot access public_html/xmlrpc.php: Permission denied
ls: cannot access public_html/zombocom: Permission denied
ls: cannot access public_html/wp-app.php: Permission denied
ls: cannot access public_html/wp-mail.php: Permission denied
ls: cannot access public_html/wp-config-sample.php: Permission denied
ls: cannot access public_html/wp-pass.php: Permission denied
ls: cannot access public_html/.htaccess: Permission denied
ls: cannot access public_html/wp-commentsrss2.php: Permission denied
ls: cannot access public_html/wp-blog-header.php: Permission denied
ls: cannot access public_html/camstyle.css: Permission denied
ls: cannot access public_html/backup: Permission denied
ls: cannot access public_html/Blue_Note: Permission denied
ls: cannot access public_html/modules: Permission denied
ls: cannot access public_html/wp-gallery2.php: Permission denied
ls: cannot access public_html/google052d2dac4d31b663.html: Permission denied
ls: cannot access public_html/phpMyAdmin: Permission denied
ls: cannot access public_html/index.php: Permission denied
ls: cannot access public_html/wp-content: Permission denied
ls: cannot access public_html/movies: Permission denied
ls: cannot access public_html/wp-settings.php: Permission denied
ls: cannot access public_html/wp-rdf.php: Permission denied
ls: cannot access public_html/old_wp: Permission denied
ls: cannot access public_html/wp-feed.php: Permission denied
ls: cannot access public_html/wp-trackback.php: Permission denied
ls: cannot access public_html/themes: Permission denied
ls: cannot access public_html/stats2: Permission denied
ls: cannot access public_html/wp-links-opml.php: Permission denied
ls: cannot access public_html/wp-includes: Permission denied
ls: cannot access public_html/wp-comments-post.php: Permission denied
ls: cannot access public_html/wp-register.php: Permission denied
ls: cannot access public_html/projects: Permission denied
ls: cannot access public_html/wp-admin: Permission denied
ls: cannot access public_html/license.txt: Permission denied
ls: cannot access public_html/wp-rss.php: Permission denied
ls: cannot access public_html/wp-cron.php: Permission denied
ls: cannot access public_html/wp-login.php: Permission denied
ls: cannot access public_html/readme.html: Permission denied
ls: cannot access public_html/wp-atom.php: Permission denied
total 0
?????????? ? ? ? ? ? .
?????????? ? ? ? ? ? ..
?????????? ? ? ? ? ? .htaccess
?????????? ? ? ? ? ? Blue_Note
?????????? ? ? ? ? ? Calendar
?????????? ? ? ? ? ? Images
?????????? ? ? ? ? ? backup
?????????? ? ? ? ? ? camstyle.css
?????????? ? ? ? ? ? favicon.ico
?????????? ? ? ? ? ? forum
?????????? ? ? ? ? ? google052d2dac4d31b663.html
?????????? ? ? ? ? ? index.php
?????????? ? ? ? ? ? index.php.down
?????????? ? ? ? ? ? license.txt
?????????? ? ? ? ? ? modules
?????????? ? ? ? ? ? movies
?????????? ? ? ? ? ? old_site
?????????? ? ? ? ? ? old_wp
?????????? ? ? ? ? ? phpMyAdmin
?????????? ? ? ? ? ? projects
?????????? ? ? ? ? ? readme.html
?????????? ? ? ? ? ? scripts
?????????? ? ? ? ? ? stats
?????????? ? ? ? ? ? stats2
?????????? ? ? ? ? ? themes
?????????? ? ? ? ? ? webcam.html
?????????? ? ? ? ? ? webcam.php
?????????? ? ? ? ? ? wp-admin
?????????? ? ? ? ? ? wp-app.php
?????????? ? ? ? ? ? wp-atom.php
?????????? ? ? ? ? ? wp-blog-header.php
?????????? ? ? ? ? ? wp-comments-post.php
?????????? ? ? ? ? ? wp-commentsrss2.php
?????????? ? ? ? ? ? wp-config-sample.php
?????????? ? ? ? ? ? wp-config.php
?????????? ? ? ? ? ? wp-content
?????????? ? ? ? ? ? wp-cron.php
?????????? ? ? ? ? ? wp-feed.php
?????????? ? ? ? ? ? wp-gallery2.php
?????????? ? ? ? ? ? wp-includes
?????????? ? ? ? ? ? wp-links-opml.php
?????????? ? ? ? ? ? wp-login.php
?????????? ? ? ? ? ? wp-mail.php
?????????? ? ? ? ? ? wp-pass.php
?????????? ? ? ? ? ? wp-rdf.php
?????????? ? ? ? ? ? wp-register.php
?????????? ? ? ? ? ? wp-rss.php
?????????? ? ? ? ? ? wp-rss2.php
?????????? ? ? ? ? ? wp-settings.php
?????????? ? ? ? ? ? wp-trackback.php
?????????? ? ? ? ? ? xmlrpc.php
?????????? ? ? ? ? ? zombocom
|
Any ideas on how to fix this? After that we can try to fix apache! _________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
Last edited by denstark on Thu Sep 27, 2007 1:11 am; edited 1 time in total |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Thu Sep 27, 2007 12:10 am Post subject: Re: I may have f'ed my permissions. Also, broken webserver. |
|
|
denstark wrote: | Code: | drw-r--r-- 21 tim users 1.6K Aug 11 10:19 . |
|
should be rwx on the user side. and if this an apache dir, i recommend tim:apache g+s on the public_html dir. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
pianosaurus l33t
Joined: 19 Apr 2004 Posts: 944 Location: Bash$
|
Posted: Thu Sep 27, 2007 12:16 am Post subject: |
|
|
What bunder said, pluss you should be aware that the execute bit (x) is needed on directories to be able to read them. That is why users can't list the contents now. _________________ PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5934
|
Posted: Thu Sep 27, 2007 12:19 am Post subject: |
|
|
I don't see why this can't go to N+S.
Moved from Off the Wall to Networking & Security. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Thu Sep 27, 2007 1:11 am Post subject: |
|
|
Awesome, bunder rocks. I fixed it all thanks to him. w00t! Sorry to bother you all. _________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
|
|
Back to top |
|
|
brenden l33t
Joined: 09 Mar 2004 Posts: 710 Location: Calgary, AB
|
Posted: Thu Sep 27, 2007 4:27 am Post subject: |
|
|
oops |
|
Back to top |
|
|
|