SUBPAGE MENU
# # #
sudoers_debian
# #
Description: Debian GNU/Linux 7.8 (wheezy)
#1 SMP Debian 3.16.7-ckt2-1~bpo70+1 (2014-12-08)
3.16.0-0.bpo.4-amd64
Aspire S7-392
15_06_19
#
############################################
# CONTENT
############################################
NOTICE: sudo is not preisntalled with Debian 8.1
You have to (as superuser - command: su) add appropriate sources and install sudo.
command:
Open the sudoers file: sudo visudo will open the /etc/sudoers file in GNU nano. If not, try export EDITOR="nano" and try sudo visudo again. Add the below line to the end of file.
`username ALL=(ALL) ALL` **Change the user name before you issue the commands**:
command:
for example, if your username (echo $USER, when using terminal as user) is jesmasta:
!!!!!!! EXAMPLE: !!!!!!!
jesmasta ALL=(ALL) ALL
!!!!!!!!!!!!!!!!!!!!!!!!
# #
Troubleshooting:
In case of error (if you make a mistake editing /etc/sudoers file):
http://askubuntu.com/questions/209558/how-can-i-fix-broken-sudo-sudo-parse-error-in-etc-sudoers-near-line-23
Hold Shift immediately while booting so that you get the GRUB screen. Select the recovery mode. Choose to drop to a root terminal. Run mount -n -o remount,rw / and then visudo. It'll let you fix your problems with the file and save. It won't let you save a malformed file.
# #
Sources:
Add new user as sudoers using command line:
http://askubuntu.com/questions/7477/how-can-i-add-a-new-user-as-sudoer-using-the-command-line
# # #