su: cannot set user id: Resource temporarily unavailable

Started by johnc, July 24, 2014, 01:55:25 PM

Previous topic - Next topic

johnc

Hi forum members

on my VPS i have created a wheel user so that i can first login with that user & then switch as root. But, i get an error as in subject.

anybody who can help ?

JohnC

Administrator

Hi John,

Welcome to MilesWeb Community Forums.

Usually such issues occur on a VPS with OpenVZ installed. Add the lines below in /etc/security/limits.conf & this should fix it for you.

Quote*          soft     nproc          2047
*          hard     nproc          16384
*          soft     nofile         1024
*          hard     nofile         65536

Now try switching as root user. Hope this helps.
MilesWeb - Your Hosting, Our Responsibility!
Buy Web Hosting Plans | Managed VPS with 50% Discount

johnc