Re: Shutdown/Reboot Ubuntu
Mithat Konar <[email protected]> Thu, 21 Oct 2010 02:20:13 -0700 (PDT)
| Newsgroups | gmane.comp.desktop.rox.user |
|---|---|
| Message-ID | <[email protected]> |
Doh! Sorry ... I thought this was from the IceWM mailing list (which I also follow). If the info I provided can be used to fix your problem, great. If not, please forgive my bad. -M ----- Original Message ---- > From: Mithat Konar <[email protected]> > To: Installation and use of the ROX Desktop <[email protected]> > Sent: Thu, October 21, 2010 12:17:07 PM > Subject: Re: [rox-users] Shutdown/Reboot Ubuntu > > The problem is that the 'shutdown' command used by IceWM can be executed only >by > > root. (This is the default case for most (all?) Linuxes.) Here are a few > choices: > > 1) Use sudo to give permission to regular users to execute the 'shutdown' > command without password prompting. This requires editing your sudoers file > (with visudo) but is probably better than the following option. I set my box >up > > so all member of the 'plugdev' group can execute 'shutdown'. I did this by >using > > visudo to add: > > %plugdev ALL=NOPASSWD: /sbin/shutdown > > as the last line in the sudoers file. To power down, configure IceWM to use: > > sudo shutdown -hP now > > To reboot: > > sudo shutdown -r now > > 2) Set the 'sticky' bit on the shutdown command to give all users the ability >to > > execute the 'shutdown' command directly. The problem with this approach is >that > > if the 'shutdown' command get an update in the future, you will have to set >the > > sticky bit again. As root: > > chmod u+s /sbin/shutdown > > (I think this is correct! I haven't done this in a while.) > > 3) If you have Openbox and GDM installed as well, you can use 'gdm-control' to > > handle the power stuff. See the man pages for gdm-control if you want to do it > > this way. > > > Cheers, > -M > > > ----- Original Message ---- > > From: Ariszló <[email protected]> > > To: ROX Users <[email protected]> > > Sent: Thu, October 21, 2010 11:23:17 AM > > Subject: [rox-users] Shutdown/Reboot Ubuntu > > > > How do you shutdown/reboot Ubuntu from ROX-Session? > > > > Logout works fine in home-built ROX-Session 0.41.0 (unlike in 0launch > > ROX-Session where even Logout is broken) but Shutdown or Reboot does > > not. No problem in Debian Lenny/Squeeze/Sid so I guess this might be > > related to Ubuntu's disabled root account but I have no idea how to > > fix it. > > > > >------------------------------------------------------------------------------ > > Nokia and AT&T present the 2010 Calling All Innovators-North America >contest > > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >marketing > > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > > http://p.sf.net/sfu/nokia-dev2dev > > _______________________________________________ > > rox-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/rox-users > > > > > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > rox-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/rox-users > ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev