help with login.conf session limiting

Tomasz Konefal tkonefal at compt.com
Fri Nov 28 07:19:05 PST 2003


Farid Hajji wrote:
> On Friday 28 November 2003 04:47 am, Julian C. Dunn wrote:
>>I wonder if any of you have ever tried to restrict the # of simultaneous
>>sessions on a FreeBSD box using login.conf. I'm trying to use the
>>'sessionlimit' but it appears to be doing diddly squat. The class in
>>question is the following "subshell" one:
> 
> login.conf is only used by login(1), not by sshd.
> Try setting UseLogin in /etc/ssh/sshd_config
> if you want sshd to use login, and therefore these
> settings. Beware: this is NOT recommended.

PAM has all sorts of functionality that you may be able to strap on 
here.  examples here:
http://www.samag.com/documents/s=1161/sam0009a/0009a.htm

cheers,
   twkonefal


-- 
Tomasz Konefal
Systems Administrator
Command Post and Transfer Corp.
416-585-9995 x.349



More information about the freebsd-stable mailing list