Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-04-2012, 02:37 AM   #1
LQ Newbie
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Remote login even if user account has been deleted


My question is: will a user be able to login remotely even though his account was deleted on the local machine but his home directory and login shell still exists?

Thank you.
Old 11-04-2012, 03:28 AM   #2
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,273

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
Not if you used a program like userdel.
Old 11-04-2012, 06:14 AM   #3
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
It sounds a case like you've removed the account entry from /etc/passwd, but it's home dir. has not yet deleted. In any case, that user cannot login, because user identification is done by the system by reading /etc/passwd file. When it won't get user's entry there, it won't allow such non-exxisting user to login.
One more thing, is there using any name services like NIS or NIS+ for central managment of the user accounts, or you're managing them locally, on every system?

Last edited by shivaa; 11-04-2012 at 06:16 AM.
Old 11-04-2012, 06:51 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The user's home directory is----just a directory. In /home, you could create all manner of directories, but that would not create users.

I don't understand the part about a "login shell". When creating a user, you specify what shell is to be used when that person logs in. If the user is NOT logged in, then I don't think anything special is there.

This is one of those situations where we need to ask: "What problem are you trying to solve?"


home directory, remote login

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
how do I allow remote access to a server running on my user account? bvn Linux - Networking 8 07-16-2010 10:50 PM
Recover files from a Deleted User account cekflores Linux - Newbie 4 03-06-2008 01:15 AM
How do I check a user account to see when the last login was? jdcsyoung Linux - General 2 02-11-2008 02:26 PM
Setting up an account to allow remote login. pritchardtom Linux - Networking 1 10-05-2006 05:18 PM
can't login as user account tchoua Mandriva 23 02-23-2005 03:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration