kazulog@sv1:~$ cat /etc/os-release | head -2 PRETTY_NAME="Ubuntu 26.04 LTS" NAME="Ubuntu" kazulog@sv1:~$ sudo ls -l /home/ftpdemo/ total 12 -rw-r--r-- 1 ftpdemo ftpdemo 26 Sep 12 10:16 hello.txt -rw------- 1 ftpdemo ftpdemo 18 Sep 12 10:20 upload.txt -rw-r--r-- 1 ftpdemo ftpdemo 18 Sep 12 10:21 upload2.txt kazulog@sv1:~$ tail -5 /etc/vsftpd.conf #utf8_filesystem=YES # 利用者を自分のディレクトリに閉じ込める chroot_local_user=YES user_sub_token=$USER local_root=/srv/ftp-users/$USER kazulog@sv1:~$ sudo ls -laR /srv/ftp-users/ /srv/ftp-users/: total 12 drwxr-xr-x 3 root root 4096 Sep 12 10:22 . drwxr-xr-x 4 root root 4096 Sep 12 10:22 .. drwxr-xr-x 3 root root 4096 Sep 12 10:22 ftpdemo /srv/ftp-users/ftpdemo: total 16 drwxr-xr-x 3 root root 4096 Sep 12 10:22 . drwxr-xr-x 3 root root 4096 Sep 12 10:22 .. -rw-r--r-- 1 root root 26 Sep 12 10:22 hello.txt drwxr-xr-x 2 ftpdemo ftpdemo 4096 Sep 12 10:22 upload /srv/ftp-users/ftpdemo/upload: total 8 drwxr-xr-x 2 ftpdemo ftpdemo 4096 Sep 12 10:22 . drwxr-xr-x 3 root root 4096 Sep 12 10:22 .. kazulog@sv1:~$ sudo systemctl restart vsftpd