[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to limit it ?



> > > Playing BOFH is not always justified :))
> > You are right, my question is:
> > If in /etc/passwd file user has in shell field an bash shell, and if s/he
> > after login will change his/her shell environment (limits) that is in bash
> > will be in ksh, etc.. ? 
> If you're using lshell, yes. If you're using ulimit, no. If you use PAM,
> yes.
So why lshell + PAM doesn't work ?

>  
> > > > > and setup a cronjob that will remake the database every hour or so, and
> > > > > remember to remake the database every time you add a new user :)).
> > > > ... partial sollution ;) i have a lot of job. Better is to write module or
> > > Why a partial solution? If you use adduser, then create
> > > /usr/local/sbin/adduser.local script that invokes 'make -C /var/lib/misc',
> > > setup a crontab and forget about the thing...
> > And all programs (ssh, pop, ...) will work ?
> Yes. They all use getpwent or derivatives and they in turn use the NSS
> libaries - that's, of course, if you use glibc. So they will work
> flawlessly.
It looks good :)

>  
> > > What for? kernel implements everything you need (man setrlimit), you just
> > > need a program to set the limits for you. Test the debian/potato PAM - it
> > > does it allright.
> > I've tested PAM with lshell and it wasn't working ...
> Hmm... it works for me just fine.
Are you sure: PAM + lshell (i'm using potato distribution )

G.



Reply to: