regarding command "ulimit"
--------------------------------------------------------------------------------
Hi i am totally new to this forum as well as linux... as per my knowledge by using "ulimit" we can restrict the size of file that can create by user. but in one folder i make the ulimit as 1kb by "ulimit -f 1" but still i can create the file with more than 1kb .. i need completely user need to prevent for creating file in the particular folder [sorry for bad english] |
Quote:
If you want the user to be able to create files smaller that 1K, then you can edit /etc/security/limits.conf and add the line: Code:
@username hard fsize 1 |
dude it is not working for me.......
i made the change as per your instructions... NB : i enterd as "root" user |
You can try
Code:
username hard fsize 1 In redhat it works both ways, but I've tested it on a Suse box and it's not working with the "@" What distro are you using anyway? |
You also have to add the line
Code:
session required /lib/security/pam_limits.so See the following link for more details : http://www.kernel.org/pub/linux/libs...x-PAM_SAG.html |
All times are GMT -5. The time now is 10:06 PM. |