Sudoers debian

sudoers_debian Debian 7.7 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) 14_11_14 # http://askubuntu.com/questions/7477/how-can-i-add-a-new-user-as-sudoer-using-the-command-line # 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** !!!!!!! CZYLI: !!!!!!! jesmasta ALL=(ALL) ALL !!!!!!!!!!!!!!!!!!!!!!!! Then perform WriteOut with Ctrl + O. The editor will ask you for the file name to write into. The default will be /etc/sudoers.tmp: File Name to Write: /etc/sudoers.tmp Change that to /etc/sudoers: File Name to Write: /etc/sudoers A prompt will be displayed: File exists, OVERWRITE ? Or Save file under DIFFERENT NAME ? In both cases, press Y. Quit the nano editor with Ctrl + X. Done! in case of error 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.