Limiting root su on Solaris?
dbukchin at micron.com
Mon Mar 26 16:15:28 EST 2001
I've implemented something like this. Here is the script:
trap " " 2 3
if [ "$1" = "" ]
echo "Usage: /usr/userscripts/usershell <username>"
echo "To exit usershell type "exit" at the command line"
case "$1" in
ben | judy | ted | hendrik | bill | hema | julie | timmy | henry | marry |
david | perry )
su - $1;;
echo User is not in the list;;
trap 2 3
You can modify this script according to your needs.
In sudoers just give your users access to this file.
From: Mark Horning [mailto:rip6 at rip6.net]
Sent: Saturday, March 24, 2001 8:27 PM
To: sudo-users at courtesan.com
Subject: Limiting root su on Solaris?
I'm trying to restrict root su on a Solaris
box while allowing su to other users. Has
anyone had any success at this? I've tried
the man page examples and a few other things
but still can't seem to restrict that access.
rip6 at rip6.net
sudo-users mailing list <sudo-users at courtesan.com>
For list information, options, or to unsubscribe, visit:
More information about the sudo-users