LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2007, 04:04 PM   #1
displacedtexan
LQ Newbie
 
Registered: May 2007
Posts: 22

Rep: Reputation: 15
run program as apache


Easy dumb question. How do I run azureus as my apache user?

Thanks!!
 
Old 06-12-2007, 04:32 PM   #2
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
As your apache user? As in... the user stored in apache's password file, and not in Linux's /etc/passwd? I doubt that you can.

What you can do is add that user to your system, and then it would be much easier.

PS why do yo want to run azureus as your apache user? If you tell us exactly what you want to achieve, or more details, maybe we can give a better solution.

If I've misread your question, and you do have a system user called apache, and it's configured properly then you can open a terminal and type "su apache", enter the password and type any command/name of application you want to use it.
 
Old 06-12-2007, 04:58 PM   #3
displacedtexan
LQ Newbie
 
Registered: May 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Valkyrie_of_valhalla
As your apache user? As in... the user stored in apache's password file, and not in Linux's /etc/passwd? I doubt that you can.

What you can do is add that user to your system, and then it would be much easier.

PS why do yo want to run azureus as your apache user? If you tell us exactly what you want to achieve, or more details, maybe we can give a better solution.

If I've misread your question, and you do have a system user called apache, and it's configured properly then you can open a terminal and type "su apache", enter the password and type any command/name of application you want to use it.
I am trying to run torrentflux-b4rt with azureus with the help of this guide: http://tf-b4rt.berlios.de/azureus

I am stuck on this part:
"3. Start the Azureus-Server. Use the same user/group as the webserver runs."

I think my webserver runs as the user 'apache', correct? I am using Fedora Core 6.

So, I am trying to start azureus with the user apache, and I don't know how to do it. I have tried varous incarnations of su -apache with no luck since I don't know apache's password. Can I just reset the user apache's password and then login? Wouldn't this cause other issues?

Thanks!!
 
Old 06-13-2007, 02:55 PM   #4
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
Hmm, are you sure that apache created a user called apache? Check /etc/passwd and /etc/shadow . If there is a user listed there with that name, then it should probably not have a password (have you tried hitting enter when it prompts for a password?). If it is listed in /etc/shadow with a password ( it will show only the encrypted password, a weird set of strings), then you could try cracking the password (aka find a good program that can brute force the string, giving the actual password so you don't modify anything).

But, first... Are you sure apache runs as a user called apache? Try starting it as you usually do, and run a "ps -aux" in a terminal and see what the user running it is listed as. Then run your other program as that user and see if it works.

I can't think of anything else right now that might work...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache program writes files in the apache group, how can I change? muskiediver Linux - Security 5 01-17-2007 01:27 PM
How to run a program in an ssh session that will run after you close out the session? dr_zayus69 Linux - Networking 5 03-05-2006 08:15 PM
run another program in a program becky_starr Programming 7 02-15-2004 12:46 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 09:19 AM
Want to run a program from a program GoboFraggle Programming 3 04-21-2003 09:30 PM


All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration