samba 安装步骤
1.若之前有安装过相关软件包,先卸载之:sudo apt-get autoremove samba samba-commonsudo apt-get autoremove system-config-samba按如下方式安装软件包sudo apt-get install samba samba-commonsudo apt-get install system-config-samba cifs-utils 2. 配置相关参数sudo gedit /etc/samba/smb.conf[global]
; create workupsecurity = share; is not guest inviteguest ok = yes[share]path=/home/zy; read writable = yes3. sudo useradd zy
给添加的帐户设置登录密码: sudo smbpasswd -a zy在新建立的文件内加入下面这一行并保存:zy = "network username"4. 重启samba:
sudo /etc/init.d/samba restart