Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #192923

Re: problems with manual page usermod.8 and useradd.8

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: problems with manual page usermod.8 and useradd.8
Date 2018-02-22 23:20 +0100
Message-ID <vm7nA-2DF-19@gated-at.bofh.it> (permalink)
References <vm6Ux-2cB-5@gated-at.bofh.it> <vm7nA-2DF-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Feb 22, 2018 at 05:09:34PM -0500, Roberto C. Sánchez wrote:
> I have seen this used on old UNIX or BSD systems to create a second root
> account. For example, the standard default root account is set to use
> some old sh or csh implementation. Somebody installs bash (probably in
> /usr/local) and wants to be able to log in as root and have that be the
> default shell. However it might be dangerous to change root's default
> shell, so you create a second account called 'toor' with user ID 0 and
> the same home directory as root and set its default shell to
> /usr/local/bin/bash (or whatever). Then administrators are able to log
> in as 'toor' to get bash as the default shell.

I've seen variants of this as well, but usually you do it by running vipw
to edit the passwd file (or its BSD equivalent) directly.  Who's got
time to waste learning a bunch of obscure useradd or usermod options? :)

(Seriously, I believe the actual purpose of useradd/usermod is for
package post-install commands, not human use.  Humans can just edit
the file manually.  Plus you get to clean up the ordering of the UIDs
and such while you're in there.)

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

problems with manual page usermod.8 and useradd.8 MarkusHiereth <translation@hiereth.de> - 2018-02-22 22:50 +0100
  Re: problems with manual page usermod.8 and useradd.8 David Wright <deblis@lionunicorn.co.uk> - 2018-02-22 23:20 +0100
  Re: problems with manual page usermod.8 and useradd.8 Greg Wooledge <wooledg@eeg.ccf.org> - 2018-02-22 23:20 +0100
  Re: problems with manual page usermod.8 and useradd.8 Roberto C. Sánchez <roberto@debian.org> - 2018-02-22 23:20 +0100
  Re: problems with manual page usermod.8 and useradd.8 Michael Fothergill <michael.fothergill@gmail.com> - 2018-02-22 23:20 +0100
  Re: problems with manual page usermod.8 and useradd.8 <tomas@tuxteam.de> - 2018-02-23 09:20 +0100

csiph-web