LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 08-21-2004, 11:29 AM   #1
sorcerer
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

Sorcerer
 
Old 08-21-2004, 04:28 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
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:
Code:
	if (geteuid() != 0) {
		fprintf(stderr, "%s: must be superuser.\n", progname);
		exit(1);
	}
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.
 
  


Reply


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 05:08 PM
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-18-2006 12:03 AM
Can't run "halt" or "reboot" as user, can somebody help? ro_nicu Slackware 4 11-01-2004 08:57 AM
Removing "shutdown" and "reboot" in logout window nearfar Red Hat 1 10-07-2003 12:33 PM
Ordinary user can execute the "halt" command ederts Linux - Newbie 7 05-24-2001 12:18 PM


All times are GMT -5. The time now is 06:33 AM.

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