every file I create is executable?

cullenskink

Cadet
Joined
Apr 30, 2019
Messages
3
I am new with freenas but not unix. I have tried to find the answer to this but just can't see it.

I primarily wish to access my freenas via a Mac or Unix system but also PC.

When I create a file I get really open permissions. e.g.
echo "c" > x.txt
gives --> -rwxrwxr-x+ 1 paul staff 2 Apr 30 09:42 x.txt

On my mac I get and would like

-rw-r--r-- 1 paul staff 2 Apr 30 09:38 x.txt

I must be missing something obvious, bu I just can't see it. Can anyone help.


Details:
I'm sharing through samba
The default permissions are the same when I ssh in to shell or create a file on share
I've tried datasets with share type unix, windows and mac. I get the same
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288

katbyte

Dabbler
Joined
Nov 17, 2023
Messages
20
If you create SMB shares with the "default permission" checkbox ticked, check to see of your dataset "share type" has reverted to "windows".
I have the same issue - how do I check this, and what am I looking for? and then how can it be fixed? your links don't seem to really explain the steps that need to be taken, or I don't understand them
 
Top