LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-04-2001, 09:21 AM   #1
acren
LQ Newbie
 
Registered: Jul 2001
Posts: 2

Rep: Reputation: 0
Question daemons


I am running Audio Galaxy ( connected to the internet all the time ) as a daemon in the background.
Now I heard that you can run it as a special user ( with no rights ).
But how?

MfG acren
 
Old 07-04-2001, 10:39 AM   #2
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Your referring to the users called "nobody"
Look through its configuration files to see if you can change its current id.

I'll go and have a look and see what I can find.

/raz
 
Old 07-04-2001, 09:02 PM   #3
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
You could use the user 'nobody', but to Apache the user nobody is somebody. The nobody user would have rights to whatever files he owned.
I'd suggest that you create a new user called 'agalaxy' (or whatever) and make him non-login able and dedicated to this application ONLY. Set the ownership of the directory and all the Audio Galaxy files to this user, and launch the program as this user.
 
Old 07-06-2001, 04:28 AM   #4
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
crabboy,

Apache didn't invent the user, it's a standard trust no-one over networks logging name from the BSD days.

If Apache is run correctly the daemon runs as user nobody but the files it runs should be owned by someother user like "webadmin" and group "webstuff" then all the files should have the privileges set with chmod 644.

This way if a bug lets someone run files with the id of the httpd your not going to get very far.

/Raz
 
  


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
writing daemons masand Programming 2 04-29-2004 12:16 PM
daemons and permissions stabu Linux - Newbie 2 03-30-2004 10:19 AM
daemons LinuxLala Linux - General 4 11-28-2003 01:37 PM
Daemons mariua Linux - General 0 10-11-2001 05:03 AM
Daemons mariua Linux - Newbie 0 10-11-2001 05:00 AM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration