From: Dave H. <dhy...@gm...> - 2009-11-25 00:45:38
|
Hi Alex, On Tue, Nov 24, 2009 at 12:58 PM, Alex4 <ale...@ic...> wrote: > > the conventional linux/unix approaches allowing a user to reboot don't seem > to be working for me, and so part of this may be my learning how to do it on > the gumstix linux distribution. I even tried adding the user to the root > group in /etc/group and that doesn't seem to work either. > > btw, this is why it seems I need to reboot for the new ip address > $etc/init.d/networking restart > Reconfiguring network interfaces... Auto negotiation NOT supported > > I tried creating a group called rebooter then adding my user to that in > /etc/group and it didn't work either > > lrwxrwxrwx 1 root rebooter 15 Jan 1 1970 reboot -> > reboot.sysvinit Adding your user to the group just allows access to the reboot file, it won't make reboot run as root. You could also get the user sticky bit: chmod u+s reboot, and then reboot will run as root. Of course, using sticky bits has security implications... -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |