Ubuntu Servers :: 9.04 - How To Access Root (No GUI)
Jul 15, 2010
I am a Newbie to Server platform. Just installed Ubuntu 9.04 server, As my Lappy not supporting OEL 4. I was shocked to see that there is no GUI. Anyhow, in that it is showing to Login. I enter the Username and password which was created during Installation on Ubuntu server. It was fine. How to goto Root?
I typed su - root and entered password
Says Authentication failure.
How can I overcome this? While Installation where ever it asks for a password I use the same one.
I'm running an Ubuntu 9.04 Minimal server and trying to get MySQL to work correctly. But when I try to access MySQL with the root user it doesn't want to.
I set up a servber on my local machine, & also PHp - Both working fine.I'm trying to load up MYSQL i have installed it, & *can* start/stop the server. however if I do anything else with it, I get this error :-
Quote:
root@gordon-desktop:~# sudo mysqladmin -u root -h localhost password MYPASSWORD mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Query :-
1) How do I know MYSQL is actually active ? (apart from the message it says that its statrted (or stopped).
2) Is there a way to
a) Find out the usernames that are recorded on the MYSQL server ? b) set / RESET the 'root' username (I know MYSQL root user is different to PC root user) c) anything else I can do on the PHP / website code to see if MYSQL is working
(as yet, no tables / databases etc have been set up - as I can't get past this error message - I get the same error when setting up a database.)
Ps I did allow my usermname (when logged in to ubuntu) to edit / create files in the /usr/www/ directory (but it is still OWNED by 'root' - that directory)
I was using the latest stable release of Debian, dual-booted alongside Windows Vista, with the GNOME desktop, installed via netinst, trying to build and install a library that I knew and trusted, when suddenly I couldn't open the Root Terminal. I clicked the link (in Applications->Accessories (I think, whatever the top one is)->Root Terminal), and in the taskbar I saw an item that said "Starting Root Terminal". A few seconds later, that went away, but the terminal still wasn't open. I tried the regular user terminal, to see the same thing happen. Unsure of what was happening, I tried restarting my computer, since that's always the first step you should take in computer problems.
When I restarted, GNOME wouldn't start. The screen would flash a bit for a few seconds, then a dialog box would appear over a background of static that said "The greeter application is crashing. Attempting another one...".t would then go back to the DOS-style kernel, wait a second, and then the same thing would happen. After several of that, I would get a blue screen which said something to the effect of "It has been detected that the desktop environment has crashed six times in the past 30 seconds.
Waiting two minutes before trying again." When it did that, I tried logging in as root to assess the problem. I gave it the correct password, but it said that it was an incorrect login. After several tries (to ensure I didn't mistype the password), I logged in as myself. Same problem. I tried the su command, with the correct password, and it said it couldn't authorise it.
After a lengthy conversation with a friend of mine who was very good with computers, he basically summarised that he had no clue, but that his best guess would be a virus. Upon running the Linux installer, I found the Repair option. Not being particularly familiar with Linux, I used it simply to backup my important files onto a flash drive. I then tried running the Install option, in an attempt to simply write over my existing Linux and make it new again. The installer, however, consistently froze up when trying to start the partitioner, on the "Checking disks..." stage. I figured it was a problem with my partition. In my naivete, I simply used the Windows tools to clear that partition... It destroyed GRUB too, so I couldn't run any OS. I figured my computer was pretty well screwed, and at that point just decided to bring it into the shop and have them completely wipe it.
my computer was backed up onto an external hard driven I brought it back, I reinstalled Windows. Upon restart, it said that it was still looking for GRUB, which made no sense to me. After messing around with it a bit, I decided to just reinstall Linux too. To my lack of surprise, that fixed the problem. Both OS' now ran just fine. The first thing I did on Debian was to install the Clam Anti-Virus, which I understood to be one of the best Linux anti-viruses. However, within about 10 hours, got the same problem as originally. I wasn't doing any of the same things, and between the lack of consistency in activities and the fact that I had an anti-virus running,figured it wasn't a virus. Not knowing what to do, I just left it and have been using Windows since.
I'm having a problem with my webdav share. I have a secure webdav folder that gets accessed via a non-standard port and requires basic authentication. I can connect and interact with it fine via cadaver. However, when I try to connect from nautilus, it says "Access was denied." To make it even stranger, sometimes I can click on the folder in nautilus (it still mounts) and access it. Sometimes not (just repeats the error message and won't show me the contents). I may not even un-mount it, but just look at other folder, then click it again and be able to access it, but again - only rarely.
I asked a friend to try connecting from his windows vista computer and it would not work. It would not work from my windows XP virtual computer either. However, it mounts and works just find from my work computer (also Windows XP).
So it seems to be a 50/50 chance that the drive will mount on any given computer/system and work. Do anyone know what the problem may be? I'm guessing user permissions, but I can't figure out what.
I've made sure the webdav folder is owned by www-data and www-data has read access to the password file as well.
When I try connecting from nautilus, I get this in the log file:
Code:
Here is one of the (many) sites I've tried looking at: [url]
So, my company has a new web-based VPN client. I go to a specified URL, log in, and then a Java widget starts and tries to install some stuff. I get this screen:
It's asking me for my root password. I know how to set the root password, but I want to avoid that and use sudo instead. But as you can see from the image, the install is initiated in such a way as to prevent me from doing anything but entering my root password. And apparently my sudo/admin password isn't the same as my root password, because it doesn't work. And I can't access the executable from any other way. Is logging in as root briefly my only option here?
I recently installed Ubuntu 10.04 32bit on my laptop. I am trying to learn the command line and also install software via the command line. I type in su and hit enter it asks me for my password and I type that in. The password fails, why is this? I am the one who set this up and installed the OS. Now I am logged in using my normal user account when doing this from the GUI
i installed xampp using a tutorial posted here, but now the issue is i dont have priviledge to that directory. currently the xampp folder is located in /opt/
and i cant seem to fig out how i can get privil to that folder. (my user is "nate" not root
I'm having some problems getting photos off of my camera that I am thinking I can work with if I can access the photos on the camera as superuser. However I don't understand how Ubuntu (gnome) mounts cameras now, they don't show up as a mounted drive and I can't access (or find it at all) with 'sudo nautilus.'
[edit] Oh, also, the camera shows up if using nautilus not as a superuser.
I'm a new comer to Linux world, and I wish I can find help with some difficulties that I might face. I have a machine with Window 7 and Ubuntu (dual boot), windows 7 is installed on C drive and ubuntu installed on D drive, when I'm on Window, I put a folder named folder1 on D drive root beside (not inside) the main ubuntu folder. when I open ubuntu I can't see that file on D drive, I tried to search for it but couldn't find it, how can I access this file please ?
It's been a few years since I last installed Ubuntu. I searched the forums and can't seem to find the answer. I want to be able to do a "su root" and have root access. I know Ubuntu wants you to do the sudo command, and I know you can really mess things up being root. I know I got this to work before. What do I need to do?
I have two users in my system. Admin(Root) , and "student". I am making a bootable USB with Ubuntu 10.04 with two partitions. What i need is a cron-job who copies some files that the student has made(from the first partition) onto a partition which he is not allowed to access. The way i thought it should be done was making a root cron-job which mounts the drive and then copies the documents, and maybe unmounts it again.
The problem with this is that, when i mount it, wouldnt it be accessible to the "student" as well then? Since i give him sudo-rights and mounts the drive in the background for him? Alternatively i could unount it straight after the copying is done, but then it would do this too often I guess.
I have been trying to run the following commands several times in the last coupl weeks, to no avail."su" to get to root...then while root "apt-get update" for updatesalso"sudo apt-get update"BOTH areenied even with root or user-admin pwd.States that either permission is denied and/or frequently states that the command "apt-get" does not exist
I've heard that you shouldn't allow root access over ssh; what's the big deal?if a user account who has sudo privileges is cracked already, what's the difference?I allow root access over ssh, but I use a 30 character random password and disable all other accounts. Is this unsafe?
My viewsonic monitor will only go to 800x600 resolution on ubuntu..I had a similar problem with centos but went in an manually configured as root the display GUI and increased the resolution. Is there any way to do this with ubuntu? 800x600 is annoying on a 17" high end monitor
I temporarily placed a Back in Time backup into the root partition, by running it as root.However, I couldn't get it back out on the Desktop, so I opened a terminal window and ran 'sudo nautilus', which I now know should be avoided. I couldn't bring up "Properties" of the root folder, but I was able to open it and see the backintime folders. I then clicked on root, which was in the toolbar row "< root backintime" and was able to get full access to properties. I flipped folder access to "create and delete files" for Otherter disconnecting from the network, and moved the folder to the Desktop. So, is this correct or is it inconsistent that I could open root from the toolbar and not from the folder listing when opening 'filesystem'?
At least this is what it looks like to me. Amarok can play music but asks to open kde wallet manager for some password. All other programs (vlc, media player, audacity, etc) seem to function normally but no sound comes out of the speakers. code...
So simply running program requiring sound enabling as root does not work - plus it would not be very good practice, IMHO.
I honestly forgot my root password sad as it sounds. I can't just reinstall Ubuntu either because there are files I actually need on the computer. And I need the Root password to access the files.
I can't get in as root. User is no problem but when I su or login for root I get "setgid". I also have a corrupt ssh key which is preventing sshd from starting. This seemed to happen all at once.
In other UNIX-like OS I can go to an rc file (like kdmrc) and find the line "Allow root access at login=no" and change it to yes. How would I do this in Fedora-12, or what do I need to do to obtain permanent root accessed including with-in the GUI and not just at the command-line. I use only GNOME for Fedora-12
When I insert some homemade DVDs of a friend, I can't view its contents. DVD works fine on windows XP, but not on opensuse. Dolphin gives an error: access denied to /media/071114_1638.I can't do a chown command because dvd is read-only...And when I do an ls -l I get:
I have a large ISO file on a server, and I need to access the file in it, without having root access. Thus, I can't simply mount it. What should I do to be able to extract an ISO on LInux without root access?
need it for a project. basically, im working off a cluster that runs on linux, i dont really know what distribution it is, but i dont think it will matter too much. Im trying to install something. I dled the source code did "./configure"d then i went into src directory and did "make install". the error message is that, i cannot create the directory /usr/local/lib/vmd. so...i believe this is because i am my own user and not the root...is there anyway to get around this? i need to install this and avoid asking the root user to do it for me
If there is a general NFS share in the LAN and for example this share has three files - a, b, c is there any way to restrict file access to the root user of e particular host(falcon) in the same LAN environment while the normal users from the same host(falcon) should be able to access the NFS share & files a, b,