View Single Post
  #6  
Old 7th February 2010, 18:12
bigger_travis bigger_travis is offline
Junior Member
 
Join Date: Oct 2005
Location: us
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To jnsc:
Quote:
try
Code:

su -s /bin/bash apache
ok, i send this command now:

Code:
[root@testvirtual ~]# su -s /bin/bash apache
bash-3.2$ whoami
apache
bash-3.2$
im not getting any error anymore. i do see my my prompt changed from # to $ - so that means i can change user to apache.

################################################## #######################

To falko:
Quote:
Can you become the apache user with the su command and run the commands
Code:

chown -R web2_AnyUser /var/www/web2/web
chgrp -R web2 /var/www/web2/web

? Do you get any errors?
so i send the chown command:

Code:
bash-3.2$ chown web2_AnyUser /var/www/web2/web/
chown: changing ownership of `/var/www/web2/web/': Operation not permitted
RESULTS: Yes, i do get error = "Operation not permitted"

################################################## #######################

To falko:
Quote:
What's the output of
Code:

grep apache /etc/passwd

?
COMMAND RESULTS:
Code:
[root@testvirtual ~]# grep apache /etc/passwd
apache:x:48:48:Apache:/var/www:/sbin/nologin
Please Advise, Thanks
__________________
Free Wallpapers - Wallpaper Website Server. Trying to get my server

Last edited by bigger_travis; 7th February 2010 at 18:30.
Reply With Quote