LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant login thru terminal but in GUI it works (https://www.linuxquestions.org/questions/linux-newbie-8/cant-login-thru-terminal-but-in-gui-it-works-4175418924/)

rajesha1591 07-27-2012 06:20 AM

Cant login thru terminal but in GUI it works
 
Hi m new to Linux
I installed Redhat Linux enterprise everything works ok but when I open a new terminal with CTR+ALT+F1 -- F6 i got the login screens, but I cant log in... if i put wrong password it says invalid password.....but i can login thrugh GUI mode...CTR+ALT+F7...It works fine with graphical mode...

PLease help

SAGOALEXANDER 07-27-2012 07:14 AM

Are you logging into your gui as root or another user? If you are logging in a terminal from gui you may need to specify root or account name and type in the password according to what account you are logging in with.

In Linux root is like the Administrator for windows.

If you do not remember your root password you will need to boot into single user mode and change it.

access2nitan 07-27-2012 07:28 AM

hello.

i think the best way for you go through single user mode and change the password of root and you can also do it with the help of root just type type this command:-
remember that you should be on root. # passwd root and after that you have to type password twice and after changing the password try to go in GUI to terminal and do log in...

jkirchner 07-27-2012 07:53 AM

Just to make sure, after you press ctr-alt-f? are you typing the user name and then enter and then enter the password? If you want to be root, the user is root then enter root's password. It works just fine here.

Or are you saying you have forgotten the password (which kind of makes no sense if you can log in graphically)?

Wim Sturkenboom 07-27-2012 08:48 AM

Quote:

Originally Posted by rajesha1591 (Post 4739290)
Hi m new to Linux
I installed Redhat Linux enterprise everything works ok but when I open a new terminal with CTR+ALT+F1 -- F6 i got the login screens, but I cant log in... if i put wrong password it says invalid password.....but i can login thrugh GUI mode...CTR+ALT+F7...It works fine with graphical mode...

PLease help

What happens when you enter correct password in terminal?

Maybe a language issue where the language for the gui is different for the language for the terminals? Don't even know if that is possible.
Change your password (in the GUI) to something simple like 'qwerty' that does not rely on special symbols like #,% etc.

rajesha1591 07-29-2012 11:48 PM

hi thanks
 
when i enter correct username and password in terminal it just gives me login and password...doesnt load the settings.

My username and password are ok...it works in GUI...it loads my desktop and all...but cant login thru terminal mode....

Wim Sturkenboom 07-30-2012 01:12 AM

In the terminal, type your password as the username. Do you exactly see your password or do see something else on certain characters?

rajesha1591 07-30-2012 01:23 AM

hi thanks
 
it displays correct password at username. its not related to any typing mistake either...it happened only after i created new account group and granted all the permissions through gui...

Wim Sturkenboom 07-30-2012 02:35 AM

OK, I'm a little out of options

Can you post the relevant line for the specific user from /etc/passwd. Maybe an incorrect shell?

rajesha1591 07-30-2012 04:27 AM

Hi Wim
 
Following is from /etc/passwd file m using two logins as root and oracle

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
news:x:9:13:news:/etc/news:
uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
nscd:x:28:28:NSCD Daemon:/:/sbin/nologin
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
ntp:x:38:38::/etc/ntp:/sbin/nologin
rpc:x:32:32:Portmapper RPC user:/:/sbin/nologin
mailnull:x:47:47::/var/spool/mqueue:/sbin/nologin
smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
xfs:x:43:43:X Font Server:/etc/X11/fs:/sbin/nologin
dbus:x:81:81:System message bus:/:/sbin/nologin
haldaemon:x:68:68:HAL daemon:/:/sbin/nologin
avahi:x:70:70:Avahi daemon:/:/sbin/nologin
apache:x:48:48:Apache:/var/www:/sbin/nologin
avahi-autoipd:x:100:101:avahi-autoipd:/var/lib/avahi-autoipd:/sbin/nologin
gdm:x:42:42::/var/gdm:/sbin/nologin
sabayon:x:86:86:Sabayon user:/home/sabayon:/sbin/nologin
oracle:x:500:500::/home/oracle:/bin/bash


All times are GMT -5. The time now is 02:04 PM.