On Sun, Nov 30, 2003 at 11:10:36AM +0000, Payal Rathod wrote:
> 
> I have many users which are  required by daemons like e.g. log,
> cache, dnscache, etc. Now most of these users don't need a home
> directory and a shell.

Yes, this is a requirement for  many things inclusive of things
like postgres and qmail (if you compile from source).

> I can always but the shell as false or true (which is
> recommended???) 
 
Yes, usually it is /bin/false
 
> but what  do do  for home directories?  I don't  want clustered
> directories like  logs, dnscache etc in  /home. Right now  I am
> keeping   all  thee   kind  of   users   home  directories   as
> /home/.notrequired.  So,  I  add  the user  as,  
> # adduser -s > /bin/false -h /home/.notrequired log

Why are you using adduser ? adduser is a frontend to the actual
program "useradd", and it varies from distro to distro. It is a
shell script under Slack, perl script under some others ...
 
Use "useradd" directly from the command line. e.g. The following
creates a user junk (under group users) with /bin/nologin as the
shell but no home dir. You need to do a groupadd if you want the
user junk to be in an exclusive group.
 
root:/# useradd -g users -s /bin/nologin junk
root:/# grep junk < /etc/passwd
junk:!:1012:100:::/bin/nologin
root:/#
 
[Note, this is on my LFS system]. 
 
You may acually do a "vipw" and create a user directly, groups
may be created directly with "vigr" under root privileges.
 
HTH
 
Bish
 
--
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Simple console calculator (#1)                 LOST #221

The simplest is to use 'expr'. Try this out:  $expr 4 + 12 / 3
or $expr 6 "*" 2. [ Note: The quotes for multiplication ].

####[kumarayil (at) eth.net]##################################
:


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to