LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-17-2010, 03:16 AM   #1
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Rep: Reputation: 2
Unhappy problem with terminal


hi everyone! I'm using fedora-11. Initially while doing the terminal part it used to come like this- [software@localhost ~]$,,,, then i used to give the password and enter the root. Here my username is software. Then i changed the ownership from root to software, so that i don't have to give the password each time. BUT NOW when i am giving su and entering the password it is showing INCORRECT PASSWORD. I don't know what has happened. Can some one help me please??
 
Old 09-17-2010, 03:23 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
we can't understand your problem...

you some how changed the root password and forgot tat i guess...

go to single usermode or rescue mode to reset the root password ...


for password less login i dont think you need to change the ownership but use this

Code:
passwd -d username
this will make user password less ...
 
Old 09-17-2010, 03:51 AM   #3
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
thanx. But i haven't changed the password, i restarted using the same password, but in the terminal part when i'm giving su and then password it is showing incorrect password. i don't know what has happened. Help ,
 
Old 09-17-2010, 03:58 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Thumbs up

explain your problem not able to get your problem?
can u login in root from CLI not GUI
 
1 members found this post helpful.
Old 09-17-2010, 04:04 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,732
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by sattulinux View Post
Then i changed the ownership from root to software,
What does this mean ? Explain what did you do to achieve this !
 
Old 09-17-2010, 04:08 AM   #6
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
To the OP: Have you already added yourself to /etc/sudoers? If so, you can easily use sudo to reconfigure the root password:

Code:
sudo passwd
However, if not, there's only one recourse left: Reinstall, because passwd -d on the root account will LOCK YOU OUT OF THE SYSTEM!
 
1 members found this post helpful.
Old 09-17-2010, 04:14 AM   #7
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
You could also, as soon as the computer turns on, press <Esc> to get to the GRUB boot menu and press 'e' to edit the default boot option. At the end of the string, type:

Code:
init=/bin/bash
This will get you to a root shell as soon as the computer loads, and then you can type

Code:
passwd
to change the password to what you had before.
 
Old 09-17-2010, 04:23 AM   #8
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
hi prayag_pjs. Actually i'm not able to login from CLI, that's what i'm tring to say. Though while restarting i'm giving the same password, but i'm not able to use the same password while in terminal(CLI).
 
1 members found this post helpful.
Old 09-17-2010, 04:27 AM   #9
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by anishakaul View Post
What does this mean ? Explain what did you do to achieve this !
sorry for replying late, Anisha. Actually i used the syntax:
chown -hR root /u Changes the owner of /u and subfiles to "root",




is it o.k?
 
Old 09-17-2010, 04:33 AM   #10
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Question

Quote:
Originally Posted by Kenny_Strawn View Post
To the OP: Have you already added yourself to /etc/sudoers? If so, you can easily use sudo to reconfigure the root password:

Code:
sudo passwd
However, if not, there's only one recourse left: Reinstall, because passwd -d on the root account will LOCK YOU OUT OF THE SYSTEM!

hi Kenny! well actually i'm new to linux. So the thing about sudo, i don't know it yet. That u told - "/etc/sudoers",,,,, well how to do it?
 
Old 09-17-2010, 04:40 AM   #11
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
As I said before, reboot, press <Esc> to get a GRUB menu, and then press 'e' to edit the boot options, appending 'init=/bin/bash' to the end of the string. This will get you to a root shell
right after the kernel loads, from which you can type:

Code:
passwd
and change the password to what you have for your standard account.

Also: If passwd tells you to enter a current password, just press 'Enter' to abort and type 'passwd -d' before continuing.

Last edited by Kenny_Strawn; 09-17-2010 at 04:45 AM. Reason: Added second choice
 
1 members found this post helpful.
Old 09-17-2010, 04:41 AM   #12
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
let me guess wat u r doing

You have root user and you say you know its password right?

Then you login as normal user say john in GUI when system starts and you are able to login successfully .. right?

then you open the terminal and do this

$su -

and the password you are providing is for root and it says password incorrect ...

is this the scenario???

do let us know


to add yourself to sudoers list do this
(as root you have to do this)
Code:
visudo
add this line for john to make add him to add to list of sudoers

Code:
 john  ALL=(ALL)   NOPASSWD: ALL
 
2 members found this post helpful.
Old 09-17-2010, 04:49 AM   #13
marvinC
LQ Newbie
 
Registered: Aug 2010
Location: www.twitter.com/b0koo15
Posts: 20

Rep: Reputation: 1
I think his experiencing the same problem I had before.. Well, I try to configure it to the best of my knowledge and by reading some articles and forums in the web.. but it result in nothing, so i just install a new root directory just sharing my exp. ^^
 
1 members found this post helpful.
Old 09-17-2010, 09:36 AM   #14
sattulinux
Member
 
Registered: Sep 2010
Posts: 44

Original Poster
Rep: Reputation: 2
Question

Quote:
Originally Posted by prayag_pjs View Post
let me guess wat u r doing

You have root user and you say you know its password right? and the password you are providing is for root and it says password incorrect ...
is this the scenario??? do let us know

Code:
 john  ALL=(ALL)   NOPASSWD: ALL
hi Prayag! you are excellently right. That is where i'm facing the problem. That is the exact scenario which happened with me. Please tell me what to do next??

Last edited by sattulinux; 09-17-2010 at 09:38 AM.
 
1 members found this post helpful.
Old 09-17-2010, 09:50 AM   #15
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi Do this;

Restart your Linux system
Press ctrl+alt+f2
you will get black and white screen with login option there try to login as root
and put the password which you think you remember...
let us know if you can login...
also login as your normal user and let us know if you can login...
 
1 members found this post helpful.
  


Reply



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
terminal problem rehan999 Linux - Software 1 03-22-2008 08:26 AM
terminal problem jaspreet85 Linux - General 3 07-20-2005 10:15 AM
Problem with terminal garnelleo Linux - Newbie 3 04-23-2005 06:35 PM
Terminal problem David@330 Linux - Newbie 3 10-12-2004 02:40 AM
qt: terminal problem powadha Slackware 1 12-23-2003 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 AM.

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
Open Source Consulting | Domain Registration