Re: only root allowed login ...
Herta Van den Eynde <[email protected]> Sun, 12 Jun 2011 15:56:10 +0200
| Newsgroups | org.kernel.vger.linux-admin |
|---|---|
| Message-ID | <[email protected]> |
Also check out the permissions of the directories above the users home directories.=A0 E.g., "ls -ld /", "ls -ld /home/". Run "last" and if the logins apear there, also check the content of the /etc/profile and ~account-that-cannot login/.profile. On 12 June 2011 02:07, Gerardo Juarez-Mondragon <[email protected]= m> wrote: > > FTP and smtp do not require a full shell. Telnet does. The main > difference between an ftp-only or mail-only user and a full system > user is that the latter has a shell defined in its corresponding line > in /etc/passwd. The others would have something like /sbin/nologin. > > If you can log in to ftp and transfer files back and forth, but not > login with a shell, my guess is the user's =A0directory is not > accessible. This could be due to a number of things: > > - the user's directory has been erased, or was changed in > /etc/passwd. It could also have changed ownership (root can do that > and it is not difficult to have it happen accidentally). > > - the shell field in /etc/passwd may have been erased or changed for > that user, =A0so the account is ftp-only. > > Other variants that escape me now could be the cause, but the > fundamental issue seems to be the impossibility to create a shell and > assign a working directory to the account. > > Gerardo Juarez > > > On Sun, Jun 12, 2011 at 12:42 AM, Markus Ko=DFmann <mkossmann_ml1@gmx= =2Ede> wrote: > > Am Samstag, 11. Juni 2011 schrieb terry white: > >> ... ciao: > >> > >> =A0 =A0 =A0all of a sudden, i am only able to login as root. =A0th= is is not > >> something i was trying to accomplish, and at a loss in figuring ou= t > >> how i did. =A0anyway. > >> > >> =A0 =A0 =A0as a given, login as a valid user, with correct passwor= d, terminated > >> immediately, with a new login prompt. =A0invalid login attempts it= erate > >> until a new session initiated. > >> > >> =A0 =A0 =A0ftp, and smtp allowed, telnet fails. > >> > >> =A0 =A0 =A0i'm not seeing anything mentioned in the logs with rega= rd to failed > >> normal user login. =A0 i'm at a loss as to where i might start loo= king. > >> > >> =A0 =A0 =A0any thoughts, suggestion would be much appreciated ... > > hard disk full ? > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-adm= in" in > > the body of a message to [email protected] > > More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm= l > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-admin= " in > the body of a message to [email protected] > More majordomo info at =A0http://vger.kernel.org/majordomo-info.html -- "Life on Earth may be expensive, =A0but it comes with a free ride around the Sun." -- To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html