On 08/22/11 06:03, Damon Getsman wrote:
> Alright, so restoring the contents of /etc/login.conf has, indeed, fixed my
> ability to login via whatever means and use sudo. Quite honestly I don't
> know how all of those lines got deleted from it, unless I left it open in
> vim and the cat jumped on the keyboard while I was out for a little bit or
> something.
>
> Anyway, now that I restored it and everything is working, I again attempted
> to follow these instructions given when starting up chrome:
> -=-=-=-=-=-
> You should make the following changes for your login class in
> /etc/login.conf
> (you will need to logout and login for these to take effect).
> - increase datasize-max to at least 716800.
> - increase openfiles-max to at least 400.
> -=-=-=-=-=-
>
> Which results in the follow /etc/login.conf file:
> -=-=-=-=-=-
> default:\
> :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin:\
> :umask=022:\
> #:datasize-max=512M:\
> :datasize-max=716800:\
Hmmm...
"
size A number which expresses a size. By default, the size is
specified in bytes. It may have a trailing b, k, m, g or t to
indicate that the value is in 512-byte blocks, kilobytes,
megabytes, gigabytes, or terrabytes, respectively.
"
So did you just set your maximum datasize to 716.8 kilobytes? :-)
> :datasize-cur=512M:\
> :maxproc-max=256:\
> :maxproc-cur=128:\
> :openfiles-cur=128:\
> :openfiles-max=400:\
> :stacksize-cur=4M:\
> :localcipher=blowfish,6:\
> :ypcipher=old:\
> :tc=auth-defaults:\
> :tc=auth-ftp-defaults:
>
> #
> # Settings used by /etc/rc and root
> # This must be set properly for daemons started as root by inetd as well.
> # Be sure reset these values back to system defaults in the default class!
> #
> daemon:\
> :ignorenologin:\
> :datasize=infinity:\
> :maxproc=infinity:\
> :openfiles-cur=128:\
> :stacksize-cur=8M:\
> :localcipher=blowfish,8:\
> :tc=default:
>
> #
> # Staff have fewer restrictions and can login even when nologins are set.
> #
> staff:\
> :datasize-cur=512M:\
> :datasize-max=infinity:\
> :maxproc-max=512:\
> :maxproc-cur=128:\
> :ignorenologin:\
> :requirehome@:\
> :tc=default:
>
> #
> # Authpf accounts get a special motd and shell
> #
> authpf:\
> :welcome=/etc/motd.authpf:\
> :shell=/usr/sbin/authpf:\
> :tc=default:
> -=-=-=-=-=-=-
> (with the comments at the beginning removed in order to save cutting&
> pasting)
>
> Anyway, despite the changes that I've made in datasize-max and the addition
> of the openfiles-max setting, I'm still receiving the error message from
> chrome and unable to use it properly due to too many open temp files.
>
> Anybody have any suggestions for me or any input on whether or not I
> modified /etc/login.conf properly?
First question to ask: Did you log out and log in again? login.conf values are
only applied on proper logins.
Also, if you have a database version of the file (/etc/login.conf.db), don't
forget to take appropriate actions to update it.
/Alexander
>
> Much appreciated.
>
> -Damon Getsman