LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-09-2002, 04:48 PM   #1
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Making a Daemon User


I am trying to make a user to run a Daemon. The problem each time I try to switch the user it seems to fail, but if I use nobody it works fine.

I made the new user just using adduser, but is there something else I need to do?


Road
 
Old 07-09-2002, 05:21 PM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Daemon users (i.e. special accounts) should have UIDs above 100 (I think).
 
Old 07-09-2002, 05:27 PM   #3
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Please descibe exacley what you are trying to do,
what program you trying to run, what you are t ying to accomplish. It maybe you taking the wrong approch.

If I'm not mistaken a deomon just sit' in the background
and waits for some the wake it up.
 
Old 07-09-2002, 05:42 PM   #4
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Original Poster
Rep: Reputation: 15
I am running coldfusion on a redhat 7.2 apache box. The coldfusion daemon currently runs under nobody.

The problem is if I try and use coldfusion (CFfile command) to do file manipulation on the linux box I get an error. I can get arround this error by setting the directory and I am tyring to modify owners to user nobody and group nobody.

Now this makes me nervous using nobody and I would rather make my own user in hopes to be more secure. I woule also use this user to have FTP rights so I can modify my website with FTP. I would rather use SSH(FTP) but dreamweaver does not support that.


I could get around some of this, if I could make a directory with multiple owners. All the security text I have read says not to give anybody access to wirte to files except the owner, is it possible to have 2 onwers to a file?

Road

Last edited by Road; 07-09-2002 at 05:44 PM.
 
Old 07-10-2002, 01:04 AM   #5
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37 33.327 E 126 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Rep: Reputation: 30
Quote:
Originally posted by Road
is it possible to have 2 onwers to a file?
Hi!
Well, I don't know anything about coldfusion, but I can help you with the owners.

Well, to make more than one user own a file, you'd have to make a group, and then let all the users that you want to own the file become members of that group. For example

I want the file foo.file thats currently owned by nobody to be owned by the users bob, and pete.

groupadd foo

chown bob:foo foo.file
(that means, make the owners the user bob, and all members of the group foo)

chmod 770 foo.file
(that means, the owner has rwx permissions, and all members of the file's group has rwx permissions, and everyone else has no permissions)

edit /etc/group with your favourite editor, add bob and pete after the last ':' of the group foo (which should be at the bottom).

Good Luck!
RefriedBean

Last edited by RefriedBean; 07-10-2002 at 01:05 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Daemon User redijedi Linux - Newbie 9 10-30-2006 02:50 PM
Daemon User redijedi Linux - General 1 04-07-2005 07:44 PM
Starting mysql daemon as user rather than root arubin Slackware 8 05-10-2004 04:03 PM
Getting Fetchmail to poll multiple user accounts in daemon mode davidbalt Linux - Newbie 0 02-23-2004 05:21 PM
Need help making FTP daemon accessible through firewall Electrode Linux - Networking 1 08-12-2003 05:35 PM


All times are GMT -5. The time now is 12:36 PM.

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