Click to See Complete Forum and Search --> : Question about the login manager and deleted users.
chimera
08-22-2001, 02:55 AM
I've got Red Hat 7.1 and I noticed something kind of odd after deleting a user: the login screen still recognizes the user name and changes the session type to what that user last used! Is there any way to stop that from happening? Also, I had set up ADSL, but I'm about to get rid of this machine and I don't want my user name and password to stay on the computer. The problem is that if I try to delete either field from the KDE control panel, the "OK" button disappears. I could put something bogus in there, but I'd rather just be able to delete it. How do I do that? Thanks. ~:o)
ThePyr0x
08-22-2001, 01:31 PM
i cant help ya, but i say u just format b4 you get rid of the puter
chimera
08-22-2001, 09:45 PM
Well, I would, but I'm returning the machine to the store for a refund and reformatting really isn't an option. Thanks for trying though.
How did you delete the user? Use the command
prompt# less /etc/passwd
to scan the passwd file and check to see if the user is still listed there. Another, quicker way would be to use grep to search for the username, e.g.
prompt# grep 'joeblow' /etc/passwd
...where of course joeblow is the username you intended to delete. If the name is still there, more than likely the user can still login. Use the command 'vipw' or edit the passwd file with your favorite editor to delete the entry for good.
Grep might come in handy for the other problem, getting rid of your ISP username and password. Two ways to do this:
prompt# grep -r 'username' /
..where username is your ISP's login name you want to find and delete. You can also do he same thing with your password. These are probably just stored in a file someplace, and you can delete or edit the file as root. I might add that it will probably take awhile to search the system for that particular expression so be patient.
[ 22 August 2001: Message edited by: bdl ]
chimera
08-22-2001, 10:44 PM
Cool, thanks! Well, the login does fail for the deleted user and finger says the user doesn't exist, but I didn't even think about trying grep! I'll give it a shot and see what happens. Thanks again! ~:o)