Search:

Type: Posts; User: CatKiller; Keyword(s):

Search: Search took 0.03 seconds.

  1. Re: Make executable bash script run with sudo privileges?

    That is a perfectly healthy attitude. I broke a bunch of stuff in the beginning, too.



    It's not for the script, it's for the launcher that launches the script. As I mentioned earlier, that...
  2. Re: Make executable bash script run with sudo privileges?

    It's definitely worth a shot. If you simply deleted that directory, and your backup contains that, then that's what your backup is for.
  3. Re: Make executable bash script run with sudo privileges?

    For completeness:

    Gnome used to default to a standard drop-down menu for launching applications, and many desktop environments still do.

    Desktop files are agnostic ways of defining the...
  4. Re: Make executable bash script run with sudo privileges?

    All your user settings are in /home (that's what it's for) so copying those back into a fresh install will make everything how it was. There are also commands for listing every package that you've...
  5. Re: Make executable bash script run with sudo privileges?

    Actually, systemd turns it into a one-liner:


    pkexec systemctl reboot --boot-loader-entry=windows and you can easily configure polkit to allow the user to do only that action without a password....
  6. Re: Make executable bash script run with sudo privileges?

    I mean that in your script you'd simply have
    /usr/sbin/grub-reboot 2
  7. Re: Make executable bash script run with sudo privileges?

    You already know how to do that:



    When specifying the full path to grub-reboot rather than having the shell expand it for you the syntax doesn't change. You've apparently already established...
  8. Re: Make executable bash script run with sudo privileges?

    Again, orthogonal to the answers you've had about the permissions side of things, both of these are simple to solve. If you have a launcher that runs your script, which is sensible, running it in a...
  9. Re: Make executable bash script run with sudo privileges?

    For clarity, TheFu's (sensible) suggestion is orthogonal to the actual function.

    /root is the root user's Home directory, and will be on the same partition as / even if /home is on a different...
  10. Re: Make executable bash script run with sudo privileges?

    The last part is trivial once there's a command and permissions that work. Launchers to run a command when you click on them are just .desktop files - simple text files.
Results 1 to 10 of 10