View Full Version : [SOLVED] How to autostart apps with sudo priviledges
maulynvia
January 17th, 2012, 01:32 PM
When I auto start Jupiter (power saving on eeepc) it doesnt work properly - key settings made in the menu have no effect.
It does work properly if I run "sudo jupiter-run"
Is there a way to autostart apps with sudo priviledges?
fuduntu
January 17th, 2012, 02:24 PM
When I auto start Jupiter (power saving on eeepc) it doesnt work properly - key settings made in the menu have no effect.
It does work properly if I run "sudo jupiter-run"
Is there a way to autostart apps with sudo priviledges?
Fix /etc/sudoers, or move the Jupiter sudoers group to /etc/sudoers.d. Jupiter should be the very last rule in the chain.
maulynvia
January 17th, 2012, 02:54 PM
Thanks, any tips on how to do this?
I looked at http://www.gratisoft.us/sudo/sudoers.man.html which looks quite scary!:confused:
fuduntu
January 17th, 2012, 03:17 PM
Thanks, any tips on how to do this?
I looked at http://www.gratisoft.us/sudo/sudoers.man.html which looks quite scary!:confused:
Move the %jupiter line to the bottom of the file.
mister_p_1998
January 17th, 2012, 04:23 PM
Whats wrong with Sudo crontab -e
@reboot /usr/bin/jupiter
????
SeijiSensei
January 17th, 2012, 04:32 PM
Or putting the command in /etc/rc.local?
maulynvia
January 17th, 2012, 05:59 PM
Editing sudoers and rebooting had no effect. Here is my sudoers file:
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
#includedir /etc/sudoers.d
%jupiter ALL=(ALL:ALL) ALL
:(
sudodus
January 17th, 2012, 06:31 PM
Editing sudoers and rebooting had no effect. Here is my sudoers file:
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
#includedir /etc/sudoers.d
%jupiter ALL=(ALL:ALL) ALL:(
I am not sure but I think that you should remove the # sign from the beginning of the second last line:
includedir /etc/sudoers.d Otherwise it is only a comment line.
fuduntu
January 17th, 2012, 07:51 PM
Editing sudoers and rebooting had no effect. Here is my sudoers file:
%jupiter ALL=(ALL:ALL) ALL:(
Where did you get this configuration? The Jupiter group should not be configured like that.
%jupiter ALL=NOPASSWD: /usr/lib/jupiter/scripts/bluetooth, /usr/lib/jupiter/scripts/cpu-control, /usr/lib/jupiter/scripts/resolutions, /usr/lib/jupiter/scripts/rotate, /usr/lib/jupiter/scripts/touchpad, /usr/lib/jupiter/scripts/vga-out, /usr/lib/jupiter/scripts/wifi
maulynvia
January 17th, 2012, 09:53 PM
That fixed it, thanks funduntu. Jupiter is fantastic.
(There was no existing config for jupiter - how am I supposed to know this? I just copied the config for sudu):D
fuduntu
January 17th, 2012, 11:13 PM
That fixed it, thanks funduntu. Jupiter is fantastic.
(There was no existing config for jupiter - how am I supposed to know this? I just copied the config for sudu):D
It should have been configured when the package is installed, weird.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.