Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2005 15:18:14 -0300 (EST)
From:      <scuba@centroin.com.br>
To:        =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= <gabor.kovesdan@t-hosting.hu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: login.conf limits
Message-ID:  <Pine.BSI.4.33.0506121514280.18100-100000@hypselo.centroin.com.br>
In-Reply-To: <42AAC108.7060000@t-hosting.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

=09What is shown in the logs? Why the connection failed?
=09Show the passwd entry for that user, or any other info the help
us.

- Marcelo Souza

On Sat, 11 Jun 2005, K=F6vesd=E1n G=E1bor wrote:

|Hello,
|
|I've done a new class "shuser" with some limits, rebuild the cap
|database and made a new user "tester" with adduser. When it asked for
|the login class, I specified shuser, and tried to login with ssh, but it
|failed. My shuser class:
|
|shuser:\
|        :passwd_format=3Dmd5:\
|        #:passwordtime=3D90d:\
|        #:idletime=3D30m:\
|        #:login-retries=3D3:\
|        #:sessionlimit=3D1:\
|        :copyright=3D/etc/COPYRIGHT:\
|        :welcome=3D/etc/motd:\
|        :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK,FTP_PASSIVE_MODE=3DYES:=
\
|        :path=3D/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin
|/usr/local/bin /usr/X11R6/bin ~/bin:\
|        #:lang=3Dhu_HU.ISO8859-2:\
|        #:charset=3Diso-8859-2:\
|        #:ftp-chroot=3Dtrue:\
|        :nologin=3D/var/run/nologin:\
|        :cputime=3Dunlimited:\
|        :datasize=3Dunlimited:\
|        :stacksize=3Dunlimited:\
|        #:memorylocked=3D15m:\
|        #:memoryuse=3D10m:\
|        :filesize=3Dunlimited:\
|        #:coredumpsize=3D5m:\
|        #:openfiles=3D3:\
|        #:maxproc=3D3:\
|        #:sbsize=3D512k:\
|        #:vmemoryuse=3D5m:\
|        :priority=3D0:\
|        :ignoretime@:\
|        :umask=3D027:
|
|After the first try I inserted those hashmarks before the modified
|lines, but it still doesn't work. Did I make something wrong?
|
|Cheers,
|
|G=E1bor K=F6vesd=E1n
|
|scuba@centroin.com.br wrote:
|
|>Hi,
|>
|>=09After doing the modfications on login.conf, run:
|>
|>=09# cap_mkdb /etc/login.conf
|>
|>=09Define the class for each user in passwd, using vipw. The class is
|>the 5th field, in this example the class was defined as "limiteduser":
|>
|>zoruega:$1$50258.20$DdcXReDR/lhZI/1CjjEEd0:102:201:limiteduser:0:0:Zorueg=
a Linfo,,,,X:/nonexistent:/bin/sh
|>
|>
|


- Marcelo





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.4.33.0506121514280.18100-100000>