Koozali.org: home of the SME Server

Creating a "shutdown user" again

Bill Talcott

Creating a "shutdown user" again
« on: January 30, 2003, 06:42:29 PM »
Actually, I want to create a user that will reset the networking stuff when logged on, but it's the same basic concept.

http://forums.contribs.org/index.php?topic=15439.msg59330#msg59330

> Login to your e-smith box as root.
>
> pico /sbin/WirelessRestart
> [Add these lines]
> #!/bin/bash
> /sbin/service ppoe restart (Isn't it ppoe, not pppoe?)
> [Save Changes]
>
> adduser -r wireless -c "Wireless Restart Account" -s
> /sbin/WirelessRestart
> passwd wireless
> [Set a password]

I did this, changing it to "/sbin/service network restart" instead of PPPoE, and using a different username. As suggested in http://forums.contribs.org/index.php?topic=15439.msg59330#msg59330 I also ran "usermod -G root ". When I login with this account, it brings up the script exactly as it should, but during execution it complains that "users cannot control this device". Did I do something wrong, or is there another step I need to do?