无法以用户身份连接到 sambashare

无法以用户身份连接到 sambashare

我在 Mac (high sierra) 上访问 sambashare 时遇到问题。我能够看到共享文件夹,但当我访问它们时,我收到“您无权访问此文件夹”的提示。我的 smb.conf 文件看起来有点像下面这样:

[global]
   workgroup = MY-WORKGROUP
   server string = %h server (Samba, Ubuntu)
   security = user
   map to guest = bad user     
   dns proxy = no

[_it_data]
   comment = IT data file share (only sudo users accessible)
   path = /home/serveradmin/sambashare/_it_data
   browseable = no
   guest ok = no
   read only = no
   available = yes
   writeable = yes
   valid users = @sudo

我用来访问此功能的用户位于 sudo 组和 sambashare 组中:

serveradmin@comp:~$ id user
uid=1015(user) gid=1000(serveradmin) groups=1000(serveradmin),27(sudo),116(sambashare)
serveradmin@comp:~$ 

但是,如上所述,当我尝试访问共享时,我得到了(尚不能嵌入图像)。

问题是,我怎样才能成功地让我的共享连接到我的计算机?


更新:

我已经收集了有关此问题的更多信息。看来我能够成功连接到共享并查看它们:

user:~ admin$ smbutil view //[email protected]
Password for 10.0.1.57: 
Share                                           Type    Comments
-------------------------------
print$                                          Disk    Printer Drivers
approved-software                               Disk    Approved software file share
office                                          Disk    Office file share, accessible to everyone
property-management                             Disk    Property management file share
construction                                    Disk    Construction file share
sales                                           Disk    Sales file share
home                                            Disk    Home directories, save your cool stuff here
property-files                                  Disk    Property files share
marketing                                       Disk    Marketing files share
accounting-share                                Disk    Accounting file share
IPC$                                            Pipe    IPC Service (SERVER (Samba share))

11 shares listed

但是当我尝试直接连接到共享时:

user:~ admin$ smbutil view //[email protected]/home
Password for 10.0.1.57: 
smbutil: share name doesn't exist: Permission denied

因此,我的问题就变成了,为什么我不能直接连接到我的股票?

答案1

对于遇到同样问题的人。将共享文件夹移入/srv即可

相关内容