LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   User & group (https://www.linuxquestions.org/questions/linux-server-73/user-and-group-642490/)

bijit1709 05-15-2008 05:31 PM

User & group
 
Hi,

Can anyone tell me how to make a user and group for a daemon.
eg.

When squid starts its starts as nobody.
I would like to create a user squid and group squid.

If I use adduser I will create the home. But I just want the user squid with a blocked passwd. And I have never created a group. Just know

groupadd -g 110 squid. Is that sufficient for squid?

Can anyone lead me through the right steps?

bjagee 05-15-2008 05:53 PM

You don't have to create a directory with adduser. Try
Code:

man adduser
for more info. the group is as easy as
Code:

addgroup [groupname]


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