why won't this script work in my Edubuntu setup?

Gavin McCullagh gmccullagh at gmail.com
Thu Aug 30 13:41:32 BST 2007


On Wed, 29 Aug 2007, David Trask wrote:

> I had this script (below) which I used to use to "kill" users quickly....I
> even used to build other scripts from this one....such as one that logged
> off my kindergarten class...etc.  Problem is....it doesn't work in my
> current Edubuntu situation (with smbldap).  any idea why?  What am I
> missing?  I have the script in /usr/bin and the usage is
> stop username 
> used to work fine, but I know I'm missing something with Edubuntu.  Here's
> the script....(commented to avoid messing with your system)  any ideas to
> modify?

Are you running it with sudo?

Does it work if you run it giving their userID instead of their username?

If you manually run "pgrep -u <username>" do you get any output?  If you
don't, it's possible pgrep is unable to determine the UID to search users


More information about the edubuntu-users mailing list