You are not logged in.

#1 2008-07-17 15:25:58

jjt3hii
Member
Registered: 2008-06-09
Posts: 22

[SOLVED] Help me understand shutdown permissions!

As I would expect, my normal user account does not have the authorization to run the shutdown command.  Here's what I don't understand:   My system boots up to a non graphical login;  I login as my normal user;  I run "startxfce4" as my normal user; In xfce I can click the quit button in the main menu and it will shutdown my computer.  Isn't xfce running under my user account?  If so, how does it have the ability to shutdown the system?

Jason

Last edited by jjt3hii (2008-07-18 17:25:31)

Offline

#2 2008-07-17 16:21:48

INCSlayer
Member
From: Sweden
Registered: 2007-09-06
Posts: 296
Website

Re: [SOLVED] Help me understand shutdown permissions!

xfce probably uses dbus to negotiate rights to allow a user to shutdown using its quit button... atleast i think so

Last edited by INCSlayer (2008-07-17 16:23:06)


dovie andi se tovya sagain

Offline

#3 2008-07-17 19:16:38

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Help me understand shutdown permissions!

jjt3hii wrote:

Isn't xfce running under my user account?

$ ll /usr/bin/Xorg 
-rws--x--x 1 root root 1816672 2008-07-01 16:19 /usr/bin/Xorg

That "s" means xorg runs as root, so it has the permissions to shutdown.

Offline

#4 2008-07-17 20:36:51

jjt3hii
Member
Registered: 2008-06-09
Posts: 22

Re: [SOLVED] Help me understand shutdown permissions!

So any command with permissions of atleast --s-----x can be executed by any defined user and will be executed with root authority?

Offline

#5 2008-07-17 22:14:08

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Help me understand shutdown permissions!

Yep, google for "suid root".

Offline

Board footer

Powered by FluxBB