I'd like to setuid on a script that runs at boot time.
The system is running Solaris 8 (fully patched.)
The user I'd like to have it run as has a shell of /dev/null. I have
tried adding
SU=/bin/su - <username> -c
SU=/bin/su - <username> -c "command to be run"
SU=/bin/su <username> -c
SU=/bin/su <username> -c "command to be run"
to the script.
When ever the process is started/running, it will always come up as
root. My only guess is that the home dir is /dev/null. If this is
the case, what are my options? (Change the shell, don't set it
setuid, etc?)
thanks
eric