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/30 Message-ID: <421sg0$3ug@usenet.ucs.indiana.edu>#1/1 X-Deja-AN: 109153251 references: <41ss9e$f48@usenet.ucs.indiana.edu> organization: Indiana University Astrophysics, Bloomington, IN newsgroups: comp.unix.osf.osf1 Peter van der Werf wrote: >ahabig@bigbang.astro.indiana.edu (Alec Habig) writes: > >>First, doing what you want would be a Bad Idea from a security standpoint > >Why ?? it is as secure as the root account itself ....... Sure. It's just another path a hacker could take, though. >>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). What's wrong with vipw??? That way you can edit the password file to your heart's content, and upon exiting all dependant files are hashed/compiled/updated automagically. Far more flexible than the (reasonably lame, IMHO) scripting tools you mentioned. >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; Agreed - this is the best solution. -- 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.