Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to autostart apps with sudo priviledges

  1. #1
    Join Date
    Jun 2008
    Beans
    26

    How to autostart apps with sudo priviledges

    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?

  2. #2

    Re: How to autostart apps with sudo priviledges

    Quote Originally Posted by maulynvia View Post
    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.
    [ Fuduntu.org ] - [ Fuduntu Forum ] - [ Fuduntu Blog ] - [ Fuduntu Wiki ]

    For a classic desktop with the latest apps, get Fuduntu!

  3. #3
    Join Date
    Jun 2008
    Beans
    26

    Re: How to autostart apps with sudo priviledges

    Thanks, any tips on how to do this?

    I looked at http://www.gratisoft.us/sudo/sudoers.man.html which looks quite scary!

  4. #4

    Re: How to autostart apps with sudo priviledges

    Quote Originally Posted by maulynvia View Post
    Thanks, any tips on how to do this?

    I looked at http://www.gratisoft.us/sudo/sudoers.man.html which looks quite scary!
    Move the %jupiter line to the bottom of the file.
    [ Fuduntu.org ] - [ Fuduntu Forum ] - [ Fuduntu Blog ] - [ Fuduntu Wiki ]

    For a classic desktop with the latest apps, get Fuduntu!

  5. #5
    Join Date
    Apr 2006
    Location
    UK
    Beans
    555
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to autostart apps with sudo priviledges

    Whats wrong with Sudo crontab -e
    @reboot /usr/bin/jupiter

    ????
    Intel Pentium Dual Core 2.6 Ghz 2 Gb ram, Asus P5KPL motherboard, 2.5 TB Storage running Hardy.
    HP Pentium 4 2.8 Ghz 756 mb ram running Intrepid.

  6. #6
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,995
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: How to autostart apps with sudo priviledges

    Or putting the command in /etc/rc.local?

  7. #7
    Join Date
    Jun 2008
    Beans
    26

    Re: How to autostart apps with sudo priviledges

    Editing sudoers and rebooting had no effect. Here is my sudoers file:


    Code:
    # 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

  8. #8
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: How to autostart apps with sudo priviledges

    Quote Originally Posted by maulynvia View Post
    Editing sudoers and rebooting had no effect. Here is my sudoers file:


    Code:
    # 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:
    Code:
    includedir /etc/sudoers.d
    Otherwise it is only a comment line.

  9. #9

    Re: How to autostart apps with sudo priviledges

    Quote Originally Posted by maulynvia View Post
    Editing sudoers and rebooting had no effect. Here is my sudoers file:


    Code:
    %jupiter ALL=(ALL:ALL) ALL
    Where did you get this configuration? The Jupiter group should not be configured like that.

    Code:
    %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
    [ Fuduntu.org ] - [ Fuduntu Forum ] - [ Fuduntu Blog ] - [ Fuduntu Wiki ]

    For a classic desktop with the latest apps, get Fuduntu!

  10. #10
    Join Date
    Jun 2008
    Beans
    26

    Re: How to autostart apps with sudo priviledges

    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)

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •