Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.


  Search this Thread
Old 08-21-2004, 10:29 AM   #1
LQ Newbie
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ??

Hi all,

I recently installed Tiny Sofa 2.0

I really enjoy using this distribution, but since the beginning, I have some doubts... In the other distributions I'm used to, "halt" and "reboot" are root commands (need to type password)...but in Tiny Sofa, it does reboot or halt with any user!! But with a apt-get update, it does ask root password !! Am I missing something here ???

Thanks to help

Old 08-21-2004, 03:28 PM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Ah, the joys of different distributions!

Assuming that it's using the standard GNU sysv package, the expected behaviour is to refuse to do anything unless you are actually root:
	if (geteuid() != 0) {
		fprintf(stderr, "%s: must be superuser.\n", progname);
To circumvent this, it could be using the sudo package to allow those particular programs to always run as root; this is probably only dangerous if you don't want random people with login accounts to turn your computer off.

I don't know how a prompt for a password would be set up.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-17-2006 11:03 PM
Can't run "halt" or "reboot" as user, can somebody help? ro_nicu Slackware 4 11-01-2004 07:57 AM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 11:33 AM
Ordinary user can execute the "halt" command ederts Linux - Newbie 7 05-24-2001 11:18 AM > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration