Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!




ConnectMeNow: Optio...
 
Share:
Notifications
Clear all

ConnectMeNow: Options for SMB shares?


(@derek)
New Member
Joined: 2 months ago
Posts: 2
Topic starter  

When I mount an SMB share, my permissions are always broken:

% ls -l
  -rwx------  1 derek  staff   3347 Jul 29  2012 Magazines*
  -rwx------  1 derek  staff   3347 Jul 29  2012 Magazines.txt*
  drwx------  1 derek  staff  16384 Mar 24  2018 Mathematics/

 

On the source, I have

% ls -l
  -rw-r--r--  1 derek  staff   3347 Jul 29  2012 Magazines
  -rw-r--r--  1 derek  staff   3347 Jul 29  2012 Magazines.txt
  drwxr-xr-x  1 derek  staff  16384 Mar 24  2018 Mathematics/

 

I have found, through tedious trial and error, that if I mount SMB shares like so

  mount -t smbfs -o -d=755,-f=644 smb://...

then, in Terminal, my files have ordinary permissions, not the weird ones:

% ls -l
-rw-r--r--  1 derek  staff   3347 Jul 29  2012 Magazines
-rw-r--r--  1 derek  staff   3347 Jul 29  2012 Magazines.txt
drwxr-xr-x  1 derek  staff  16384 Mar 24  2018 Mathematics/

So — is it possible to specify options for SMB shares in ConnectMeNow? I couldn't figure out how to do it.

(And if anyone understands SMB shares and file permissions and knows a better way to do this, I would love to hear about it.)


ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 8 years ago
Posts: 2010
 

Hi Derek,

I have never seen this issue, and ConnectMeNow does not support adding parameters for SMB shares (for now anyway). 
Maybe something for the future, but maybe the better question is why the file permissions are set wrong to begin with - especially since I have not seen anyone report an issue like this before (which of course doesn't mean others are not experiencing similar problems).

I had to look up those parameters (-d and -f in the way you showed). One thing I see in the documentation is to be careful with is that these rights may or may not match with the actual right that will be assigned on the share server.

Fo you have some more info?

  • On what type of PC/Server/NAS is the share located?
    (Windows, Windows Server, Linux, NAS?)
  • What are the permissions on the directory that hold the share on the server?
    (some servers inherit the permissions of the parent directory)
  • What do the access rights look like on the server for the example files you mentioned?

ReplyQuote
(@derek)
New Member
Joined: 2 months ago
Posts: 2
Topic starter  

Thanks so much for your quick reply. To answer your questions:

  • I'm using a Synology NAS, which is Linux(-ish). 
  • The permissions on the directory that holds the share look ordinary to me:
    • drwxr-xr-x 1 root root 218 Aug  1 15:17 /volume1/
  • As far as I can tell, the access rights on the server are "ordinary" -- just whatever is set up when you enable the share on the Synology. I haven't changed that.

I agree that this is very weird, and I have struggled with how to solve the problem. I tried mounting an SMB share from my Drobo NAS, and I see the same thing! Maybe there's something on the Mac side which is misconfigured? Any help is greatly appreciated — I'm don't have a lot of knowledge about using SMB on a Mac.

This post was modified 2 months ago by derek

ReplyQuote
 Hans
(@hans)
Noble Member Admin
Joined: 8 years ago
Posts: 2010
 

Hi Derek,

you're welcome - I always try to help where I can, but I'm not an expert either 😊 
At least it looks like it doesn't inherit anything silly ... well except for the fact that the directory is owned by "root" and the usergroup "root".
Normally I'd expect to see something like the user "admin" and the user group "administrators" - however this may be different on your NAS.

It is a little odd to see this happen on two very different NAS devices indeed - so the previous comment may not be relevant.
Especially considering that I have never seen this before and I have never heard of it before either. 🤔 

Having said that; what version of macOS are you running?
If it is an older version (before Big Sur for example): Did you ever install Samba manually?
Something like SMBUp  - please do NOT install this on macOS Catalina, or newer macOS versions!

Further more, do the file permissions in Finder look the same as on the NAS ?
(eg. you may need to use SSH to get into your NAS and use "ls -l" to see)


ReplyQuote

Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).

Share: