Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 1998 12:50:02 +0000
From:      Claudio Eichenberger <claudio@nty.com>
To:        Studded <Studded@dal.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   No login except ftp access
Message-ID:  <3604F9FA.41C67EA6@nty.com>
References:  <360382D7.167EB0E7@nty.com> <3603FEA0.C071A9D9@dal.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Doug:

Hi,

Thanks for your answer.

Actually I wanted to prevent a login for certain users by writing:

#cat ~user/.login
	exec logger sorry login disabled - ftp still works

where ~user/.login is owned by root:wheel and has permissions 0444

*******
But I found better by creating a class in /etc/login.conf let's call it
no_login which has has a field called nologin=/etc/no_login . Any user I
do not want to login has an /etc/master.passwd entry something like:
user:pwd:1001:1001:no_login:0:0:User Login Disabled:/home/user:/bin/csh

Why did I create a /etc/no_login file instead to use the ordinary
/etc/nologin. Well, this way the user may still access the host by ftp,
because ftp access is disabled as soon as you have an /etc/nologin file.

Yours

:Claudio	http://www.jted.com/


Studded wrote:
> 
> Claudio Eichenberger wrote:
> >
> > Hi:
> >
> > Question about a telnet login without reading the user ~/.login file.
> >
> > Suppose that a user has an account using as login shell /bin/csh . Do
> > you know whether there exists any possibility by telnet to provoke that
> > the user's ~/.login will not be read during login ?
> 
>         There is an option in the man page to avoid reading ~/.cshrc, I'm not
> sure if it deals with .login or not, you should test it.
> 
> > Let's discard the trivial answer to install another login shell.
> 
>         csh is actually a very poor choice for an interactive shell. I'm not
> sure why you are trying to avoid reading ~/.login, however I can't
> imagine a scenario where a user couldn't simply read it in after they
> are logged in.
> 
> Good luck,
> 
> Doug

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3604F9FA.41C67EA6>