Differences
This shows you the differences between two versions of the page.
tech:linux:sudo_without_password [2014/11/15 09:13] |
tech:linux:sudo_without_password [2014/11/15 09:13] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== sudo without password ====== | ||
+ | Enable /etc/sudoers file for editing | ||
+ | <code bash> | ||
+ | chmod 640 /etc/sudoers | ||
+ | </code> | ||
+ | |||
+ | To enable edit /etc/sudoers as: | ||
+ | <code diff> | ||
+ | 26c26 | ||
+ | < %sudo ALL=(ALL:ALL) NOPASSWD: ALL | ||
+ | --- | ||
+ | > %sudo ALL=(ALL:ALL) ALL | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | Keyword: visudo | ||