On Sun, 16 Oct 2005, Dan McGhee wrote:

In my mission to make my LFS distro "seamless" for the other, less 'computer/Linux' savvy <BBG,LOL> members of my family, I've been experimenting with various window and session managers. I'm most familiar with Window Maker and ROX-Session. Each of these has an "Exit" menu on which one can select "Logout, Shutdown or Restart"--or other words that convey the same concepts. ROX uses the commands 'halt' and 'reboot,' both of which reside in /sbin. However, one needs to be root to use them. Aside from building 'sudo,' I'm wondering how I could get the init system to listen/look for the button selection and then run 'init 0' or 'init 6.' This is, in fact how I shutdown now--> su to root and then run the command I want.

A couple of years ago, I used to chmod shutdown so that I could shut down as a user. These days, I mostly use gdm (needs a modest number of gnome packages) which has options to shutdown or reboot on the login window (runlevel 5 - if you're giving them a console login at the moment, might need to symlink their .xinitrc files as .xsession).

Ken
--
 das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to