Ubuntu安装Samba

apt-get install samba

修改 /etc/samba/smb.conf 文件:

[share]
  path = /
  available = yes
  valid users = root
  read only = no
  browseable = yes
  public = yes
  writable = yes

修改Samba登陆的密码:

smbpasswd -a root

这里也可以使用非root用户,必须是Linux系统中已存在的用户。

重启Samba服务:

/etc/init.d/smbd restart

Contents

0