Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 10-12-2009, 11:02 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
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




  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 05:53 PM. 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.