Sun Feb 09, 2014 4:57 pm
%sudo ALL=(ALL:ALL) ALL
user ALL=(ALL) NOPASSWD: ALL
Mon Feb 10, 2014 9:39 am
1) disable sudo (recommended, default):... comment them automatically
2) ..... (IMO) we should not directly support password-less sudo at all, that line should be gone.
3) user edits manually, same as before. Or not,...
Mon Feb 10, 2014 11:21 am
for line in $(grep NOPASSWD sudoers);do sed -i "s/$line/#$line/" sudoers ; done
#user ALL=(ALL) NOPASSWD: ALL
##user ##ALL=(ALL) #NOPASSWD: ALL
Mon Feb 10, 2014 9:28 pm
user ALL=(ALL) NOPASSWD: ALL
Tue Feb 11, 2014 2:53 pm
Tue Feb 11, 2014 4:41 pm
TITLE="Refracta Installer"
TEXT="\n\nLive images normally use 'sudo' for root access.\n\\nIt is recommended to disable sudo in the installation and use 'su' with a root password \n\nOptionally you may keep sudo if preferred. The installer will configure the root password later. \n\n\Disable default sudo in the installed system?"
yad --image=gtk-dialog-question --width=460 --height=240 --title="$TITLE" --button="Disable sudo":0 --button="Use sudo":1 --text="$TEXT"
Tue Feb 11, 2014 10:44 pm
Wed Feb 12, 2014 12:06 am
Would you like to change the root password? (Recommended)
You'll need to go to the terminal again...
Note: If your system has no root user, and you want
to keep it that way, say No.
"
Note: If your system has no root user, and
uses sudo for all administrative tasks, and you
want to keep it that way, say No.
Wed Feb 12, 2014 1:58 am
Wed Feb 12, 2014 9:26 pm