在Linux系统下使用FileZilla设置共享文件夹,通常有两种主要方法:通过FTP或SFTP协议。以下是详细的步骤指南:
sudo apt update
sudo apt install filezilla
sudo apt update
sudo apt install samba
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup
sudo nano /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
security = user
map to guest = bad user
sudo mkdir /home/ray/share
sudo chmod 777 /home/ray/share
[Share]
comment = Shared Folder with username and password
path = /home/ray/share
public = yes
writable = yes
valid users = newsfan
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup
available = yes
browseable = yes
sudo useradd newsfan
sudo smbpasswd -a newsfan
sudo systemctl restart smbd
smb://服务器IP地址/Share
,然后输入之前设置的用户名和密码即可访问共享文件夹。请注意,以上步骤可能会随着FileZilla版本的更新而有所变化,建议参考FileZilla官方网站的最新文档进行配置。