Hi,
I tried running this example through a VM, but was unable to reproduce
the issue:
$ uvt-kvm create b release=bionic arch=amd64 label=daily
$ uvt-kvm ssh b
$ sudo apt update && sudo apt dist-upgrade -y && sudo apt install -y vsftpd
$ echo "chroot_local_user=YES
allow_writeable_chroot=YES
write_enable=YES
dirlist_enable=YES
" | sudo tee -a /etc/vsftpd.conf
$ sudo service vsftpd restart
$ sudo useradd -m -U -s /bin/bash testuser
$ sudo passwd testuser
$ sudo mkdir ~testuser/some_dir
$ sudo touch ~testuser/some_dir/a_file.txt
$ sudo chown -R testuser ~testuser
$ echo "test" >test.txt
$ ftp localhost
Connected to localhost.
220 (vsFTPd 3.0.3)
Name (localhost:ubuntu): testuser
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 1001 0 4096 Nov 14 12:30 some_dir
226 Directory send OK.
ftp> put test.txt
local: test.txt remote: test.txt
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
5 bytes sent in 0.00 secs (51.3980 kB/s)
ftp> cd some_dir
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r--r-- 1 1001 0 0 Nov 14 12:30 a_file.txt
226 Directory send OK.
ftp> get a_file.txt
local: a_file.txt remote: a_file.txt
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for a_file.txt (0 bytes).
226 Transfer complete.
ftp> exit
221 Goodbye.
If you have other configuration or steps that would help reproduce the
issue, please post them so that I can help further.
** Changed in: vsftpd (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1802890
Title:
vsftpd local user treated as anonymous users in regards to permissions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vsftpd/+bug/1802890/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs