How to fix su USER Fails With "su: cannot create child process: Resource temporarily unavailable" Error in CloudLinux?

You may face the below error while switching the accounts using su command.

su accutest
su: cannot create child process: Resource temporarily unavailable

If you are facing this issue that means CageFS (virtual file system per user) is not enabled for the same user due to that shell access is not available to the user's environment.

Please refer to the following commands to enable CageFS.

/usr/sbin/cagefsctl --enable accutest
Updating users ...

Run the su command again and now you shouldn't face the same issue again.

Want to know the difference between su and sudo user? Please refer to Linux > Sudo vs Su user for more details.

Related Articles

How to Disable SELinux on CentOS?

SELinux called Security-Enhanced Linux is a security module of Linux kernel which provides...

How to Change LiteSpeed WebServer Port on cPanel?

Please refer to the following steps to change the LiteSpeed WebServer Port on cPanel. Login to...

How to set up Apache password Authentication on Ubuntu 18.08?

On the internet, almost all the applications have some parts which should be protected with a...

How to use the Rsync command in linux?

Rsync is an important command in Linux and used to synchronize or copy the files and directories...

Difference Between su and sudo and How to Configure sudo in Linux VPS.

As we know Linux provides much better security. You can set user management policy and user...

  • 0 Users Found This Useful

Was this answer helpful?