You are not logged in.
Hello, I'm editing the acpi multimedia keys, exactly editing /etc/acpi/handler.sh file.
When I put a scpecific command for a key (for example, firefox) it is executed as a root, not as the user I'm logged on.
What can I do to execute the programs with the multimedia keys as a normal user, and not as a root?
Greetings
Last edited by Davigetto (2007-09-16 16:28:12)
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
sudo -u username command
Maybe this will work for you. But the fact that the user have to be specified in the file and won't be fetched on key press may be a problem.
Hail to the thief!
Offline
I have tried it but terminal does nothing as root :S
[root@helena davigetto]# sudo -u davigetto firefox
[root@helena davigetto]#
And firefox is not opened
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
I have tried it but terminal does nothing as root :S
[root@helena davigetto]# sudo -u davigetto firefox [root@helena davigetto]#
And firefox is not opened
Try kdesu -u davigetto firefox (if you're using KDE, if GNOME - gksudo).
Offline
This should work for you (it has worked for me for a long time).
Check whether DISPLAY and XAUTHORITY environment variables are set correctly.
Try running simpler program like xclock or xcalc.
Also try this with su instead of sudo, like this:
su username -c command
Offline
thanks all,
robertp solution has worked perfectly, thank you very much
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline