Limit of open files mistake: set to 0

By blunder I modified the limits.conf documents and also set limit open documents (fd) to 0 for the origin customer, just how can I change this (can not login in the equipment currently) some sort of secure setting or something like that?

centos 5.3

2022-06-07 14:34:08
Source Share
Answers: 3

You do not require boot CD to modify grub food selection. Boot customarily till grub boot food selection shows up, select grub food selection access, press 'e', modify line that begins with 'kernel ', press 'enter', press 'b'.

2022-06-07 16:01:12

Assuming that you have physical accessibility to the equipment.

I believe you will not have the ability to repair it by starting to solitary customer.

So order on your own a Linux LiveCD (any kind of distro will certainly do, I favor Gentoo's).

Boot from it, place your neighborhood CentOS origin dividing, modify the called for documents, umount and also reboot.

That need to be it.

2022-06-07 14:55:09

A choice to making use of a boot CD is to reach the grub boot food selection and also modify the bit line to add "init =/ bin/sh". With Ubuntu you require to remove "quiet" and also "splash" from your bit line also. Currently boot this changed boot alternative. You need to get unloaded right into a shell. You require to remount your origin documents system read - write making use of:

# mount -o remount,rw /

Mount any kind of added filesystems. Modify your limits.conf and also wait. Remount the filesystem read just:

# mount -o remount,ro /

Throw in a "sync" command simply to be on the secure side, after that reset the computer system. Currently you need to boot generally.

2022-06-07 14:54:30