user not in sudoers

scott redhowlingwolves at nc.rr.com
Wed Apr 13 23:30:36 UTC 2011


On 04/13/2011 06:20 PM, Tom H wrote:
> On Wed, Apr 13, 2011 at 3:57 PM, Johan Scheepers<johansche at telkomsa.net>  wrote:
>> Not used to ubuntu. Using Fedora, Centos, Mandriva.
>>
>> Want to use and and learn ubuntu.
>>
>> While waiting for ubuntu 11.04,  I installed 10.10 to get used to it.
>> Now this sudo term. When I use sudo for a root command it tells me I am not
>> in the sudoers file.
>>
>> This is annoying. How do I get myself (user) in the sudoers file.
>> This is at home and I am the only user.
>>
>> I am used to become root when required and get out when finished. Would
>> rather have the OS operating as I am used to.
> The user that you created at install time should be able to become
> root through sudo.
>
> If you need another account to be able to use sudo, you'll have to add
> that account either directly to "/etc/sudoers" or as a member of the
> admin or sudo groups.
>
> If the install-time user cannot use sudo, you can boot into s
> "recovery mode" and ensure that it's a member of one the two groups
> above or edit "/etc/sudoers" to add it specifically.
>
> You can enable root by giving it a password if you'd like to set up
> your box like your boxes using other distributions or run "sudo
> -i"/"sudo -s" to switch to root for consecutive commands.
>
Correct me if I'm wrong, but I always thought the correct way to edit 
/etc/sudoers was with "visudo".
 From the man page of "sudo" :
> The_sudoers_  file should*always*  be edited by the*visudo*  command which
>         locks the file and does grammatical checking. It is imperative that
>         _sudoers_  be free of syntax errors since*sudo*  will not run with a
>         syntactically incorrect_sudoers_  file.
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110413/cd075f17/attachment.html>


More information about the ubuntu-users mailing list