Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Apache User

Forgot Password?
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-26-2009   #1 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 3
Apache User

Hi:

I know that the apache user is www-data. It seems to me that this user does not have a lot of privileges. can anybody let me know is this user can execute shell scripts?

I have an expect script that spawns an ssh connection. it was not working so I added www-data to the groups ssh, and crontab (This script is cronned), but it is still not working.

So my question is, does anybody know the limits of the apache user?
yorubawarrior is offline  


Reply With Quote
Old 06-26-2009   #2 (permalink)
Just Joined!
 
TheBoogyMaster's Avatar
 
Join Date: Apr 2009
Posts: 37
it depends if hes path on the profile is /bin/bash if this is tha cas yes...

but by default i dont think so
TheBoogyMaster is offline   Reply With Quote
Old 06-26-2009   #3 (permalink)
Content Team
 
davidanand's Avatar
 
Join Date: Apr 2008
Location: cochin,India.
Posts: 163
Send a message via Yahoo to davidanand
Looks like you are using DEBIAN and apache 2 right ?

You want apache2 to be optimized for better performance or
to restrict users ..?
__________________
Regards
David.$
-->davidanands.co.cc
Success is the list of failures ...!!!
davidanand is offline   Reply With Quote
Old 06-26-2009   #4 (permalink)
Just Joined!
 
Join Date: Jun 2009
Posts: 3
Thanks TheBoogyMaster. I will read up abut profile paths and get back to you about that.
@davidanand I am using Ubuntu server and apache2.

the problem is that I have an expect script and a php web frontend, I am setting a cron job to run the script from the php front end. The cron job is sets (I check it) but the script does not run, which makes me think that www-data is not privileged to run scripts, from what TheBoogeyMaster says, it appears that is right.
yorubawarrior is offline   Reply With Quote
Old 07-06-2009   #5 (permalink)
Just Joined!
 
Join Date: Jul 2009
Posts: 7
Have you tried running it from shell of user apache before setting it in cron? Also whats the grp, user and permission set for the script? Is the script trying to write to some file/directory to which it do not have permission? I would suggest to run the script from apache user's command prompt in debugg mode to get more details..
You can do that from
su - www-data
sh -x filename.sh
bills is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:34 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2