Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Automating startup & shutdown on Alpha
@ 1997-06-04  4:00 onwong
  1997-06-04  4:00 ` John Hill
  1997-06-04  4:00 ` Ketil Z Malde
  0 siblings, 2 replies; 3+ messages in thread
From: onwong @ 1997-06-04  4:00 UTC (permalink / raw)



Using Digital UNIX 3.2C, I have 2 problems:
1. How do I automatically start an application from bootup? I have tried
the /etc/inittab file with:
xyz:3:boot:/bin/su - username -c "(cd /usr/home/username;./appname)"
Also no luck with rc3.d script
2. Is it possible for a user other than root to shut down the system? In
SCO UNIX I granted a user the shutdown authorisation to be used with
asroot. But Digital UNIX does not seem to have asroot.

I appreciate any advice, including good web sites or good books.

Gary Robertson
sales@crossland.com.au
Crossland Tech
Brisbane, Australia



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

* Re: Automating startup & shutdown on Alpha
  1997-06-04  4:00 Automating startup & shutdown on Alpha onwong
@ 1997-06-04  4:00 ` John Hill
  1997-06-04  4:00 ` Ketil Z Malde
  1 sibling, 0 replies; 3+ messages in thread
From: John Hill @ 1997-06-04  4:00 UTC (permalink / raw)



onwong wrote:
> 
> Using Digital UNIX 3.2C, I have 2 problems:
> 1. How do I automatically start an application from bootup? I have tried
> the /etc/inittab file with:
> xyz:3:boot:/bin/su - username -c "(cd /usr/home/username;./appname)"
> Also no luck with rc3.d script

A script in /sbin/rc3.d should work. It has to be called Sxxyyy where
xx is a number defining the position in the boot sequence and yyy is
an arbitrary name identifying the application. The script is sent a
"start" argument (which can be ignored of course).
The normal approach is to put the script in /sbin/init.d and have a
symbolic link from /sbin/rc3.d. This way, the same script can be used
for shutdown (when it receives a "stop" argument) as well as startup
- you would identify it for use in shutdown by a name such as Kxxyyy
symbolically linking to the script.
Check out the existing scripts in init.d and rc3.d to see what I'm
talking about.

> 2. Is it possible for a user other than root to shut down the system? In
> SCO UNIX I granted a user the shutdown authorisation to be used with
> asroot. But Digital UNIX does not seem to have asroot.
> 
> I appreciate any advice, including good web sites or good books.
> 
> Gary Robertson
> sales@crossland.com.au
> Crossland Tech
> Brisbane, Australia
I'm not really expert enough to answer this.
Regards,
John Hill
-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+  Dr. John C. Hill                  University of Cambridge,       +
+  E-mail: hill@hep.phy.cam.ac.uk    Cavendish Laboratory,          +
+  Phone:  +44-1223-337243           Madingley Road,                +
+  Fax:    +44-1223-353920           Cambridge, CB3 0HE, U.K.       +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



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

* Re: Automating startup & shutdown on Alpha
  1997-06-04  4:00 Automating startup & shutdown on Alpha onwong
  1997-06-04  4:00 ` John Hill
@ 1997-06-04  4:00 ` Ketil Z Malde
  1 sibling, 0 replies; 3+ messages in thread
From: Ketil Z Malde @ 1997-06-04  4:00 UTC (permalink / raw)



"onwong" <onwong@crossland.com.au> writes:

> Using Digital UNIX 3.2C, I have 2 problems:

> 2. Is it possible for a user other than root to shut down the system? In
> SCO UNIX I granted a user the shutdown authorisation to be used with
> asroot. But Digital UNIX does not seem to have asroot.

Would copying /sbin/shutdown, chowning it to the user in question, and
chmod'ing it to 4100 (suid, and user exec only) do the trick?

~kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants



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

end of thread, other threads:[~1997-06-04  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-04  4:00 Automating startup & shutdown on Alpha onwong
1997-06-04  4:00 ` John Hill
1997-06-04  4:00 ` Ketil Z Malde

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