You are not logged in.
How i can do that ?
Offline
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
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
Offline
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
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
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.
R
Offline
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.
R
I can imagine he'll sometimes want to use killall on other processes too...
Offline
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
ctrl alt backspace
Offline
^the way I do it
Offline
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.
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