From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6af514f22b61e451 X-Google-Attributes: gidfee84,public From: ahabig@bigbang.astro.indiana.edu (Alec Habig) Subject: Re: Creating another account with root privileges. Date: 1995/08/28 Message-ID: <41ss9e$f48@usenet.ucs.indiana.edu>#1/1 X-Deja-AN: 109083546 references: organization: Indiana University Astrophysics, Bloomington, IN newsgroups: comp.unix.osf.osf1 Don Wilkerson 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.