LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Sudo Help

[ILUG] Sudo Help

Thomas Bridge thomas at medianet.ie
Tue Oct 26 13:36:48 IST 1999


On Tue, 26 Oct 1999, Dave Burke wrote:

> [root at hoth /root]#  cat /usr/local/bin/sudo-passwd
> #!/bin/sh
> 
> if [ "$1" = root ]; then
>         echo "WARNING"
>         exit
> fi
> 
> 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.

T.

-- 
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





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell