hack attacks testing how to conduct your own security phần 10

Hai lệnh, sử dụng một trong hai. Có được ngày / thời gian từ phần cứng máy tính (thời gian thực, chạy bằng pin) đồng hồ. Bạn cũng có thể sử dụng một trong các lệnh này để thiết lập đồng hồ phần cứng, nhưng setclock có thể được đơn giản. Ví dụ, | Linux Unix Shortcuts and Commands 487 clock hwclock Two commands use either one. Obtain the date time from the computer-hardware real-time battery-powered clock. You can also use one of these commands to set the hardware clock but setclock may be simpler. For example hwclock systohc utc sets the hardware clock in UTC from the system clock. who Determines the users logged on the machine. w Determines who is logged on the system and finds out what they are doing finds out their processor usage and so on. It is a handy security command. rwho -a remote who Determines users logged on other computers on your network. The rwho service must be enabled for this command to run. If it isn t run Setup Red Hatspecific as root to enable rwho. finger user_name System info about a user. Try finger root. You can use finger with any networked computer that exposes the finger service to the world. For example finger @finger . last Shows listing of users last logged in on your system. It is really a good idea to check it from time to time as a security measure on your system. lastb last bad Shows the last bad . unsuccessful login attempts on your system. If it doesn t work on your system try starting it with the following chmod o-r var log btmp history more Show the last 1 000 or so commands executed from the command line on 488 Appendix A the current account. The more causes the display to stop after each screenful. To see what another user was doing on your system log in as root and inspect his her history. The history is kept in the file .bash_history in the user home directory so yes it can be modified or erased . uptime Shows the amount of time since the last reboot. ps print or process status Lists the processes currently run by the current user. ps axu more Lists all the processes currently running even those without the controlling terminal together with the name of the user who owns each process. top Keeps listing the currently running processes on your computer

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.