I finally upgraded to 25.4 yesterday. I don’t remember reading anything in the upgrade notes about these two new issues.
I’ve noticed two things since I upgraded.
We are a household of Macs, iPads, iPhones, Android and Linux. So until yesterday, everything played nicely.
First issue.
I used to be able to connect to the “nas” by selecting the “nas” icon in the side bar of the Finder window. Since the update, I can’t. The Finder window says “Connection failed”. I can however, connect using smb://192.168.x.y. Has something changed that I need to reset or update such that macOS clients can still easily connect via the Finder?
Second questions is a bit more confusing.
Since the update, I’m no longer able to delete or move, some files. I haven’t had an issue like this with 24.4 or 24.10 before. It says “Permission denied”. This is a folder of music files that where I am the only person who can change. My wife and children can read the files but not delete.
When I go to the CLI and look at the ownership, there is a mix of my username and 1000. The group is always root. Is there something that could have changed in the update that doesn’t allow me to remove or move some files? Is there something in the SMB networking or file preferences that I need to address due to the update?
macOS and Finder can be frustrating. I’ve also encountered this issue without being able to connect from the servers listed in Finder’s sidebar. Here are two fixes:
Restart macOS. Sometimes, stale connections between your Macs and the share can cause this issue. A reboot clears these stale items. Finder isn’t the best with network shares.
Go to Network > Global Configuration > Settings > Service Announcement. Uncheck mDNS, save, and then re-enable it.
mDNS is how macOS announces itself on the network and finds resources. Sometimes, these ‘announcements’ get stale, and macOS (Finder) won’t flush the old data. Disabling and re-enabling mDNS or rebooting has worked well for me.
Also, read the docs to learn more about permissions.
I have found the setting in Truenas Network and reset. I’ll have to see if it shows up again in the Mac. I agree that the Finder isn’t particularly good at network shares.
I have read the docs about permissions and had them set so that everything worked OK in 24.10. Since I updated, I have these permission issues. So that was why I asked. Was there a change in the update from 24.10 to 25.04 that I need to address? It looks like Jellyfin (in Proxmox LXC) isn’t reading additions to the media files on the 25.04 Truenas. So I’m guessing that something changed in the permissions. If that is the case, then I’m not sure where to start looking as to what changed between versions.
@bunk3m there’s a few complications here, meaning layers of things to check.
Any idea which user is ‘1000’? Having different users own files is perfectly fine as long as they are all part of the the appropriate group and that group allows reads, write, or deletes.
From your Terminal window after logging into your TrueNAS box, if you type ‘id’, what do you get? Here’s my example:
$ id
uid=3000(nihil2040) gid=100(users) groups=100(users),544(builtin_administrators),545(builtin_users),568(apps)
All of the users on my system belong to the ‘users’ group or group 100 by default. All of my shares have permissions (ACLs) that allow the ‘users’ group to read and modify the files. I suspect that your user ‘1000’ may be what’s causing the hiccups. Is that user an old one? A user id from an app or some other process? Find out more about that user. When did that user last modify any files?
If that user isn’t a valid user on the system any longer, change ownership of those files to you or another valid user on the system. I think that once you get control of this you’ll find better luck and less ‘permission denied’ errors.
It’s been a very busy couple of weeks and I couldn’t get to this until this evening.
When I run ‘id’ I get something completely different
$ id
uid=950(admin) gid=950(admin) groups=950(admin),544(builtin_administrators)
In the credentials “users”, I have root with userid ‘0’, admin with ‘950’ and then the three users of the file share (me, my wife and my daughter) with ‘3000’ series IDs.
The credential “groups”, I have admin with ‘950’ and then 6 user groups with ‘3000’ series numbers.
I can’t find a 1000 in the gui. But I do have ‘1000’ in the /mnt/Pool1/Share.
$ ls -la /mnt/Pool1
total 591
drwxrwxrwt 11 root root 13 Sep 20 10:28 .
drwxrwxrwx 7 root root 7 Aug 9 2024 ..
drwxrwxrwx 2 root root 6 Apr 21 2024 .AppleDB
drwxrwxrwx 2 root root 3 Sep 9 2013 .AppleDesktop
drwxrwxrwx 2 1000 root 9 Feb 11 2024 .AppleDouble
-rwxrwxrwx 1 1000 root 10244 Jan 1 2025 .DS_Store
drwxrwsrwt 4 1000 root 4 Dec 8 2019 .TemporaryItems
-rwxrwxrwx 1 1000 root 297 Nov 5 2013 .apdisk
drwxrwxrwx 4 me root 4 Apr 21 2024 .recycle
drwxrwxrwx 10 me root 10 Jul 1 11:00 Comedy
drwxrwsrwx 290 1000 root 2495 Oct 5 19:59 Movies
drwxrwsrwt 13 1000 root 14 Sep 28 16:15 Music
drwxrwsrwx 153 1000 root 157 Oct 4 07:35 TV
I vaguely remember having to connect using uid 1000 for some reason when I set up the Truenas a year ago. I think the only way I could connect via samba was using that uid but I can’t remember exactly.
In any case, the directory uid aren’t consistent. Some show uid ‘root’ and some show ‘1000’ and some show ‘me’ (my uid).
I’m confused and stuck.
There have been some bug fixes regarding SMB and the permissions workflow in the latest 25.04.x release. I think it would be a good idea to ensure that you’re up to date with the latest in the 25.04.x series.
Even though the permissions are ‘wide open’, meaning read, write, and executable by everyone, there isn’t a good reason for these files to be owned by root. That user is reserved for system files and not necessarily for your shares.
My recommendation is to use the TrueNAS Web UI to change the permissions to the files in your shares. I would say that your user can / should own the files, but also have group ownership where all in your family belong to the same group. A good example would be group id 100, or the ‘users’ group. When you apply the permissions, do this in two steps from the GUI. Strip all permissions to get rid of any stragglers or old permissions. Then reapply (be sure to do this recursively) permissions with you as the owner and whichever group you want (ie. the ‘users’ group). There are templates that you can use, POSIX Open for example. This should fix your problems with inaccessible shares.
Thanks @nihil2040 . I’ve been reading the post and will need to figure out how to do the two steps.
For some reason I think the userid 1000 is a left over from an upgrade from another NAS to TrueNAS. I think the users were all in the 1000 series. I also notice that the connection from my Jellyfin container on a Proxmox uses userid 1000 to connect to the media stored on my TrueNAS. I’m a bit nervous of making too many changes and end up breaking stuff.
Anyway, thanks so much for your help and guidance. I’m working on it.