SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-01-07 09:43:14

Sirap
New Member
Registered: 2011-01-07
Posts: 3

[solved] /etc/sudoers issue

Hello,

I'm a beginners on linux and this is my first post.
I installed #!10a2 and did an upgrade. While processing it has been asked to me if I wanted to replace the existing sudoers file by the packet owner one. I said YES ... It was a big mistake, i think.

Because now, my default user name is no more in the sudoers file and i can't access root status.

Any idea on how to fix this ?
I can't access /etc/sudoers with user permission.
Is there a default root password ?

Your help is welcome, many thanks.

Last edited by Sirap (2011-01-07 11:04:15)

Offline

Help fund CrunchBang, donate to the project!

#2 2011-01-07 09:47:36

ali
#! Die Hard
Registered: 2010-05-31
Posts: 1,035

Re: [solved] /etc/sudoers issue

i had an error with the root user too
su root doesn't seam to work because of that
a workaround would be to use your livecd to edit your /etc/sudoers file

Offline

#3 2011-01-07 10:34:19

Sirap
New Member
Registered: 2011-01-07
Posts: 3

Re: [solved] /etc/sudoers issue

Many thanks ali.

A bit hardcore to access local HD root partition, but it's Ok now.
I wouldn't repoduce this error.

Issue is solved. Thanks again

Offline

#4 2011-01-07 10:47:34

ali
#! Die Hard
Registered: 2010-05-31
Posts: 1,035

Re: [solved] /etc/sudoers issue

yea for other people who may experience a similar problem once on the live cd just

sudo mount /dev/sda1 ~/tmp 

in case your root is not in dev sda1 replace that with the correct partition
then just edit ~/tmp/etc/sudoers with any available editor
for instance

sudo gedit ~/tmp/etc/sudoers

and add

yourusername ALL=(ALL:ALL) ALL

at the end of the file and you're gonna be okay


p.s. i suggest you rename your thread to

[solved] /etc/sudoers issue

or something

and as a side note you'd better set a root password so you can "su root"  in case of an emergency

sudo passwd root

Last edited by ali (2011-07-20 20:20:55)

Offline

#5 2011-01-07 10:50:39

luc
#! Die Hard
From: Munich, Germany
Registered: 2010-03-21
Posts: 597

Re: [solved] /etc/sudoers issue

welcome sirap,
nice it solved so quickly. can you edit your first post and add "[SOLVED]" to the title?
anyway have fun with CrunchBang smile
luc

Offline

#6 2011-01-07 11:22:46

Sirap
New Member
Registered: 2011-01-07
Posts: 3

Re: [solved] /etc/sudoers issue

nice it solved so quickly

Forum is very reactive. Thanks again

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo