LinuxQuestions.org
Help answer threads with 0 replies.
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 07-27-2012, 07:20 AM   #1
rajesha1591
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
Unhappy 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
 
Old 07-27-2012, 08:14 AM   #2
SAGOALEXANDER
LQ Newbie
 
Registered: Aug 2011
Location: Tampa, Florida
Distribution: Ubuntu
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 07-27-2012, 08:28 AM   #3
access2nitan
Member
 
Registered: Jul 2012
Posts: 44

Rep: Reputation: Disabled
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...
 
Old 07-27-2012, 08:53 AM   #4
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Ubuntu
Posts: 992

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
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)?

Last edited by jkirchner; 07-27-2012 at 08:54 AM.
 
Old 07-27-2012, 09:48 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by rajesha1591 View Post
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.
 
Old 07-30-2012, 12:48 AM   #6
rajesha1591
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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....
 
Old 07-30-2012, 02:12 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
In the terminal, type your password as the username. Do you exactly see your password or do see something else on certain characters?
 
Old 07-30-2012, 02:23 AM   #8
rajesha1591
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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...
 
Old 07-30-2012, 03:35 AM   #9
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
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?
 
Old 07-30-2012, 05:27 AM   #10
rajesha1591
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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:0perator:/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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora 16: Trying to execute an xinput command at boot up before login. Cmd works in terminal as su Ron Pierce Linux - Newbie 1 04-24-2012 10:41 PM
[SOLVED] How to create a kickstart file using terminal login(no gui )? venunair Linux - Newbie 1 02-25-2012 03:15 PM
[SOLVED] Need login to Fedora 15 from terminal, cannot log in to GUI because of modification x0a Linux - Newbie 3 07-24-2011 07:28 PM
script to open pseudo-terminal at user login to GUI: ubuntu (kiwi) 10.04 zev42 Programming 1 12-07-2010 11:39 AM
Login Problem in GUI terminal sushmi Linux - Newbie 8 05-29-2007 07:12 AM

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

All times are GMT -5. The time now is 02:01 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