Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* switch user to root in shell script
@ 1998-12-29  5:00 GL
  1998-12-30  5:00 ` Drew Vayro
  0 siblings, 1 reply; 3+ messages in thread
From: GL @ 1998-12-29  5:00 UTC (permalink / raw)


Hi,

This is most probably a silly question but nevertheless I would like to
pose it:

Is it possible do perform a "switch user" command from any user to root
(root password is known, offcourse) inside a shell script on a DU 4.0d
platform? Or is command input for the "su" command "blocked out" in batch
somehow?

Greetings,

Fred van de Langenberg
berg@kabelfoon.nl




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

* Re: switch user to root in shell script
  1998-12-29  5:00 switch user to root in shell script GL
@ 1998-12-30  5:00 ` Drew Vayro
  1999-01-03  5:00   ` Caprica 7
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Vayro @ 1998-12-30  5:00 UTC (permalink / raw)


GL <berg@kabelfoon.nl> wrote in article 
> Is it possible do perform a "switch user" command from any user to root
> (root password is known, offcourse) inside a shell script on a DU 4.0d
> platform? Or is command input for the "su" command "blocked out" in batch
> somehow?

Better idea would be to use sudo, thats exactly what it is designed for.

Drew Vayro
drew.vayro@nl.origin-it.com




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

* Re: switch user to root in shell script
  1998-12-30  5:00 ` Drew Vayro
@ 1999-01-03  5:00   ` Caprica 7
  0 siblings, 0 replies; 3+ messages in thread
From: Caprica 7 @ 1999-01-03  5:00 UTC (permalink / raw)


The only requirement for any user to be able to SU root is that he needs to be
a member of the "system" group in /etc/group.

sudo works, and you can also call the encrypted version of root's password in a
shell script; I don't see any restrictions on which shell you use but I might
stick with Korn or Bourne as most Digital UNIX systems are installed with root
under the Bourne, Korn, or a weird thing called "Korn under the Bourne Shell."

Best Regards,

Mark Ray
Digital UNIX Systems Administrator
S & S Worldwide, Corp.



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

end of thread, other threads:[~1999-01-03  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-29  5:00 switch user to root in shell script GL
1998-12-30  5:00 ` Drew Vayro
1999-01-03  5:00   ` Caprica 7

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