You are not logged in.

#1 2008-01-08 12:40:23

canistra
Member
Registered: 2007-11-03
Posts: 66

Allowing normal users to killall X

How i can do that ? smile

Offline

#2 2008-01-08 12:58:42

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Allowing normal users to killall X

Set up sudo to allow execution of it as root without a password by putting this in /etc/sudoers

%users    ALL = NOPASSWD: /usr/bin/killall X

Offline

#3 2008-01-08 14:44:32

canistra
Member
Registered: 2007-11-03
Posts: 66

Re: Allowing normal users to killall X

Ramses de Norre wrote:

Set up sudo to allow execution of it as root without a password by putting this in /etc/sudoers

%users    ALL = NOPASSWD: /usr/bin/killall X

oh, please, no sudo sad

Offline

#4 2008-01-08 14:56:58

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: Allowing normal users to killall X

either X runs privileged, or per-user.

so if not privileged, users use startx
if privileged, a user will have to raise his privileges to kill X. su is out of question, so sudo fits it best.

what exactly is your qualm with sudo?


To know recursion, you must first know recursion.

Offline

#5 2008-01-08 15:31:54

canistra
Member
Registered: 2007-11-03
Posts: 66

Re: Allowing normal users to killall X

lloeki wrote:

either X runs privileged, or per-user.

so if not privileged, users use startx
if privileged, a user will have to raise his privileges to kill X. su is out of question, so sudo fits it best.

what exactly is your qualm with sudo?

I don't like sudo and that's all !

Offline

#6 2008-01-08 17:08:20

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Allowing normal users to killall X

Well then ... if you do not like to type sudo before the command, open your .bashrc and make an alias like this:

alias killall ='/usr/bin/killall X'

From there on you just type killall at the command prompt and that's it. wink

R

Offline

#7 2008-01-08 17:31:04

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Allowing normal users to killall X

ralvez wrote:

Well then ... if you do not like to type sudo before the command, open your .bashrc and make an alias like this:

alias killall ='/usr/bin/killall X'

From there on you just type killall at the command prompt and that's it. wink

R

I can imagine he'll sometimes want to use killall on other processes too...

Offline

#8 2008-01-08 18:14:13

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Allowing normal users to killall X

sudo is the first thing I install, a lot better then changing to root and then doing something dumb or issuing a command and then wondering why the changes didn't take effect for your user instead of root. Just to many problems.

Offline

#9 2008-01-08 19:04:47

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Allowing normal users to killall X

ctrl alt backspace

Offline

#10 2008-01-08 20:07:05

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: Allowing normal users to killall X

^the way I do it

Offline

#11 2008-01-08 22:41:43

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Allowing normal users to killall X

Ramses de Norre wrote:
ralvez wrote:

Well then ... if you do not like to type sudo before the command, open your .bashrc and make an alias like this:

alias killall ='/usr/bin/killall X'

From there on you just type killall at the command prompt and that's it. wink

R

I can imagine he'll sometimes want to use killall on other processes too...

Sorry I made a mistake (I was in my office typing very fast because I was about to go to a meeting).
Your are correct Ramses de Norre the code should read:

alias killall ='/usr/bin/killall'

Which should give you the correct rights to use killall on any thing running.

R.

Offline

Board footer

Powered by FluxBB