如何以访客用户身份访问共享目录

如何以访客用户身份访问共享目录

图片

如图所示。在 ubuntu 上,我如何以访客用户身份访问共享位置?

我想要的拖曳窗口取自 macOS。

答案1

您可以尝试下一个smb.conf配置:

[global]
    workgroup = WORKGROUP
    server string = %h server (Samba, Ubuntu)
    netbios name = UBUNTU-POWERSPEC
    log file = /var/log/samba/log.%m
    max log size = 10240
    security = user
    map to guest = Bad Password
    getwd cache = yes
    guest account = nobody
    usershare allow guests = Yes
    server signing = auto
    passdb backend = tdbsam
    local master = yes

    vfs objects = acl_xattr
    map acl inherit = yes
    store dos attributes = yes

    winbind nss info = template
    winbind enum users = Yes
    winbind enum groups = Yes
    winbind use default domain = yes

    client use spnego = yes
    client ntlmv2 auth = yes

    encrypt passwords = yes

    local master = No
    hide dot files = No
    allow insecure wide links = yes
    store dos attributes = yes


[sambashare]
    path = /home/user/sambashare
    comment = sambashare on Ubuntu
    directory mask = 0755
    create mode = 0777
    read only = no
    available = yes
    browseable = yes
    writable = yes
    guest ok = yes
    public = yes
    locking = no
    strict locking = no

如您所见,在[global]部分中您有,guest account = nobodyusershare allow guests = Yes在共享配置中您有guest ok = yes,等等。还要确保您的共享文件夹对任何人都具有写入权限。public = yeswritable = yes

相关内容