Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Bảo mật trên Linux (http://quantrinet.com/forum/forumdisplay.php?f=157)
-   -   Sử dụng ulimit để tăng cường bảo mật cho hệ thống (Using ulimit ) (http://quantrinet.com/forum/showthread.php?t=4418)

hoctinhoc 10-12-2009 11:02 PM

Sử dụng ulimit để tăng cường bảo mật cho hệ thống (Using ulimit )
 


Sử dụng ulimit để tăng cường bảo mật cho hệ thống (Using ulimit )



This week's tip introduces ulimit -- a command to define system resource limits. As a user, you can create self-imposed limits to prevent processes from taking up too much CPU time or memory.
To view all available resource limits, type ulimit -a. This command shows the limits the system administrator has imposed on your account. You can lower these limits, but you can't increase them. Many accounts will have 'unlimited' listed. If so, here are some useful things you can do with ulimit:


Code Listing 5.1: Preventing core files



% ulimit -c 0
Code Listing 5.2: Preventing Files larger than 25 MB

% ulimit -f 25600
Since ulimit is a builtin shell command, see your shell manual page for more information (e.g. man bash, man zsh, etc.).

Note:
System administrators can impose system-wide limits using /etc/limits. See man limits for more information.




Nguon: http://www.gentoo.org/news/en/gwn/20...newsletter.xml




:battay:


Bây giờ là 07:25 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.