Help with sudoers file

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Help with sudoers file

Postby brotherhood on Fri Mar 28, 2008 6:44 am

Hi there ,

i have accidentally deleted my sudoers file in /etc.. i managed to get a working sudoers file which is saved on my desktop , ttrouble i can't copy this file into /etc (permission error) . I try rebooting in RECOVERY MODE , but it asking me for username and password , which doesnt exit , since i lost the original sudoers file , so im not even able to log on in recovery mode.
Does anybody know a workaround < i don't want to have to re-install mint :cry:
brotherhood
Level 1
Level 1
 
Posts: 9
Joined: Fri Mar 28, 2008 6:29 am

Linux Mint is funded by ads and donations.
 

Re: Help with sudoers file

Postby Husse on Fri Mar 28, 2008 7:31 am

Never ever touch the sudoers file unless you know exactly what you are doing - this is for "gurus"
And you can't accidentally delete it - you must first have removed a lockfile
You use visudo to edit sudoers - nothing else, and you need password for that
Unless you specified a root password you can enter "recovery mode" - if you specified a root password - well - you're done - almost
Boot the live CD and mount the / partition
It should be possible just to copy your backup
But remember
Never ever touch the sudoers file!
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Help with sudoers file

Postby brotherhood on Fri Mar 28, 2008 11:49 am

Thanks for your help husse ,
i tried what you suggested but i failed big time , so i had to re-install mint again , only took me 20 minutes , im up and running again . although my USB pen drives are not being automatically mounted ? dont know why , but it was working before , i suspect it is something to do with "udf,iso9660"
here's my /etc/fstab

Code: Select all
/dev/sdb1       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0
/dev/scd0       /media/cdrom1   udf,iso9660 user,noauto,exec 0       0



As far as i know the "udf,iso9660" in the third column should be "auto". Do i have to manually change that in vi or something , am i trying not to be adventurous after last night :D :D :D

thanks
brotherhood
Level 1
Level 1
 
Posts: 9
Joined: Fri Mar 28, 2008 6:29 am

Re: Help with sudoers file

Postby rustyman99 on Fri Mar 28, 2008 1:21 pm

Nope, your /etc/fstab is correct.
Do you get any errors when trying to mount a usb pen drive through dolphin,thunar or w/e, ie right click>actions>mount

P.S. Just use any old text editor for editing, it's a damn sight easier than vi, unless you want to learn it ofc :wink:
rustyman99
Level 1
Level 1
 
Posts: 23
Joined: Thu Feb 14, 2008 5:23 pm

Re: Help with sudoers file

Postby brotherhood on Fri Mar 28, 2008 2:38 pm

If it is correct , then i don'k know what is going on.
When i plug any USB , i get this error : Cannot mount volume.Invalid mount option when attempting to mount the volume.
brotherhood
Level 1
Level 1
 
Posts: 9
Joined: Fri Mar 28, 2008 6:29 am

Re: Help with sudoers file

Postby brotherhood on Fri Mar 28, 2008 3:03 pm

Solved ----------- I changed the entry in the third column to "Auto" and it worked like a charm
brotherhood
Level 1
Level 1
 
Posts: 9
Joined: Fri Mar 28, 2008 6:29 am


Return to Newbie Questions

Who is online

Users browsing this forum: Bryan88, stoan, Yahoo [Bot] and 34 guests