NikChillin Posted June 8, 2012 Posted June 8, 2012 Hi, I am new to this and have found a puzzling problem. I have installed Ubuntu on a virtual machine and need to do some things as a root account. In the terminal it is asking for the root password which is fine but I haven't set one. I have rei-installed it because I thought that I had missed a step but I haven't. can someone tell me how to overcome this or reset the password? Thanks
kmount Posted June 8, 2012 Posted June 8, 2012 Try sudo yourcommand or if it insists on a true root password (which is kind of not good) you'll want to run sudo passwd root (and put in your own password first for sudo, and then the one you want to use for root twice)
Steve21 Posted June 8, 2012 Posted June 8, 2012 Hi, I am new to this and have found a puzzling problem. I have installed Ubuntu on a virtual machine and need to do some things as a root account. In the terminal it is asking for the root password which is fine but I haven't set one. I have rei-installed it because I thought that I had missed a step but I haven't. can someone tell me how to overcome this or reset the password? Thanks In Ubuntu you don't ever need to login as root. You use sudo with your password. It's basically UAC style. Steve
Geoff Posted June 8, 2012 Posted June 8, 2012 although you can turn it off Enable and Disable Ubuntu Root Password I usually do this when I'm doing the initial setup. Once the server is deployed on the network I use SSH keys.
NikChillin Posted June 8, 2012 Author Posted June 8, 2012 In Ubuntu you don't ever need to login as root. You use sudo with your password. It's basically UAC style. Steve It's part of an OU study and I need to partition drives as a root user to do that.
Gatt Posted June 8, 2012 Posted June 8, 2012 As already stated - sudo should be enough to stay in root (not recommended!!) type: sudo su to leave root - just type exit 1
Steve21 Posted June 8, 2012 Posted June 8, 2012 It's part of an OU study and I need to partition drives as a root user to do that. Sorry, maybe I explained bad You don't "login" with root. You just use it as sudo (e.g. above as @Gatt said ) Thus never need to know it's default password etc. Steve 1
NikChillin Posted June 8, 2012 Author Posted June 8, 2012 Cheers guys, as I said it is for a training course so it isn't a problem with security etc.
NikChillin Posted June 11, 2012 Author Posted June 11, 2012 Wunderbar! Solved many permission issues I was experiencing too.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now