tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Randy Moore <ramoore () alexus ! com>
To: tru64-unix-managers
Subject: Starting service as a particular UserID during bootup (rc3.d) in DU 3.2c
Date: Fri, 18 Apr 1997 16:56:47 +0000	[thread overview]
Message-ID: <96078611110525.tru64-unix-managers.marc@archive.invalid> (raw)

I need to start a server process on my Alpha running DU 3.2c with a
particular UserID during boot up, but have not been able to get this to
work nor understand why.

I have a script that is owned by root that has been installed into the
/sbin/init.d directory and linked to /sbin/rc3.d that attempts to start
this service.

The strange thing is that while logged in as root, I can run this script
and it starts the server process with the right UserID as intended.  But
when this script runs during bootup (rc3), it does not work.  Here is
the line my shell script uses to start the process with the right
userID.

su UserID -c "exec /path/myprocess &" >/dev/console 2>&1 &

I have also tried other variations such as making "/path/myprocess" SUID
to UserID and running it directly from my startup script, which also did
not work during bootup.

I also tried writing a simple Perl script that changed it's effective
UserID and attempts to start the process and this did not work either.

Any suggestions would be most welcome.

Thank you,

Randy Moore
Alexus, Inc.

                 reply	other threads:[~1997-04-18 16:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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