Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-09-2002, 04:48 PM   #1
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?

Old 07-09-2002, 05:21 PM   #2
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
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
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?


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

Rep: Reputation: 30
Originally posted by Road
is it possible to have 2 onwers to a file?
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!

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


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:50 PM.

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