LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2001, 11:44 PM   #16
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

Original Poster
Rep: Reputation: 30

Thanks rolf,
But, /sbin/halt is accessible by an average user. I logged in as root and changed
the permission of the file halt, but even then it's been not possible. any idea?
 
Old 12-02-2001, 10:33 AM   #17
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
Well, here in Mandrake 8.1, /sbin is not in my PATH (type env to see PATH) but /usr/bin is and there are both /sbin/halt and /usr/bin/halt on my machine. Each has user=root (r-w-x), group=root (r-x), and others (r-x). So, when, as unprivileged user, I call halt, I guess /usr/bin/halt is executed but this is a symbolic link, here, that points to consolehelper in /usr/bin, same permissions, and I can't read what it does.

If you are using the full path /sbin/halt -n and it still doesn't work, the only other thing I can think of doing, apart from figuring out why your install doesn't allow unprivileged users to invoke halt, would be to use sudo and set yourself up to execute halt without password with something like sudo halt -n. See man sudo for that project.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub menu: restart/shutdown? pcandpc Linux - General 4 08-06-2005 10:43 PM
Removing Shutdown/Restart From Log Out Menu Guru3 Red Hat 0 07-03-2004 05:59 PM
Add KDE menu in Gnome start menu melinda_sayang Slackware 2 03-06-2004 05:26 AM
How to add KDE menu items to Gnome menu... QtCoder Linux - General 4 10-05-2003 01:21 PM
Shutdown, restart menu gone Tec1 Linux - Newbie 3 08-12-2003 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:10 PM.

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