Skip to content

como executar esses comandos ao iniciar no i3wm sem pedir a senha? Can anyone help me how to run commands when starting in i3wm without asking for the password? #6014

Closed Answered by waterkip
ronibastos asked this question in Q&A
Discussion options

You must be logged in to vote

You can use this boilerplate. I allow users in the sudoers group to do safe operations without a password. There is a potentially unsafe bit with dist-upgrades (full-upgrades), but since I feel my people have knowledge, I also allow this to be passwordless. Anything else requires a password. Feel free to change it to your liking.

# Place this in a file in /etc/sudoers.d/002-apt
#
# Allow apt to run without sudo password for some common operations
Cmd_Alias APT_UPDATE = /usr/bin/aptitude update, /usr/bin/apt-get update, /usr/bin/apt update, /usr/bin/apt-file update
Cmd_Alias APT_UPGRADE = /usr/bin/aptitude safe-upgrade, /usr/bin/apt-get upgrade, /usr/bin/apt upgrade, /usr/bin/aptitude safe…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ronibastos
Comment options

@waterkip
Comment options

Answer selected by ronibastos
@ronibastos
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants