Fedora Linux Support Community & Resources Center
  #1  
Old 1st June 2012, 10:05 PM
madsmh Offline
Registered User
 
Join Date: Jun 2012
Location: Denmark
Posts: 4
linuxchrome
Disabling root password for shutdown/reboot

I just upgraded to F17, and if I switch user and then try to shut down or reboot (in GDM) I'm prompted for the root password. The computer in question is in an environment where this is bad, can it be disabled?
Reply With Quote
  #2  
Old 1st June 2012, 10:26 PM
secipolla Offline
Registered User
 
Join Date: May 2011
Posts: 700
linuxfirefox
Re: Disabling root password for shutdown/reboot

Disclaimer: I don't use GNOME.

Just a guess: if you open the users app (in System Settings) can't you add that second user as an admin or something like that?
Reply With Quote
  #3  
Old 1st June 2012, 10:44 PM
madsmh Offline
Registered User
 
Join Date: Jun 2012
Location: Denmark
Posts: 4
linuxchrome
Re: Disabling root password for shutdown/reboot

The thing is I would like other people who does not have an account to be able reboot the system and boot into windows - I'm the only one that uses linux, but sometimes leave the screen locked. It would be nice if the others would be able to be able to reboot cleanly without the admin password.
Reply With Quote
  #4  
Old 2nd June 2012, 01:55 AM
hadrons123 Offline
'The Blue Dragon'
 
Join Date: Jan 2011
Location: Pitt,PA
Posts: 1,260
linuxfirefox
Re: Disabling root password for shutdown/reboot

MY f17 can reboot in user mode, in gnome-terminal.
__________________
LENOVO Y580 FHD Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 |660M GTX NVIDIA | 16 GB SSD
Reply With Quote
  #5  
Old 2nd June 2012, 04:26 AM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,487
linuxfirefox
Re: Disabling root password for shutdown/reboot

Maybe there was an 'issue' with some PAM settings (dont recall what it stands for).
Have you installed pm-utils which provides pm-shutdown, pm-suspend and simliar?

Dont know if that even matters, but hope it helps.
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot
Reply With Quote
  #6  
Old 2nd June 2012, 06:20 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: Disabling root password for shutdown/reboot

Is more than one user logged in? (If you "switch user" then more than one user is logged in according to the system)

Fedora usually allows a user to shutdown/reboot the system unless another user is also logged in at the same time.

Even root logged in a virtual console would cause it to prompt for the root password when a user tries to shut down.

This is so that one user can't reboot the system while another is using it, causing big problems.
Reply With Quote
  #7  
Old 2nd June 2012, 10:10 AM
madsmh Offline
Registered User
 
Join Date: Jun 2012
Location: Denmark
Posts: 4
linuxchrome
Re: Disabling root password for shutdown/reboot

well if it's a matter of loosing unsaved work for the user that's logged in, then that's not a bigge - in F16 after switching users the system could be rebooted with no problems with a user still logged in - is there anyway to make it like that again?
Reply With Quote
  #8  
Old 2nd June 2012, 02:13 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: Disabling root password for shutdown/reboot

I haven't really looked close, but these 2 files may be what you need to pursue farther to accomplish what you need.

/etc/dbus-1/system.d/org.freedesktop.login1.conf

/usr/share/polkit-1/actions/org.freedesktop.login1.policy

Those 2 seem to be what it looks at when it decides if the user is authorized to shutdown/reboot the system.

There is probably a way to add a paragraph to the /etc/dbus-1/system.d/org.freedesktop.login1.conf to tell it that a useris authorized to shutdown/reboot with multiple users, but I haven't looked at it much.

Edit:

Just a warning if you go mucking about with these files...

Back up the originals, and have a live boot cd handy that you can boot from and restore the original files.

You could easily render your system unusable if you mess these files up.

Last edited by DBelton; 2nd June 2012 at 02:20 PM.
Reply With Quote
Reply

Tags
disabling, password, root, shutdown or reboot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling console shutdown/reboot messages neocortex Using Fedora 2 13th September 2011 04:22 PM
root password not activate after reboot sgherman Installation, Upgrades and Live Media 3 22nd April 2009 11:44 AM
F8 : No Shutdown in menu, Login Screen is weird, Can't Shutdown only reboot megat Using Fedora 5 19th November 2007 11:00 AM
Shutdown/Reboot XFCE with non-root account fyrie Using Fedora 4 13th February 2005 08:31 PM


Current GMT-time: 18:48 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Bhilwara Photos - Leczna - Hellevoetsluis Photos