Created
November 19, 2013 20:46
-
-
Save mdmarek/7552262 to your computer and use it in GitHub Desktop.
Find the nofile limit for a user, which may or may not have a valid user shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USR=$1 | |
su $USR --shell /bin/bash --comman "ulimit -n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment