Unable to Use Sudo

Unable to Use Sudo

I'm connecting via SSH to a Centos 7 machine. I have a user that cannot perform any command as super user. If I do:

$ sudo ls /

I get the error: "sudo: unable to fork: Resource temporarily unavailable". The user is a member both of the sudo and the admin groups. When I enter the groups command, I get: "myuser sudo admin", and my /etc/sudoers file has the lines:

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

So what could be the problem? Thanks

1 Answer

You are experiencing some kind of resource limitation. This thread could help you.

Try

ulimit -Sn unlimited && ulimit -Sl unlimited
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.