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


Groups > linux.debian.user > #192924

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

From Roberto C. Sánchez <roberto@debian.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-21@gated-at.bofh.it> (permalink)
References <vm6Ux-2cB-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Feb 22, 2018 at 10:12:44PM +0100, MarkusHiereth wrote:
> 
> Has anybody an idea about the purpose of such an option?
> 
Hi Markus,

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 have never implemented such a scheme myself, I just recall having seen
it on some very old systems I used a long time ago.

Regards,

-Roberto

-- 
Roberto C. Sánchez

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