The entire content of /etc/security/limits.conf is commented.
Content of /etc/sudoers :
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset,timestamp_timeout=0
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
user1 debian=(user2) NOPASSWD: ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
Sorry, forget what I wrote, I was mixing up sudo with su - I come back when I have checked it out
---------- Post updated at 04:10 PM ---------- Previous update was at 03:46 PM ----------
ulimit is a shell builtin on some OSes and in that case - you can't use shell builtins via sudo as far as I know.
If it is an option for you, you might want to change your limits permanent for some user via editing /etc/security/limits.conf or whatever file it is on your OS. Don't forget to relog to make changes for that user/shell active.