Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Creating another account with root privileges.
@ 1995-08-25  4:00 Don Wilkerson
  1995-08-28  4:00 ` Alec Habig
  1995-08-29  4:00 ` Emanuel Borsboom
  0 siblings, 2 replies; 6+ messages in thread
From: Don Wilkerson @ 1995-08-25  4:00 UTC (permalink / raw)


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.

Thanks!!

don wilkerson
don@colosys.net




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Creating another account with root privileges.
  1995-08-25  4:00 Creating another account with root privileges Don Wilkerson
@ 1995-08-28  4:00 ` Alec Habig
  1995-08-30  4:00   ` Peter van der Werf
  1995-08-29  4:00 ` Emanuel Borsboom
  1 sibling, 1 reply; 6+ messages in thread
From: Alec Habig @ 1995-08-28  4:00 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Creating another account with root privileges.
  1995-08-25  4:00 Creating another account with root privileges Don Wilkerson
  1995-08-28  4:00 ` Alec Habig
@ 1995-08-29  4:00 ` Emanuel Borsboom
  1 sibling, 0 replies; 6+ messages in thread
From: Emanuel Borsboom @ 1995-08-29  4:00 UTC (permalink / raw)


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.

There's a great program out there called sudo.  Using a configuration 
file, you can give it a list of users who may have root privelages (and,
optionally, which programs they are allowed to run as root).  After that,
the user can type
  sudo <command>
to run the command as root.  If it has been more than five minutes since
the last running of sudo by that user, it prompts the user for his/her
password, incase they walked away from their terminal.

---
Emanuel Borsboom
 internet: borsboom@amtsgi.bc.ca
   packet: VE7NUL@VE7DIE.#SVI.BC.CAN.NOAM




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Creating another account with root privileges.
  1995-08-28  4:00 ` Alec Habig
@ 1995-08-30  4:00   ` Peter van der Werf
  1995-08-30  4:00     ` Alec Habig
  1995-08-30  4:00     ` igor
  0 siblings, 2 replies; 6+ messages in thread
From: Peter van der Werf @ 1995-08-30  4:00 UTC (permalink / raw)


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 <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

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








^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Creating another account with root privileges.
  1995-08-30  4:00   ` Peter van der Werf
  1995-08-30  4:00     ` Alec Habig
@ 1995-08-30  4:00     ` igor
  1 sibling, 0 replies; 6+ messages in thread
From: igor @ 1995-08-30  4:00 UTC (permalink / raw)



Another way to log in your computer (if you forgot your root password)
is to boot the computer in the SINGLE-USER mode.

After that you can use the 'paswwd' command in order to set the root password.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Creating another account with root privileges.
  1995-08-30  4:00   ` Peter van der Werf
@ 1995-08-30  4:00     ` Alec Habig
  1995-08-30  4:00     ` igor
  1 sibling, 0 replies; 6+ messages in thread
From: Alec Habig @ 1995-08-30  4:00 UTC (permalink / raw)


Peter van der Werf <pwerf@gak.nl> 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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1995-08-30  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-25  4:00 Creating another account with root privileges Don Wilkerson
1995-08-28  4:00 ` Alec Habig
1995-08-30  4:00   ` Peter van der Werf
1995-08-30  4:00     ` Alec Habig
1995-08-30  4:00     ` igor
1995-08-29  4:00 ` Emanuel Borsboom

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