Date: 14 Jun 2005 10:11:31 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: freebsd-questions@freebsd.org Subject: Re: login.conf limits Message-ID: <447jgxyqng.fsf@be-well.ilk.org> In-Reply-To: <42AAC108.7060000@t-hosting.hu> References: <Pine.BSI.4.33.0506101902240.22252-100000@hypselo.centroin.com.br> <42AAC108.7060000@t-hosting.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
Please don't top-post. K=F6vesd=E1n G=E1bor <gabor.kovesdan@t-hosting.hu> writes: > Hello, >=20 > 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: >=20 > 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: >=20 > After the first try I inserted those hashmarks before the modified > lines, but it still doesn't work. Did I make something wrong? > Lowell Gilbert wrote: > > >What happens if testuser is assigned the default login class? Does > >the login still fail? [If so, it has nothing to do with your login > > settings.] > > In this case it works. Okay, so it is the login settings. I'm a little suspicious of commenting out the lines in the middle of the settings. I think that may comment out the continuation character, ending the setting at that point. Try moving those lines out of the way and rebuild the database. It also might be a good idea to include the default entry explicitly at the end, to make sure you know you have good defaults.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?447jgxyqng.fsf>