MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: su: cannot set user id: Resource temporarily unavailable  (Read 7806 times)

0 Members and 1 Guest are viewing this topic.

Offline johnc

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
su: cannot set user id: Resource temporarily unavailable
« 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

MilesWeb Hosting Forum

su: cannot set user id: Resource temporarily unavailable
« on: July 24, 2014, 01:55:25 PM »

Offline Administrator

  • Chinmay Dingore
  • Administrator
  • Full Member
  • *****
  • Posts: 135
  • Karma: +1/-0
    • View Profile
    • MilesWeb Internet Services Pvt Ltd
Re: su: cannot set user id: Resource temporarily unavailable
« Reply #1 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.
MilesWeb.com - Your Hosting, Our Responsibility!
Unlimited Hosting Plans | Managed VPS with 10% Discount

Offline johnc

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: su: cannot set user id: Resource temporarily unavailable
« Reply #2 on: July 28, 2014, 05:58:43 PM »
Thanks mate ! That made the trick. Cheers.