Why is there no path = statement for [homes]?

Compare the output of 'testparm' from both machines.

After creating the 'foo' directory on both machines, compare the permissions of
the two directories 'ls -l'.

Bill

On 2/12/2018 1:16 PM, Илья Коскин wrote:
Hello everybody. Here is my problem. I have two computers, both with fedora 
workstation 27, both with selinux disabled, both fully updated. Both have the 
same configuration of samba:
[global]
        workgroup = WORKGROUP
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw
        usershare max shares = 5
        usershare allow guests = yes
        guest ok = yes
        Map to guest = Bad user

[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @printadmin root
        force group = @printadmin
        create mask = 0664
        directory mask = 0775

as you can see, everything i changed from default config is this strings:
        usershare max shares = 5
        usershare allow guests = yes
        guest ok = yes
        Map to guest = Bad user

Both computers have directories /var/lib/samba/usershares with sticky bit 
enabled.
On both machines i have created usershares this way:
net usershare add Share /home/kasak/Share "" Everyone:F guest_ok=y

As you can see this is simple configuration, nothing special.
/home/kasak/Share owned by kasak, but have 777 permissions, so user "nobody" 
can write there.
But on one machine everything works just fine, but on another machine i only can create 
dirs or files in the root of the "Share".
For example, if I create directory foo, cd to there, and try to create 
directory bar, samba sais that I don't have permissions! And on another machine 
it works just fine!
With all the same configs! I even can delete the foo directory, but i can't 
create files there!
The only difference between computers is that on one I have full disk formatted 
and mounted as root, and on another i have /home partition separately.
But they all are formatted to ext4 and have similar mount options (defaults)
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to