LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2012, 06:07 PM   #1
edpatterson
LQ Newbie
 
Registered: Aug 2003
Location: Florida
Distribution: Ubuntu
Posts: 12

Rep: Reputation: 0
Arg! Virtual machine, sudo won't work, can't log in as root, visudo won't work Arg!


I have Virtual Box running on Debian Squeeze. My virtual machine is Debian, which I built to try to install Java 7. Here is my quandary.

I can open Synaptic Package Manager, enter my password, it opens and I can install software. So far so good.

I tried sudo -i, entered my password and was told I am not in the suduers file and .... I researched that and found references to visudo, not found on my system. Tries sudo nano /etc/sudures, access denied.

Logged out, tried to log in as root, no go.

Aside from removing the hard drive, mounting it on another box then editing the file, how can I add myself to the sudoers file?

Ed
 
Old 01-03-2012, 06:14 PM   #2
cr0d0m
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
Try with "su" command to grant root privileges and add yourself into sudoers file. That should work
 
Old 01-03-2012, 06:33 PM   #3
edpatterson
LQ Newbie
 
Registered: Aug 2003
Location: Florida
Distribution: Ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks a bazillion. You would think I would have run across this solution in all my searches. It was spot on.

Ed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slack 13.1 won't work on this machine! erickFis Slackware 14 06-23-2010 05:44 AM
why won't suse work with my machine baronobeefdip SUSE / openSUSE 16 11-19-2009 09:44 PM
Myth2 won't work on my machine.. Tux9876 Linux - Games 14 10-05-2008 01:32 PM
Virtual host config won't work klintonray Linux - Networking 18 08-19-2003 03:53 PM
ARG how do I get this perl app to work? rivethead Linux - Software 4 02-03-2003 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration