[Samba] odd issue with permisions

Rowland penny rpenny at samba.org
Wed Oct 28 20:33:28 UTC 2020


On 28/10/2020 20:26, Dan Egli via samba wrote:
> On 10/28/2020 4:14 AM, Marco Gaiarin via samba wrote:
>>> Next idea? :)
>> No one. But plain 'POSIX' access (eg, ssh) works? Eg if you try to redo
>> the operation that does not work with samba using plain ssh access
>> (with the same user), they works?
>>
> Yes, ssh works just fine.  Here's an example of it:
>
> [dan at jupiter2 ~]$ mkdir test3
> [dan at jupiter2 ~]$ cd test3
> [dan at jupiter2 test3]$ cat > testing
> Hello World!
> Hello World!
> [dan at jupiter2 test3]$ ls
> testing
> [dan at jupiter2 test3]$ cat testing
> Hello World!
> Hello World!
>
> And samba works just fine as long as BOTH user and group permissions
> allow the operation. That's why I had the create mask and directory mask
> entries in the smb.conf on the [Homes] share
>
> I'm at a loss.

So am I, because I cannot reproduce your problem:

$ mkdir ~rowland/test1
$ chmod 700 ~rowland/test1
$ smbclient -U rowland //localhost/rowland
Enter WORKGROUP\rowland's password:
Try "help" to get a list of possible commands.
smb: \> cd test1
smb: \test1\> put test1.txt
putting file test1.txt as \test1\test1.txt (0.0 kb/s) (average 0.0 kb/s)

root at stand:~# ls -lad ~rowland/test1
drwx------ 2 rowland rowland 4096 Oct 28 10:45 /home/rowland/test1

root at stand:~# ls -la ~rowland/test1/test1.txt
-rwxrwx---+ 1 rowland rowland 0 Oct 28 10:45 /home/rowland/test1/test1.txt

Rowland





More information about the samba mailing list