LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10: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, 03:28 PM   #2
rjlee
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:
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 01:01 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
Open Source Consulting | Domain Registration