On Monday 29 May 2017 12:41:36 Dr. Nikolaus Klepp wrote:
Hi Lisi!
The easy way:
Add this line to /etc/sudoers:
%users ALL=(root) NOPASSWD: /sbin/poweroff
You might want to change change "%users" to the name of the user. Otherwise anybody in the "users"-group is allowed to do power off.
I'll worry about this later - I looked and everything seems to be allowed, and I haven't yet got as far as being asked for a password!!
Now crate a Shortcut on the Desktop that executes "sudo /sbin/poweroff"
I got this far (see below), but it isn't working for various different reasons. Corrections? Anyone?
I get an icon (the wrong one!) and the launcher opens up and asks for an application or a URL. (I started with Type=Command, and that was an even deader loss.)
I shall cross-post to the Debian list, because I am up against time, but I promise to report solutions! (If I am offered any!)
[Desktop Entry] Name=Shut_down Comment=Log out and power off Icon=/usr/share/pixmaps/power-button-off_318-42222.jpg Exec=sudo /sbin/poweroff Type=Application Encoding=UTF-8 Terminal=false Categories=No
Thanks, Lisi
Test ... but be aware, that the session is not saved!
Nik
Am Montag, 29. Mai 2017 schrieb Lisi Reisz:
I want to set up a large power-off button, with an icon, preferably on the desktop but on the panel would do. The ordinarily available one will not do because this is for someone with very poor sight and the ordinary power-off button is inextricably linked with lock screen. Well, I can't extricate it.
I THINK I can manage the three other large icons that are needed on the desktop, but this one has stymied me.
I could rephrase the question: how do I produce an icon that, when clicked, operates /sbin/poweroff.
Jessie with TDE 14, installed from Slávek's repositories.
Replacing a badly scammed Windows 7!
Help!!
Lisi
To unsubscribe, e-mail: trinity-users-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-users-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting