Re: need root permission to poweroff

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 03/17/14 21:33, Peter Lesterhuis wrote:
On 03/17/14 01:29, Joe Zeff wrote:
On 03/16/2014 11:34 AM, g wrote:
which is 14 total terminals

what might be causing the difference?
You're also logged in at the GUI.
i thought that was covered by the tty1 - Xorg.
>
I understand that the number of users has nothing to do with the
authentication problem. Still  I need root permission to poweroff when
using the GUI.
What can I do to get rid of this behaviour?

pete,

my apologies for 'breaking into' your thread. i should have
opened a new thread. but, i also thought a 'quick' question
would not have lasted. ;-)

i will try to answer your question from what is in my 'chemo brain'.

you do not state what desktop you are using.

i am using kde 4.3.4, which has has ability to 'shutdown' or
'poweroff' from a menu.

when booting level 3, and when i open kde, when i exit kde, and
want to shutdown or reboot form 'cl', i can do so because i have
edited '/etc/sudoers' with a line to allow me to run 'shutdown'
command.

if your 'de' does not allow via a menu, or you can not from 'cl';

  1- to understand use, read 'man sudoers'. more complete info
     about 'sudo'/'sudoers' is @;

     http://www.sudo.ws/sudo/man/1.8.10/sudoers.man.html

  2- in a terminal, or from 'cl', run command;

     ]$ su -c visudo

     look for line;

     ## Allows members of the users group to shutdown this system
     # %users  localhost=/sbin/shutdown -h now

     add line/s;

     [yourusername]  localhost=/sbin/shutdown -h now
     [yourusername]  localhost=/sbin/shutdown -r now
   or
     [yourusername]  localhost=/sbin/poweroff

     then close and save with ':qw', and reboot.

*be aware*:: using 'shutdown' or 'poweroff' from 'cl' should
_only_be_executed_outside_ of a 'de'.

there are ways to do such within a 'de', but they are more
involved. besides, booting up a system gives you opportunity
to learn to maintain a system outside of a gui and needs to
be learned for maintenance of a system when you can not do so
from a gui.

as stated, this is from 'chemo brain'. wait for Ed Greshko or
Joe Zeff, or other 'scholar' to verify.

--

peace out.

in a world with out fences, who needs gates.

tc.hago.

g
.

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux