|
|
| TopPage > Linuxセキュリティ関係 |
Contents
|
|
.... # Uncomment the following line to implicitly trust users in the "wheel" group. #auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. auth required /lib/security/$ISA/pam_wheel.so use_uid (←ここのコメントを外す) .... |
|
.... wheel:x:10:root,user1,user2 .... |
#/etc/init.d/xinetd restart |
|
#/etc/rc.d/init.d/inet restart (以下、メッセージ) Stopping INET services: [ OK ] Starting INET services: [ OK ] |
| net.ipv4.icmp_echo_ignore_broadcasts = 1 |
| /sbin/sysctl -p |
|
↓defaultの設定 # Users that are not allowed to login via ftp root bin daemon adm lp sync shutdown halt news uucp operator games nobody ←ここにftpを使わせたくないユーザ名を追記していく |
|
.... LABEL=/home /home ext3 defaults,usrquota 1 2 .... |
|
#mount /home -o remount,rw |
|
#/sbin/quotacheck -uv /home |
| option | discription |
| u | ファイルシステムのユーザクォータだけチェック |
| g | ファイルシステムのグループクォータだけチェック |
| v | 詳細表示 |
|
#/sbin/quotaon /home |
|
#/usr/sbin/edquota -u -t (オプションuは、 ユーザ用、gならばグループ用) |
|
Grace period before enforcing soft limits for users: Time units may be: days, hours, minutes, or seconds
|
|
#/usr/sbin/edquota -u human (オプションuは、 ユーザ用、gならばグループ用) |
Disk quotas for user human (uid 500):
|
|
#/sbin/quotaon -p /home group quota on /home (/dev/hdxx) is off user quota on /home (/dev/hdxx) is on |
| #/usr/sbin/repquota |
#visudo |
ippan hostname=/sbin/shutdown -h now |
%hitobito hostname=/sbin/shutdown -h now |
$sudo /sbin/shutdown -h now password: (←パスワードを聞いてくる) |
in.telnetd:192.168.10. 192.168.11. <-192.168.10.xxxの全て、192.168.11.xxxの全てに対しtelnetを許可 in.rlogind:192.168.10. 192.168.11. <-192.168.10.xxxの全て、192.168.11.xxxの全てに対しrloginを許可 in.proftpd:192.168.10. <-192.168.10.xxxの全てに対しftpを許可 gdm:192.168.11.11 192.168.12.32 <-192.168.11.11、192.168.12.32に対しXDMCPを許可 sshd:192.168.11.11 192.168.12.36 <-192.168.11.11、192.168.12.36に対しsshを許可 vsftpd:192.168.1.100 192.168.1.200 <-192.168.1.100、192.168.1.200に対しvsftpを許可 |
ALL:ALL <-全てのサービスに対して全てのIPアドレスからのアクセスを許可しない |
[host name]$/sbin/ifconfig -a
eth0 Link encap:Ethernet HWaddr mm:mm:mm:mm:mm:mm
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:xxx.xxx.xxx.xxx
...............
...............
...............
...............
|
[host name]$ping -c 3 another machine 64 bytes from another machine (xxx.xxx.xxx.xxx): icmp_seq=1 ttl=64 time=0.001 ms 64 bytes from another machine (xxx.xxx.xxx.xxx): icmp_seq=1 ttl=64 time=0.001 ms 64 bytes from another machine (xxx.xxx.xxx.xxx): icmp_seq=1 ttl=64 time=0.001 ms [host name]$ |
[host name]$/sbin/arp -a another machine (XXX.XXX.XXX.XXX) at mm:mm:mm:mm:mm:mm [ether] on ethX [host name]$ |
| TopPage > Linuxセキュリティ関係 |