Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ahabig@bigbang.astro.indiana.edu (Alec Habig)
Subject: Re: Creating another account with root privileges.
Date: 1995/08/28	[thread overview]
Message-ID: <41ss9e$f48@usenet.ucs.indiana.edu> (raw)
In-Reply-To: don.91.0053526C@colosys.net

Don Wilkerson <don@colosys.net> wrote:
>How do I create another account, for emergency only, that would have 
>super-user priviliges.  That last time I tried adding a user called 'newsu' 
>and gave it a uid of '0' all my owner names changed from 'root' to 'newsu'.
>I don't want it to do that.

First, doing what you want would be a Bad Idea from a security standpoint.  And
the only way it would help you would be if you forgot the root password.
Anything else that would zap the root account would also zap either all other
accounts, or the system itself.  Thus, it's probobly not worth doing.

If you really want to do it :

Try adding the new account in the password file _after_ the root account
definition - ls shows the first match to the uid/gid that it hits.

Perhaps a better solution - hide a copy of sh somewhere, set it only executable
by your "newsu" (uid not 0) account, chown it to root, and chmod u+s it.  That
will make whomever runs that copy of sh root.

This of course, has its own dangers :)

	Alec

-- 
	    Alec Habig, Indiana University High Energy Astrophysics
		       ahabig@bigbang.astro.indiana.edu
	      http://astrowww.astro.indiana.edu/personnel/ahabig/
	    Ted Kennedy's car has killed more people than my guns.



  reply	other threads:[~1995-08-28  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-25  4:00 Creating another account with root privileges Don Wilkerson
1995-08-28  4:00 ` Alec Habig [this message]
1995-08-30  4:00   ` Peter van der Werf
1995-08-30  4:00     ` igor
1995-08-30  4:00     ` Alec Habig
1995-08-29  4:00 ` Emanuel Borsboom
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox