On 8/29/19 1:32 AM, Salsa wrote:
This is the result:

# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[cephfs]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
load printers = No
netbios name = SAMBA-CEPH
printcap name = cups
security = USER
workgroup = CEPH
smbd: backgroundqueue = no
idmap config * : backend = tdb
cups options = raw
valid users = samba
...
[cephfs]
create mask = 0777
directory mask = 0777
guest ok = Yes
guest only = Yes
kernel share modes = No
path = /
read only = No
vfs objects = ceph
ceph: user_id = samba
ceph:config_file = /etc/ceph/ceph.conf


I cut off some parts I thought were not relevant.


`map to guest = Bad User`, instead `valid users = samba`.

```

[cephfs]
  path = /
  vfs objects = acl_xattr ceph
  ceph: config_file = /etc/ceph/ceph.conf
  ceph: user_id = samba
  oplocks = no
  kernel share modes = no
  browseable = yes
  public = yes
  writable = yes
  guest ok = yes
  force user = root
  force group = root
  create mask = 0644
  directory mode = 0755
```

Reload and try `smbclient -U guest -N //10.17.6.68/cephfs`



k

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to