我确信这真的很容易,但可以让它工作,但不知道这是否是某种许可或什么。
我在“服务器”机器上安装了一个磁盘作为备份磁盘,并想与网络中的所有人共享此目录。有很多台机器,有些装有 Windows,有些装有 Ubuntu。
这是服务器的 smb.conf。
[global]
workgroup = 1
server string = %h server (Samba, Ubuntu)
# wins support = no
; wins server = w.x.y.z
dns proxy = no
####### Authentication #######
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
########## Domains ###########
; domain logons = yes
############ Misc ############
usershare allow guests = yes
#======================= Share Definitions =======================
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[backups]
comment = Backups
path = /media/backups
writeable = yes
browseable = yes
guest ok = yes
create mask = 0777
directory mask = 0777
在其他 Ubuntu 机器上,我将它们挂载在 /etc/fstab 中,如下所示
//server/backups /srv/backups cifs guest,uid=1000,iocharset=utf8 0 0
Windows 机器可以毫无问题地读写,但我无法让 Ubuntu 机器做同样的事情。
我是否必须使用 chmod 授予服务器文件夹一些权限才能使其正常工作?也许我需要在其他 Ubuntu 机器的挂载路径中授予某种权限?因为我尝试了很多 chmod/chown 组合,但无法使其正常工作!
提前致谢!