I would like to set a specific command to not require sudo privileges, is there a way to accomplish this? I know you can add commands to the sudoer file to allow certain commands to be used by non root accounts, so maybe there is something similar for adding commands to allow regular users to use?

  • mipadaitu@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    7 months ago

    You can change the permission of the files that are used to execute, and you can change permission of the files that are being touched.

    But probably the easiest solution would be to create an alias to the command that uses sudo transparent to the user, while also adding the permission to sudo without password in the sudoers file.