You are not logged in.
Pages: 1
I recently updated my Archlinux with LXDE setup without any major problem. I also tackled some pacnew and pacsave files. I used to login with username 'abcd' but now I cannot do so. When I enter 'abcd' as user and my password, the login screen just comes back. I can login as root and work normally in gui (LXDE). Also the /home/abcd folder is still there. When I gave command 'passwd abcd', it reported that there is no such user as 'abcd'.
I can create a new user with adduser command but I want to login again as 'abcd' since there were many settings that I had setup as that user. I can create a new user called 'abcd' but I suspect it will overwrite my existing /home/abcd folder and I will lose all my earlier settings.
I tried to search google and this forum but could not find a solution. For example, following threads are similar but not the same problem:
https://bbs.archlinux.org/viewtopic.php?id=166583
https://bbs.archlinux.org/viewtopic.php?id=169940
Please help.
Last edited by rnarch (2013-09-28 04:18:31)
Offline
Take a peek at /etc/passwd and see if there is a line for 'abcd'.
Also, take a look at man useradd especially the -m option
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
...I also tackled some pacnew and pacsave files...
By chance were some of those pacnew files things like /etc/passwd, /etc/shadow, /etc/gshadow and /etc/group? Because if so, then you just overwrote all the files that contain system info about users. Luckily Linux is smart enough to make backups for you. Check out /etc and see if there is passwd-, shadow-, group-, and gshadow- in there. If so, then it is likely that those are the old files that were in place before you overwrote the main ones (if that is indeed what happened).
Offline
rnarch wrote:...I also tackled some pacnew and pacsave files...
By chance were some of those pacnew files things like /etc/passwd, /etc/shadow, /etc/gshadow and /etc/group?
Oooh! , good catch, my friend. I could not figure out what could have caused a user to disappear. That would do it.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Happened to me!
If you renamed /etc/lxdm/lxdm.conf with the .pacnew, well the .pacnew one doesnt start a session by default!
So just edit lxdm.conf and uncomment
# session=/usr/bin/startlxde
Offline
I could not figure out what could have caused a user to disappear.
When the reasons wherefore such things have ceased to work elude your knowledge, curse Allan.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
If a pacnew file was meant to be used to blindly overwrite it's namesake, there'd be no point having it be a pacnew file in the first place.
Read up on what these files are for, why they're created, and how you should handle them: https://wiki.archlinux.org/index.php/Pa … save_Files
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I tried uncommenting "session=/usr/bin/startlxde" in /etc/lxdm/lxdm.conf and also checked backup copies of /etc/passwd, shadow, gshadow and group files but could not revive the old username. However, thankfully all the applications are working in the new user account and all the data is there in the older folder. I think I will get on with new username and tweak the settings again as they become needed. Thanks for your help.
Last edited by rnarch (2013-09-28 12:38:51)
Offline
Pages: 1