Page 1 of 1
access linux root directory
Posted: Wed Jun 04, 2003 2:40 pm
by shawnzhou888
I tried to access the files in the linux root directory but failed. Does the Apache server must to run as root for enabling that?
Posted: Wed Jun 04, 2003 2:56 pm
by volka
depends on the file permissions.
what do you mean with access?
a directory listing or reading file-contents?
Posted: Wed Jun 04, 2003 3:09 pm
by shawnzhou888
I set a simple file readable for all. Like: chmod +r a.ini . It's under /root. But from PHP the file cannot be opened.
Posted: Wed Jun 04, 2003 3:17 pm
by nielsene
Try checking phpinfo() regarding the "safe mode" settings? (long shot, I know)
Posted: Wed Jun 04, 2003 3:28 pm
by Stoker
it is a big difference of "the root directory" / and the directory /root
/ is accessible by anyone
/root is in most cases (default distro setups) not accssible by by anyone else than root
Posted: Wed Jun 04, 2003 3:49 pm
by shawnzhou888
Its Safe mode is off. Sounds like the only solution is to run apache as root.