On Wed, May 30, 2007 4:16 pm, Rick Welykochy wrote:
> Voytek Eymont wrote:

> Ah .. well, the super user could easily have a different
> view of the world than the apache user.
>
>> # su - apache
>> This account is currently not available.
>> that mean I need to ... allow login ? for apache..?
>
> Yes. You can change the entry in /etc/passwd temporarily
> to give apache a shell.

thanks, Rick

I edited apache line with vipw -s to have '/bin/bash'

after su - apache I get:

-bash-3.00$ ls /home/sbt.net.au/ -al
total 40
drwxr-xr-x  4 root   root   4096 May 30 10:15 .
drwxr-xr-x  8 root   root   4096 Mar 18 23:52 ..
drwxr-xr-x  3 root   root   4096 Mar 18 22:50 error
-rw-r--r--  1 root   apache   20 May 30 10:15 index.html
drwxr-xr-x  2 apache apache 4096 Mar 18 23:55 www
-bash-3.00$ ls /home/sbt.net.au/www -al
total 24
drwxr-xr-x  2 apache apache 4096 Mar 18 23:55 .
drwxr-xr-x  4 root   root   4096 May 30 10:15 ..
-rw-r--r--  1 apache apache    9 Mar 18 23:53 index.html
-bash-3.00$


-- 
Voytek

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to