sudo apt-get install samba
sudo apt-get install kdenetwork-filesharing
sudo apt-get install smbclient
sudo apt-get install system-config-samba #安装samba服务器配置工具
cd /home/wuyq/
sudo mkdir share
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
合适位置添加
security = user
文件最后添加
[share]
comment=this is Linux share directory
path=/home/wuyq/share
public=yes
writable=yes
sudo apt-get install openssh-client
ps -e |grep ssh
sudo apt-get install openssh-server
ps -e |grep ssh
sudo /etc/init.d/ssh start
图形界面:
添加用户;解锁、设置用户密码。
samba:图形界面配置用户访问目录等。