LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with terminal (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-terminal-832759/)

sattulinux 09-17-2010 03:16 AM

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??

prayag_pjs 09-17-2010 03:23 AM

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 ...

sattulinux 09-17-2010 03:51 AM

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 :(,

prayag_pjs 09-17-2010 03:58 AM

explain your problem not able to get your problem?
can u login in root from CLI not GUI

Aquarius_Girl 09-17-2010 04:04 AM

Quote:

Originally Posted by sattulinux (Post 4100274)
Then i changed the ownership from root to software,

What does this mean ? Explain what did you do to achieve this !

Kenny_Strawn 09-17-2010 04:08 AM

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!

Kenny_Strawn 09-17-2010 04:14 AM

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.

sattulinux 09-17-2010 04:23 AM

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).

sattulinux 09-17-2010 04:27 AM

Quote:

Originally Posted by anishakaul (Post 4100303)
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?

sattulinux 09-17-2010 04:33 AM

Quote:

Originally Posted by Kenny_Strawn (Post 4100307)
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?

Kenny_Strawn 09-17-2010 04:40 AM

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.

prayag_pjs 09-17-2010 04:41 AM

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

marvinC 09-17-2010 04:49 AM

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. ^^

sattulinux 09-17-2010 09:36 AM

Quote:

Originally Posted by prayag_pjs (Post 4100343)
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??

prayag_pjs 09-17-2010 09:50 AM

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...


All times are GMT -5. The time now is 09:05 AM.