View Single Post
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#21
Originally Posted by karam View Post
So far so good

Oh and BTW sudser creates a file called in /etc/sudoers.d/
called everybody.sudoers
that has the line

user ALL=(ALL) NOPASSWD: ALL

Wich alowes to sudo (anything as user)
and it will be launched with root privilages

maybe we can create a file that has

root ALL=(ALL) NOPASSWD: ALL

and does sudo (anything in root with out troubles)

what do you think?
Wow, didn't know it's THAT simple... Yes, we could for example create a file /etc/sudoers.d/root.sudoers with just this line inside and run update-sudoers (as root) and it should be added automatically, so we can now remove the line we added via "visudo" command
 

The Following User Says Thank You to misiak For This Useful Post: