05-01-2024 11:45 PM
Hi everybody.
I'm posting this because I need your help.
Currently, I am trying to configure tftp-server by installing it with yum in guestshell without having a separate tftp server.
I tried various settings to operate as a server, but it did not work due to the message “in.tftpd: chroot: Operation not permitted”.
When running as a client in a guestshell, it works well.
It doesn't seem to be an installation problem.
I don't know how to resolve Chroot, as the guest shell is not general-purpose Linux and is not working properly.
Even if you want to set the time manually, it appears as operation not permitted, so I think it is a limitation of the guest shell.
We also attach several collected logs.
bash-4.4# cat /etc/*release
CentOS Stream release 8
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
CentOS Stream release 8
bash-4.4# systemctl status tftp-server
tftp-server.service - Tftp Server
Loaded: loaded (/usr/lib/systemd/system/tftp.service; indirect; vendor preset: disabled)
Active: active (running) since Fri 2024-04-26 02:07:59 UTC; 8min ago
Docs: man:in.tftpd
Main PID: 695 (in.tftpd)
CGroup: /system.slice/libvirtd.service/system.slice/tftp-server.service
└─695 /usr/sbin/in.tftpd -c -p -s /var/lib/tftpboot
Apr 26 01:50:05 guestshell systemd[1]: Started Tftp Server.
bash-4.4# getenforce
Disabled
bash-4.4# netstat -anu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 0.0.0.0:69 0.0.0.0:*
udp6 0 0 :::69 :::*
bash-4.4# ls -al | grep tftpboot
drwxrwxrwx. 2 root root 1024 Apr 26 01:31 tftpboot
bash-4.4# sudo cat /var/log/messages | grep tftp
Apr 26 01:51:04 localhost in.tftpd[674]: chroot: Operation not permitted
Apr 26 01:51:12 localhost in.tftpd[679]: chroot: Operation not permitted
Apr 26 01:51:20 localhost in.tftpd[680]: chroot: Operation not permitted
Apr 26 01:51:28 localhost in.tftpd[681]: chroot: Operation not permitted
Apr 26 01:51:36 localhost in.tftpd[682]: chroot: Operation not permitted
Apr 26 01:51:44 localhost in.tftpd[683]: chroot: Operation not permitted
Apr 26 02:05:05 localhost systemd[1]: tftp.service: Succeeded.
Solved! Go to Solution.
05-02-2024 03:03 AM
Guest shells has some restricted functionality. It might not allow processes to use chroot
, limiting the TFTP server's ability to operate as intended.
05-02-2024 03:03 AM
Guest shells has some restricted functionality. It might not allow processes to use chroot
, limiting the TFTP server's ability to operate as intended.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide