I use a path statement in my [homes] section: [homes] comment = Home Directories path = /home/%u/windows browseable = no valid users = %S writable = yes guest ok = no directory mask = 2770 create mask = 660 Just an FYI. You created the share with: net usershare add Share /home/kasak/Share "" Everyone:F guest_ok=y and after creating the foo directory, you list as: And here is ls: [kasak@kasakoff Shared]$ ls -al итого 12 drwxr-xrwx 3 kasak kasak 4096 фев 13 08:35 . drwx-----x 22 kasak kasak 4096 фев 13 08:33 .. drwxr-xr-x 2 nobody nobody 4096 фев 13 08:35 fooNote "Share" != "Shared". What is the full path to foo? Bill On 2/13/2018 4:08 AM, Илья Коскин
wrote:
path statement should not be specified in [homes] section, this is samba built in section, to dynamically share user home directories. I am not logged in as kasak, samba users is not the same as system users. To login as kasak, first I need to add kasak to samba with smbpasswd -a kasak, or samba-tool user add kasak. But I have not added kasak to samba, so when smbclient tries to login as kasak it doesn't find it and falls back to guest (unix nobody) account, because i have option "Map to guest=Bad user" in my config. Look: [kasak@kasakoff ~]$ smbclient \\\\kasakoff\\Share Enter WORKGROUP\kasak's password: Try "help" to get a list of possible commands. smb: \> ^Z [1]+ Остановлен smbclient \\\\kasakoff\\Share <<<<<<< ctrl+z [kasak@kasakoff ~]$ sudo smbstatus [sudo] пароль для kasak: Samba version 4.7.5 PID Username Group Machine Protocol Version Encryption Signing ---------------------------------------------------------------------------------------------------------------------------------------- 8027 nobody nobody 192.168.2.87 (ipv4:192.168.2.87:12209) SMB2_10 - - 8001 nobody nobody 192.168.3.251 (ipv4:192.168.3.251:36734) SMB3_11 - - <<< my ip Service pid Machine Connected at Encryption Signing --------------------------------------------------------------------------------------------- IPC$ 8027 192.168.2.87 Вт фев 13 12:07:01 2018 MSK - - Share 8001 192.168.3.251 Вт фев 13 12:06:46 2018 MSK - - No locked files _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx |
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx