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: pwerf@gak.nl (Peter van der Werf) Subject: Re: Creating another account with root privileges. Date: 1995/08/30 Message-ID: #1/1 X-Deja-AN: 109153225 sender: usenet@gak.nl (usenet) references: <41ss9e$f48@usenet.ucs.indiana.edu> organization: Gak newsgroups: comp.unix.osf.osf1 In article <41ss9e$f48@usenet.ucs.indiana.edu> ahabig@bigbang.astro.indiana.edu (Alec Habig) writes: >From: ahabig@bigbang.astro.indiana.edu (Alec Habig) >Subject: Re: Creating another account with root privileges. >Date: 28 Aug 1995 16:53:02 GMT >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 Why ?? it is as secure as the root account itself ....... >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. Hacking around in the password file is a bad idea !!!! In newer UNIX versions (so also in osf) there are security databases and the only reason there is a password file is for security reasons. Adding records to the password file will not work anf the only thing that happens is that you corrupt things. Just use the normal tools (adduser or if you are running enhanced security: XSysadmin). >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. Oh my god what are you suggesting !!! Never do this This is not only a big security hole but cannot be monitored also. Don't do this ! (some Operating systems are secured against this kind of stupid solutions; I don't know about OSF). >This of course, has its own dangers :) Yep; Those hackers are laughing themselves totally dead....... I don't know the reason you wan't to create another root account but if it is to get other people root permissions without knowing the root password the solution you suggested is the only way (or if you are afraid to forget your password). So just add another account. Otherwise (if you forgot your password or fuc&*?ed up your root account you will just have to trust the installation CD; Boot from the CD and restore the original account; this is the most secure way; grtx Peter