LinuxQuestions.org
Review your favorite Linux distribution.
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 03-16-2009, 08:21 AM   #1
Zexston
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
Super User / Root access on DebianKDE3 in VirtualBox on OSX


Hi,

After a week of working with Debian, I decided to install the KDE3 version straight from an NetInstall CD. This fixed some issues for me as well as made networking and folder sharring a snap! But now its time to add all the extra packages I need.

Here's the problem: Using any kind of Package Manager yields the same results:

E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (var/lib/dpkg/), in another process using it?
RESULT=100

I've tried apt-get from root command line and the KPackage Manager that comes with KDE3 with same results. I have only one user that was created during Debian install.

I'm having some other problems, from what I've seen on the net, they all seem to point to not having proper Super User access (I'm guessing here).

Question(s):

What could cause this error?

AND/OR

How do I make sure I have top level access to the configure the system? (I tried logging in as "root", but the login errored out saying that this was not allowed)

Thank you in advance!
 
Old 03-16-2009, 11:24 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Either another package manager is in use, or you are not superuser. Open a terminal and type "sudo -s". Or, switch to a VTY (ctrl+alt+f1) and log in as root there. If that doesn't work, do
Code:
ps -ef | egrep "(apt|ept)"
and kill anything that says apt-get, aptitude, synaptic, kadept.. or reboot.
 
Old 03-16-2009, 12:40 PM   #3
Zexston
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks....apt-get was running for some reason, even after rebooting several times. KPackage now runs fine as long as I run it from the command line with:

Code:
kdesu kpackage
Which brings me to the bigger problem: How to login with access that lets me run any program from the program menu with root or super user (Are those the same thing?).

I tried the ALT-CNTRL +F1. Nothing happened. When I try to login as root when DebianKDE starts, it says "Root Logins are not allowed".

Any other suggestions, this little glitch is killing me!
 
Old 03-16-2009, 01:29 PM   #4
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
It's not a glitch. Debian does not, by default, allow root logins into a graphical interface. There may be a way to change this but it's not a good idea. You can use the kdesu from the command line as you did above. Some programs that normally required root privileges will present a window asking for the root password.

Yes, root = superuser.
 
Old 03-16-2009, 02:16 PM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
ctrl+alt+f1 is supposed to bring you to a virtual terminal (non-graphical) where you can log in. Try ctrl+alt+f2.
 
Old 03-17-2009, 04:24 PM   #6
Zexston
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks all for the help. Between this forum and others, I found the answers:

E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (var/lib/dpkg/), in another process using it?
RESULT=100

This error was solved by killing a process that was running in the background (apt-get), which in my case Kpackage Manager uses. Here is the "How to" I used.

The root access problem has 2 solutions: 1) Modify Linux to allow Root Login OR 2) Suggested: Add a command to the shortcut to allow for Root rights

1) Modify Linux to allow Root Login

Here

2) Suggested: Add a command to the shortcut to allow for Root rights (Using KDE in my case)

Quote:
modify the Menu Items using KMenuEdit ( Right click on Menu Icon > Menu Editor ) and add "kdesu" to the start of the "Execute" lines for applications that need root permissions.
 
  


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
VirtualBox GUI will not start for non-root user astrogeek Slackware 21 12-23-2008 01:12 PM
Darwine 0.9.27 PPC (Mac OSX 10.4.11) only work on that user and root ussr_1991 Other *NIX 0 07-14-2008 11:46 AM
How to create second super user like root? enggsultan Linux - Newbie 13 11-14-2006 08:05 AM
how to run ifconfig as root without super user terminal GUIPenguin Linux - General 1 01-15-2005 11:06 AM
Super User mode, my root password doesn't work? kko88 Linux - Newbie 8 05-20-2003 07:01 PM


All times are GMT -5. The time now is 04:59 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