Re: Change Useradd Behavior



On Wed, 17 Mar 2010 14:02:02 -0400 (EDT), Carlos Mennens wrote:
On Wed, Mar 17, 2010 at 1:50 PM, Stephen Powell <zlinuxman@xxxxxxxxxx> wrote:
First of all, "useradd" should not be invoked directly.  I suggest the
"adduser" frontend to useradd.  Second, /etc/profile, the system-wide
bash profile, contains a setting for the default umask.  Perhaps this
is what you want to change?  Or maybe you want to set the DIR_MODE
variable in /etc/adduser.conf?

I have never heard this before in years or using Linux. I am not
saying you're wrong but I would just like to know why I should not use
'useradd' rather than 'adduser'. I assumed that it was just personal
preference for which you preferred to use but I could be wrong
according to your above statement.

From the man page for useradd on Debian Lenny:

useradd is a low level utility for adding users. On Debian,
administrators should usually use adduser(8) instead.

From the man page for adduser on Debian Lenny:

adduser and addgroup add users and groups to the system according to
command line options and configuration information in
/etc/adduser.conf. They are friendlier front ends to the low level
tools like useradd, groupadd, and usermod programs, by default choosing
Debian policy conformant UID and GID values, creating a home directory
with skeletal configuration, running a custom script, and other fea-
tures.

--
.''`. Stephen Powell <zlinuxman@xxxxxxxxxx>
: :' :
`. `'`
`-


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/1299276412.19837101268850344642.JavaMail.root@xxxxxxxxxxxxxxxxxxxx



Relevant Pages

  • adduser and RPC Connection
    ... portmapper by default - which grml doesn't. ... Although I get the reason, I wasn't able to get the answer to my question -- ... is there any way to disable Debian's useradd from using NIS and making rpc ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Default user groups
    ...  # useradd defaults file ... To unsubscribe or change subscription options: ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)
  • Re: Change Useradd Behavior
    ... 'useradd' rather than 'adduser'. ... preference for which you preferred to use but I could be wrong ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Adding users in Kickstart?
    ... On Thu, 2004-09-23 at 14:33, Michael Halligan wrote: ... What's wrong with useradd? ... have to run groupadd first then) but I don't know whether this is a ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)