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 06-21-2016, 02:08 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
Why can't login into debian with normal name ?


My os is debian8,there are two account names ,one is root one is normal user named `debian8'.
I can login with both of them `root` and `debian8`.
Today ifound that `debian8` can't login into my os,`root` and its password can.
I am sure that the password for account name `debian8` is correct.
What' the matter with my os? How to fix it?
 
Old 06-21-2016, 02:10 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
what will happen when you try to log in (using debian8)?
Is there any message?
 
1 members found this post helpful.
Old 06-21-2016, 02:16 AM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
So, you can login root or tty*2( i.e: [Ctrl]+[Alt]+[F2])? Then see /home/debian8 also another live OS would work...
 
Old 06-21-2016, 02:20 AM   #4
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
Login with `root` and its password.

echo "" > /var/log/auth.log

Logout and then login with `debian8` ,failed .
cat /var/log/auth.log

Jun 21 15:15:25 hwy lightdm: pam_unix(lightdm:session): session closed for user root
Jun 21 15:15:25 hwy polkitd(authority=local): Unregistered Authentication Agent for unix-session:3 (system bus name :1.21, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jun 21 15:15:25 hwy lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Jun 21 15:15:25 hwy systemd-logind[695]: New session c3 of user lightdm.
Jun 21 15:15:28 hwy systemd-logind[695]: Removed session c2.
Jun 21 15:15:34 hwy lightdm: pam_unix(lightdm-greeter:session): session closed for user lightdm
Jun 21 15:15:34 hwy lightdm: pam_unix(lightdm:session): session opened for user debian8 by (uid=0)
Jun 21 15:15:34 hwy systemd-logind[695]: New session 5 of user debian8.
Jun 21 15:15:34 hwy systemd: pam_unix(systemd-user:session): session opened for user debian8 by (uid=0)
Jun 21 15:15:34 hwy lightdm: pam_unix(lightdm:session): session closed for user debian8
Jun 21 15:15:34 hwy systemd-logind[695]: Removed session 5.
Jun 21 15:15:34 hwy systemd: pam_unix(systemd-user:session): session closed for user debian8
Jun 21 15:15:34 hwy lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Jun 21 15:15:34 hwy systemd-logind[695]: New session c4 of user lightdm.
Jun 21 15:15:37 hwy systemd-logind[695]: Removed session c3.
Jun 21 15:15:42 hwy lightdm: pam_unix(lightdm-greeter:session): session closed for user lightdm

Last edited by luofeiyu; 06-21-2016 at 02:22 AM.
 
Old 06-21-2016, 02:28 AM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
So, is /home/debian8 there, could always delete the user and add a new? (I have messed up a password once or (pun (re-enter)) twice? )

Last edited by jamison20000e; 06-21-2016 at 02:30 AM. Reason: clarified my "pun" as if... :D
 
Old 06-21-2016, 02:30 AM   #6
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
I have tried for twice ./home/debian8 is still there, no changes.
Why session closed for user debian8?

Last edited by luofeiyu; 06-21-2016 at 02:35 AM.
 
Old 06-21-2016, 02:33 AM   #7
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I don't think I have ever removed a user? But, backups as usual.
 
Old 06-21-2016, 02:38 AM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I'd think you can
Code:
adduser
then move (if any) files from "debian8" and
Code:
chown newYou /home/newYou
..?
 
Old 06-21-2016, 02:40 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
so do you mean: you created a user/password (several times), worked at first but now you can't login
I would increase the log level of pam (or probably check another logfiles too)
 
1 members found this post helpful.
Old 06-21-2016, 02:53 AM   #10
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Talking

For a "" thread seems you both went over my head quick?
 
Old 06-21-2016, 03:01 AM   #11
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,157

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by luofeiyu View Post
I have tried for twice ./home/debian8 is still there, no changes.
Why session closed for user debian8?
what was the last change you made on your machine?

Did you by any chance change the permission on ./home/debian8?

cat /etc/passwd is debian8 user listed there?

or check out this link: https://bugs.debian.org/cgi-bin/bugr...cgi?bug=541188

Last edited by JJJCR; 06-21-2016 at 03:02 AM. Reason: edit
 
1 members found this post helpful.
Old 06-21-2016, 03:15 AM   #12
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
1.The last change on my pc is to execute aria2c command to download torrent ,then i power off my pc.
2.In the afternoon, i find that `debian8` can't login when to reboot my pc ,then i tried with `debian8` twice.

The fact is not that
there is one account name `debian` ,and i add new name as `debian8`, two `debian8` was added twice, no.
 
Old 06-21-2016, 03:18 AM   #13
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
Why my os do not assign a session for `debian8`?
From the log info : Jun 21 15:15:34 hwy lightdm: pam_unix(lightdm:session): session closed for user debian8
 
Old 06-21-2016, 03:25 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,897

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
it was assigned, but also it was closed because of some configuration/permission/whatever issue
That's why you may need to increase log level
 
Old 06-21-2016, 03:34 AM   #15
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
ls -ld /home/debian8
drwxr-xr-x 65 debian8 debian8 4096 Jun 21 16:00 /home/debian8

only root can login into my os now.
useradd -d /home/test1 test1
passwd test1

test1 can't login os when logout from root.
Why??

Last edited by luofeiyu; 06-21-2016 at 03:54 AM.
 
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
bypassing normal Login UI navneethr Linux - Security 5 11-19-2010 09:03 AM
Different passwords for normal/remote login? mike11 Linux - Newbie 6 04-26-2010 04:19 PM
Cant' login in normal account !!!!!!!!!! steelwire Linux - Newbie 7 12-13-2008 09:01 AM
Auto login normal user debian a10392 Debian 3 01-14-2005 06:30 AM
How to login as a normal user? daYz Slackware 5 11-14-2003 02:35 PM

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

All times are GMT -5. The time now is 05:01 PM.

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