I have a xen HVM vps and I'm trying to raise the hard and soft file limits for nobody at boot time. I'm using Ubuntu 10.04.3 and inside /etc/security/limits.conf I have:
nobody soft nofile 10000 nobody hard nofile 30000
But when I check the file limits are still the default 1024:
su nobody -c 'ulimit -Hn' 1024 su nobody -c 'ulimit -Sn' 1024
What is the right way of raising the file limits for Ubuntu?