Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-03-2012, 05:07 PM   #1
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?

Old 01-03-2012, 05:14 PM   #2
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, 05:33 PM   #3
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.



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 04:44 AM
why won't suse work with my machine baronobeefdip SUSE / openSUSE 16 11-19-2009 08:44 PM
Myth2 won't work on my machine.. Tux9876 Linux - Games 14 10-05-2008 12:32 PM
Virtual host config won't work klintonray Linux - Networking 18 08-19-2003 02:53 PM
ARG how do I get this perl app to work? rivethead Linux - Software 4 02-03-2003 06:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:41 AM.

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