finger 실습을 하고 싶은데
문서에는 /etc/xinetdd/finger 파일 수정하라고 하는데 없다.
[root@centos etc]# ls /etc/xinetdd/finger
ls: cannot access /etc/xinetdd/finger: 그런 파일이나 디렉터리가 없습니다
그냥 막무가내로 설치하고 확인해보았다.
[root@centos etc]# yum -y install xinetd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.kakao.com
* extras: mirror.kakao.com
* updates: mirror.kakao.com
...
[root@centos etc]# whereis xinetd
xinetd: /usr/sbin/xinetd /etc/xinetd.d /etc/xinetd.conf /usr/share/man/man8/xinetd.8.gz
[root@centos etc]# ps -ef | grep xinet
root 26906 30952 0 09:47 pts/1 00:00:00 grep --color=auto xinet
[root@centos etc]# systemctl enable xinetd
[root@centos etc]# systemctl restart xinetd
[root@centos etc]# ps -ef | grep xinet
root 27116 1 0 09:50 ? 00:00:00 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
root 27125 30952 0 09:50 pts/1 00:00:00 grep --color=auto xinet
[root@centos etc]# ls /etc/xinetdd/finger
ls: cannot access /etc/xinetdd/finger: 그런 파일이나 디렉터리가 없습니다
여전히 finger는 없다.
[root@centos etc]# yum -y install finger
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.kakao.com
* extras: mirror.kakao.com
* updates: mirror.kakao.com
Resolving Dependencies
--> Running transaction check
---> Package finger.x86_64 0:0.17-52.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================
Installing:
finger x86_64 0.17-52.el7 base 25 k
Transaction Summary
============================================================================================================================================
Install 1 Package
Total download size: 25 k
Installed size: 32 k
Downloading packages:
finger-0.17-52.el7.x86_64.rpm | 25 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : finger-0.17-52.el7.x86_64 1/1
Verifying : finger-0.17-52.el7.x86_64 1/1
Installed:
finger.x86_64 0:0.17-52.el7
Complete!
[root@centos etc]#
xinetdd 는 오타였다. xinetd.d 라고 바꾸자
[root@centos etc]# ps -ef | grep finger
root 27558 30952 0 09:57 pts/1 00:00:00 grep --color=auto finger
[root@centos etc]# systemctl enable finger
Failed to execute operation: No such file or directory
[root@centos etc]# systemctl restart finger
Failed to restart finger.service: Unit not found.
[root@centos etc]# whereis finger
finger: /usr/bin/finger /usr/share/man/man1/finger.1.gz
finger 를 설치했는데 서버가 설치된 것이 아닌갑다.
[root@centos etc]# whereis finger
finger: /usr/bin/finger /usr/share/man/man1/finger.1.gz
[root@centos etc]# finger
Login Name Tty Idle Login Time Office Office Phone Host
u u *:0 Jul 21 20:40 (:0)
u u pts/0 1d Jul 21 20:40 (:0)
u u pts/1 Jul 22 16:43 (192.168.35.124)
[root@centos etc]# finger root
Login: root Name: root
Directory: /root Shell: /bin/bash
Last login 토 7월 22 17:20 (KST) on pts/1
Mail last read 일 7월 23 07:07 2023 (KST)
No Plan.
finger 클라이언트가 설치된 것이다.
[root@centos etc]# yum install finger*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.kakao.com
* extras: mirror.kakao.com
* updates: mirror.kakao.com
Package finger-0.17-52.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package finger-server.x86_64 0:0.17-52.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================
Installing:
finger-server x86_64 0.17-52.el7 base 20 k
Transaction Summary
===================================================================================================================================================================
Install 1 Package
Total download size: 20 k
Installed size: 20 k
Is this ok [y/d/N]: y
Downloading packages:
finger-server-0.17-52.el7.x86_64.rpm | 20 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : finger-server-0.17-52.el7.x86_64 1/1
Verifying : finger-server-0.17-52.el7.x86_64 1/1
Installed:
finger-server.x86_64 0:0.17-52.el7
Complete!
[root@centos etc]# whereis finger
finger: /usr/bin/finger /usr/share/man/man1/finger.1.gz
[root@centos etc]# whereis finger-server
finger-server:[root@centos etc]# pwd
/etc
[root@centos etc]# ls /etc/xinetd.d
chargen-dgram chargen-stream daytime-dgram daytime-stream discard-dgram discard-stream echo-dgram echo-stream tcpmux-server time-dgram time-stream
[root@centos etc]# ps -ef | grep finger
root 28399 30952 0 10:10 pts/1 00:00:00 grep --color=auto finger
[root@centos etc]# systemctl restart finger-server
Failed to restart finger-server.service: Unit not found.
finger-server 를 설치한 것 같은데 이상한걸..
/etc/xinetd.d/finger 가 없다. 문제가 있다고 ABRT 알림이 온것일까?
재부팅을 해보자.
ACPI 종료도 안된다.
'정보보안기사 > linux' 카테고리의 다른 글
[실습] DNS 서버 설치#2 (0) | 2023.07.23 |
---|---|
[실습] 크론탭 (0) | 2023.07.23 |
[실습] DNS 서버 설치 (0) | 2023.07.22 |
실습 iptables (0) | 2023.07.22 |
CentOS 7 설치 #4 (0) | 2023.07.21 |