SUDO DONT WORK!!!

Associate
Joined
9 May 2007
Posts
827
chi is not in the sudoers file. This incident will be reported.

this happens when i try to use sudo in ubuntu 8.04, i searched on the web and i found this:

http://ubuntuforums.org/showthread.php?t=107940

but the problem is i can get to the root and visudo file, but then when i start to type its doggey characters some times show up when i type some times dont. so i press s 5 times and only comes up once. anywayz i typed in
chi ALL=(ALL) ALL

but then how on earth do i save it!!??? i don't see no instructions or anything. =.=

oh btw it sudo worked before....
 
Never used visudo but if it's using the same commands as vi then you can save the file by typing :w (to write the file). You quit by typing :q (to quit). You can combine these 2 together and type :wq (to simultaneously write and quit vi).

You may find that you need to press escape to get into the command mode. This is because you're in the insert mode, whereby the :w would appear as text in the file, instead of being treated as a command.
 
Never used visudo but if it's using the same commands as vi then you can save the file by typing :w (to write the file). You quit by typing :q (to quit). You can combine these 2 together and type :wq (to simultaneously write and quit vi).

You may find that you need to press escape to get into the command mode. This is because you're in the insert mode, whereby the :w would appear as text in the file, instead of being treated as a command.

thanks ubuntu forums said the same thing but u explained what they mean :D ty
 
Couldn't do my job without vim/vi, I only wish the same commands would work in Outlook, Word etc.
 
You can't usually su in ubuntu due to them not revealing the root password...

(sudo passwd always on a new install)

Oh and vi, it's not all bad - even if i do have to have the quick ref guide printed and stuck up above my desk at work....
 
This normallly works far better for Ubuntu-
Code:
sudo passwd root
Volia- One fully working root password and su to boot. Bliss!
:D

Totally agree that Vi is the spawn of the devil, normally use Nano for most stuff.

-Leezer-
 
lol to "sudo su -" as it does work and an ammusing security flaw to any system that lets you sudo at all.... :)

Funny way round the idea that the user cant be trusted with the base system..... (my general view of ubuntu in a nut shell there)
 
Back
Top Bottom