MilesWeb Hosting Forum

Web Hosting Main Forums => Web Hosting => Topic started by: johnc on July 24, 2014, 01:55:25 PM

Title: su: cannot set user id: Resource temporarily unavailable
Post by: johnc on July 24, 2014, 01:55:25 PM
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
Title: Re: su: cannot set user id: Resource temporarily unavailable
Post by: Administrator on July 25, 2014, 12:42:11 PM
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.
Title: Re: su: cannot set user id: Resource temporarily unavailable
Post by: johnc on July 28, 2014, 05:58:43 PM
Thanks mate ! That made the trick. Cheers.