By GeneIntheUK
Hello, I am running a small droplet on 20.04 with vsfptd.
I have created a user in the sudo group hoping I will be able to move files into different folders from my remote pc to the droplet and vice versa, as all as other activities (i.e. delete, rename, etc).
I have configured vsftpd with what I believe to be the correct settings (config file below), along with the name of my user on a vsftpd.chroot_list to allow access to all folders.
I have TLS set up as well so the user can log in securely. so this user can log in and navigate all of the folders in the droplet no problem.
My problem is this. From his /home folder the user can do what they want, add, rename, delete, etc… from anywhere else he gets the dreaded 550 permission denied.
Essentially I want to give this particular user full access to all of the files and folders in my droplet (essentially, root).
Am I missing something here? Maybe I am missing an setting in the config file?
listen=NO #connect_from_port_20=YES
#listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=NO #anon_other_write_enable=NO #local_root=/
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES force_dot_files=YES
connect_from_port_20=YES pasv_enable=YES pasv_min_port=40000 pasv_max_port=40010
#chown_uploads=YES #chown_username=whoever
#xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES #ascii_download_enable=YES
ftpd_banner=Welcome to DRRG Chat Server FTP Portal.
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd.banned_emails
#chroot_local_user=YES
allow_writeable_chroot=YES chroot_local_user=YES chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
#rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem #rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key rsa_cert_file=/etc/ssl/private/vsftpd.pem rsa_private_key_file=/etc/ssl/private/vsftpd.pem ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=YES force_local_logins_ssl=YES ssl_tlsv1=YES ssl_sslv2=NO ssl_sslv3=NO require_ssl_reuse=NO ssl_ciphers=HIGH
utf8_filesystem=YES
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
OK It looks like problem is solved. The user I was using was had SU rights, but it needed to be a root user ‘x:0:0’ and part of the root group. I made these changes and presto!
This give that user full unfettered rights across the whole box, which suits my purpose. Now, this is not the right route for all users, but it suits me for what I need to do on this droplet.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.