Problems setting ulimit fize size for user. File size exceeded
Hi all,
New Slacker in town! I apologize in advance for any mistakes/easy solutions that I somehow forgot. Slackware has been a journey, but I'm loving it. I've search Google and forums for a few days now, but I'm having a really hard time figuring out how to set the ulimit for file size for a user. Currently, I cannot download a file that's more than 252MB (due to ulimit -f being set to 262144?) while I'm logged into my user. The error "File size limit exceeded" outputs after 252MB. As root, if I run Code:
ulimit -f unlimited Code:
ulimit -a |
Which version of Slackware are you using?
|
-Current
|
I'm not running -current anywhere at the moment; I will say that Slackware64 14.2 defaults to...
Code:
$ ulimit -a |
That's odd. I did change ulimit -Hn to 524288 for Esync purposes but that was the only value I changed. I tried resetting it and I didn't see a change. Maybe I should just reinstall and stick with 14.2 for now until I know a little more.
|
man initscript
I have an initscript to increase the amount of locked memory available - it contains the line 'ulimit -l unlimited'. My guess is that you could do the same with file size - include a line like 'ulimit -f XXXX' (then login again). chris |
Quote:
|
You can try to track down first process with this limit by analyzing "/proc/PID/limits" files.
|
Quote:
BTW have you tried downloading the file as root - just to check it isn't some user setting that is to blame? chris |
Quote:
As root, you cannot download/transfer files over 252MB UNTIL you run 'ulimit -f unlimited'. Once you set this, everything runs as normal. However, once you log out, you lose that settings and it has to be re-run next root log-in. |
Quote:
chris |
I did use that as the basis (I used it from the a ulimit man page) and it made no difference. I deleted the initscript earlier to see if that would be the reason but nothing has changed. The only values I had set in the initscript were 'ulimit -Hn XXXX' and 'ulimit -c XXXX'. I have confirmed the initscript is removed and there are not lagging limit files.
|
Quote:
chris |
I did try with 'ulimit -f unlimited' is what I meant, but I did it again with output of initscript and ulimit -a
Code:
ulimit -a Code:
cat /etc/initscript |
What would have been setting -f 262144 in the first place? In Slackware-current that parameter is unlimited by default.
Since it's happening for root (all users), it won't be in your user shell configuration files, so check /etc/profile, and all the files in /etc/profile.d. Maybe something you installed dropped a .sh file in there or something. (you mentioned /etc/profile.d/limits.conf... that's hardly an appropriate place for a .conf file, it's for shell scripts and /etc/security/limits.conf is only for PAM distros. There's no limits.sh in there by default) |
All times are GMT -5. The time now is 12:58 PM. |