LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-14-2009, 06:15 PM   #1
jman82s
Member
 
Registered: Jul 2007
Location: Central Coast, California
Distribution: "distro-hopper"
Posts: 66

Rep: Reputation: 15
Can't shutdown/restart as normal user in Lenny


Hi,

I'm writing in today because my Lenny installation has decided to deny me the right to shutdown the machine. What happens is the shutdown button on my panel is grayed out, and there are no 'Shutdown,' 'Restart,' etc options in the 'System' menu (I'm using Gnome).

It's been doing this for about a week, and I can't remember what exactly I was doing before this happened. I'm not sure if I updated or not...the only real power-using I've done recently is set up a 32-bit chroot, that's about it.

I've been shutting down as root in a terminal, which is rather cumbersome for me. Does this sound like some sort of permissions issue? I love my current installation, and hope I don't have to reinstall...

Any advice is most welcome and appreciated!

PS - I've seen this happen when being dumped into a terminal upon boot-up, and using the 'startx' command as user, but GDM is starting with a script.

Last edited by jman82s; 05-14-2009 at 06:20 PM.
 
Old 05-15-2009, 05:29 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I don't know about Debian, but in Slackware you can use the setuid bit to run /sbin/halt as a normal user. Take a note of the actual /sbin/halt permissions in case it won't work and then run:
Code:
chmod +s /sbin/halt
 
Old 05-15-2009, 05:42 PM   #3
Chris.Marsh
LQ Newbie
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.0
Posts: 19

Rep: Reputation: 0
I had something like this once where there was an unstopped process running, I identified the process by executing ps from the command line and then killing the process that was causing my problem.
 
Old 05-15-2009, 08:16 PM   #4
jman82s
Member
 
Registered: Jul 2007
Location: Central Coast, California
Distribution: "distro-hopper"
Posts: 66

Original Poster
Rep: Reputation: 15
Well, I went ahead and checked the permissions on /sbin/halt, and users had read access, which seems correct, then I tried the setuid command, but nothing has changed, unfortunately.

And thanks for the tip on the possibility of a process causing this. I wouldn't even know what to look for if I were to try to isolate it. An interesting thing to note is that when I shutdown as root in a terminal using "shutdown now," it drops to a maintenance shell instead of going down. If I use "shutdown -h now," (with the halt argument), it works correctly. "shutdown -r now" also works okay. Also, I feel I should mention that if I log out and am sitting in front of the GDM login screen, I still cannot shutdown. In theory, all my processes should have terminated, right? Maybe I'll switch over to a virtual terminal while my user is logged out and run "ps -U root -u root -N"? That shows processes which are not owned by root, am I right?
 
Old 05-15-2009, 08:26 PM   #5
jman82s
Member
 
Registered: Jul 2007
Location: Central Coast, California
Distribution: "distro-hopper"
Posts: 66

Original Poster
Rep: Reputation: 15
Okay, I went ahead and ran that, and the processes that are running are:

portmap
rpc.statd
dbus-daemon
avahi-daemon (two instances)
exim4
hald
hald-addon-acpi
gdm-greeter(didn't shut that down, I know)


But here's the odd part: I started up a gnome session as root, and still couldn't shutdown graphically. What gives!
 
Old 05-16-2009, 06:56 PM   #6
jman82s
Member
 
Registered: Jul 2007
Location: Central Coast, California
Distribution: "distro-hopper"
Posts: 66

Original Poster
Rep: Reputation: 15
*chirp-chirp-chirp*

Anybody?

Sorry...
 
Old 05-18-2009, 08:04 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Well, in KDE you have a users/groups (or security) menu / module (I forgot in which one exactly it resides) where you can determine for the KDE-shutdown button who may use it. Maybe you could give a try in the depths of the Gnome menu tree...
 
Old 05-18-2009, 11:06 AM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
are you a member of the powerdev group ?

Quote:
it-lenny:# cat /usr/share/doc/gnome-power-manager/README.Debian

GNOME Users: Starting GNOME Power Manager with your GNOME Session
=================================================================

1) Add yourself to the powerdev group; this group is created by hal >= 0.5.6+cvs20060219-1.
2) Open System -> Preferences -> Sessions
3) In the Startup Programs tab, click Add
4) Type "gnome-power-manager", click OK.
5) Log out of your gnome session, and log back in again.
http://projects.gnome.org/gnome-power-manager/

Last edited by farslayer; 05-18-2009 at 11:11 AM.
 
Old 05-20-2009, 08:53 PM   #9
jman82s
Member
 
Registered: Jul 2007
Location: Central Coast, California
Distribution: "distro-hopper"
Posts: 66

Original Poster
Rep: Reputation: 15
Quote:
are you a member of the powerdev group ?
Interesting, that. Problem is, I installed Fedora on another partition, which did an SELinux relabel, which I believe borked my Debian installation.

When I attempt to start it now, it quickly halts after the "kernel alive" message, and reads:

/bin/sh: can't access tty; job control turned off
(initramfs)


and I can't do anything further. I'd try turning SELinux off and doing another relabel, but I've uninstalled Fedora and put something else on that partition already.

Can this be fixed easily? I could always just reinstall Lenny, but it would be nice to avoid that.

Thanks!
 
  


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
Instant X server restart when logging in as normal user with Fedora 9 rcx11 Fedora 8 02-14-2009 06:07 PM
Normal User to restart syslog server lier74ok Linux - Security 2 05-12-2005 12:23 AM
normal user running shutdown cblamer Slackware 6 12-21-2003 08:44 PM
can normal user do shutdown? TheOneAndOnlySM Slackware 12 12-17-2003 11:10 PM
Normal User Restart and Shutdown InsaneBob Linux - Software 2 08-23-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 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