View Full Version : Some kind of server problem, cant access a directory
A couple of directories were working just fine on my server, with a cgi script copying files to them. Suddenly I get a 'Permission denied' message whenever I try to access the directory in telnet using the cd command. In ftp I cant access the directory either. I cant delete it even. What might be the problem?
*Kimmykim*
07-12-2001, 02:22 PM
You may need your host to reset the permissions for you, or use root access to do so.
That's about all I know about telnet and permissions unfortunately --
Simon
07-12-2001, 02:40 PM
Problem shouldn't be the permissions its the directory ownership.
If you have root acces go to one level lower from that directory and there type
chown usernamethatdirectorybelongsto.userthatapacherunsa s <directoryname>
and that should fix the problem.
Energy Hosting
07-12-2001, 02:50 PM
You should be able to access the directory using a file managment cgi script if you want to.
I have access to the directory below that but I dont know the userthatapacherunsas - how do i find that?
Whats a filemanagement cgi script EnergyHosting?
Energy Hosting
07-12-2001, 03:18 PM
Use this, you'll be able to access the directory and do anything you need to do to the files.
http://www.gimpster.com/php/phpshell/index.php
Thanks. I got the permission resetted that worked, but this tool looks handy!
Simon
07-13-2001, 03:14 PM
For future purposes,
if you run the command top
and look at the process called httpd
there should be alot of them.. there you will see in its informations what user it runs as.. usually its www.
Regards:
Simon N
That top command is especially useful to me, thaks for introducing me to it!
Simon
07-15-2001, 03:49 AM
No problem....
you can also use ps -axf command which will show you processes more detailed.
Especially if you run any of those horrible mysql scripts you'll be needing that command often =).
Just sharing my knowledge with the world =).
-Simon
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.