Root Password

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Root Password

Postby froggertplox on Tue Feb 12, 2013 10:43 am

I was recently given a computer with linux mint on it, coming from nothing but windows it's...new to say the least. So far I've found I like the way everything seems logical, but because I was given this computer \ I was wondering. Is there anyway to reset a root password and/or and "administrative password? I was trying to download wine but couldn't because I didn't have the right password. I do have the old root password but would like to reset it and the root user if possible.

Thanks for any help in advance.
froggertplox
Level 1
Level 1
 
Posts: 2
Joined: Tue Feb 12, 2013 10:39 am

Linux Mint is funded by ads and donations.
 

Re: Root Password

Postby viking777 on Tue Feb 12, 2013 11:35 am

viewtopic.php?f=42&t=84256&hilit=reset+password

See that box at the top right hand corner of the page you are viewing? It is called forum search. We like to encourage people to use it before posting.

Thank you :)
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Root Password

Postby froggertplox on Tue Feb 12, 2013 11:45 am

I did search >.< but maybe just to specifically.
froggertplox
Level 1
Level 1
 
Posts: 2
Joined: Tue Feb 12, 2013 10:39 am

Re: Root Password

Postby nixguy on Tue Feb 12, 2013 4:43 pm

froggertplox wrote:I was recently given a computer with linux mint on it, coming from nothing but windows it's...new to say the least. So far I've found I like the way everything seems logical, but because I was given this computer \ I was wondering. Is there anyway to reset a root password and/or and "administrative password? I was trying to download wine but couldn't because I didn't have the right password. I do have the old root password but would like to reset it and the root user if possible.

Thanks for any help in advance.


when you got the computer did they give you the user id and password to login, if it's the only user id, then the root password is the same as your login password.

if not you could try this

http://community.linuxmint.com/tutorial/view/339

or

viewtopic.php?f=199&t=124480



Cheers

Nix
nixguy
Level 1
Level 1
 
Posts: 11
Joined: Thu Jan 24, 2013 2:16 pm

Re: Root Password

Postby bigj231 on Thu Feb 14, 2013 1:42 pm

Just remember, root=bad. Don't use it. If you needed to use it, you wouldn't need to ask how or why. Sudo is much better and safer. It just gives you temporary root for one operation.
Running on a 4-slot toaster @ 60Hz
User avatar
bigj231
Level 5
Level 5
 
Posts: 793
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere

Re: Root Password

Postby SaintDanBert on Fri Feb 15, 2013 6:24 pm

Since you can login, can you use the 'sudo' command? If so, you can accomplish any administrative
command desired with 'sudo someCommand'.

Using the sudo command itself, you can set a root password without a lot of trouble.
The option "-i" asks for a shell that simulates an original login session.
Code: Select all
prompt$  sudo  -i {ENTER}
... password dialog ...
prompt#

The trailing hash mark on the prompt informs you that you are running a shell as "root".
To set a root password, simply do the following:
Code: Select all
prompt# passwd {ENTER}

Enter new password: ***********
Renter password:  **********
prompt#

You can end your root session using either the 'exit' command or simply CTRL-D to provide an
end-of-file to the shell's STDIN.

Now, you can do whatever you want with your root account using the password you provided.
Like others in this thread, I discourage routine operations using a root login and encourage
use of 'sudo' or 'gksu' or similar to admin activities.

Hoping this helps,
~~~ 0;-Dan
All government spending, regardless of the motives, uses YOUR money!
Any government extensive enough to give you anything that you want is also
powerful enough to take everything that you have.
User avatar
SaintDanBert
Level 3
Level 3
 
Posts: 155
Joined: Sat Feb 20, 2010 4:04 pm
Location: Austin, TX USA


Return to Newbie Questions

Who is online

Users browsing this forum: 2guntom, Google Adsense [Bot], Resistor and 27 guests