On Tue, 26 Oct 1999, Dave Burke wrote:
> [root at hoth /root]# cat /usr/local/bin/sudo-passwd
>> if [ "$1" = root ]; then
> echo "WARNING"
>> passwd $1
> I'm just not happy with this script, It all looks too simple and I've a
> feeling I've done something inherently wrong. Is there anything else that
> I should be looking to check?
Do it on the group ID of the user - is the user in one of a predefined
list of users?
Now that you mention it, I have such a script I wrote for a friend who is
a sysadmin in UCD. Its main assumption is that the "ordinary" users are
all in one of a (smallish) number of groups. It almost certainly won't
work under RedHat due to RH's sucky way of implementing groups, but on
more traditional machines it should be fine.
Talk to me if you want the script.
Thomas Bridge Senior Hostmaster/Sysadmin, VIA NET.WORKS Ireland.
thomas.bridge at via-net-works.ie
"Some people have told me they don't think a fat penguin really embodies
the grace of Linux, which just tells me they have never seen a angry
penguin charging at them in excess of 100mph. They'd be a lot more
careful about what they say if they had." - Linus Torvalds
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!