Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 2002  / 2 Years ago, mon, january 10, 2022, 4:26:50

I wanted to follow this guide to avoid typing a password every time I want to use "sudo iwconfig" command



http://ubuntuforums.org/showthread.php?t=1132821



I tried the steps with "apt-get" command and it worked



sudo select-editor
sudo visudo
add %admin ALL=(ALL)NOPASSWD:/usr/bin/apt-get to the bottom line


but they didn't work with "iwconfig"



I believe the reason behind that is "iwconfig" source files are not stored in "/usr/bin/" directory because ls /usr/bin/ | less doesn't show anything named iwconfig



So, what is the directory I should enter before iwconfig?



Thanks in advance


More From » password

 Answers
6

I could solve the problem using the following



sudo visudo


adding %admin ALL=(ALL)NOPASSWD:/sbin/iwconfig to the bottom line


[#27163] Wednesday, January 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sharall

Total Points: 407
Total Questions: 127
Total Answers: 121

Location: Saint Helena
Member since Fri, Mar 26, 2021
3 Years ago
;