Help an idiot fix permissions
Identical user permissions but can't write with 1 user
SMB users authenticate but don't get write permission
Am I just an idiot? Cannot get share permissions to work properly
Videos
Vers: TrueNAS-SCALE-22.12.3.2
I'm really struggling to get smb shares to work properly. No matter what there's always something missing in the settings I pick. I either get access and can read/write, but cant view existing files, or I can see the files but can't create or edit, or I just get flat out denied access.
Is there an idiots guide to TrueNAS SMB shares? I've tried following a couple video guides, but they basically all do the same thing in the end and Im stuck with one of the scenarios listed above. I'm not even trying anything complicated.. I just want users associated with the group 'Games' to be able to read and write to the share. That's it.
Here's what I'm doing:
-
Create a dataset called Games and all defaults and smb share type selected as so:
2) Create a smb share to the mount point (/mnt/data/games) with default share access/smb share access:
3) Create the FACLs as such:
3) Assign the users to that I want to have access to the share the group "games" that allows reading/writing/executing
However, when doing this I get access denied. I look at the file system and the permissions seem right.. For some reason whenever I touch a directory, it's creating a folder called 'sam' though too
sam@nas:~$ sudo ls -l /mnt/Data/ total 27 drwxrwx--x 3 root root 3 Jul 14 2023 Backup drwxrwx--- 3 root root 3 Jan 27 14:17 Game drwxrwx--x 5 root root 5 Jan 27 13:11 Home drwxrwx--x 8 root root 8 Aug 4 10:30 Image drwxr-xr-x 7 root root 10 Jul 9 2023 ix-applications sam@nas:~$ sudo ls -l /mnt/Data/Game [sudo] password for sam: total 1 drwxrwx--- 2 sam sam 2 Jan 27 14:17 sam //<<---Where did this come from?!
28/1/24
Update - Somehow everything started working. I don't know what I did but everything is working now..Yay mysterious resolutions! Sorry future folk that find this post :(
Hi All,
As background, I have Truenas Electric Eel running, it has a few TB of media stored on it already. And now I've started the journey of building and Arr stack on this Truenas server.
So, I was following a popular guide for arr on Truenas, and started by creating all the datasets for the apps, these are set with the "app" ownership (as opposed to smb etc).
The storage file structure is as follows VAULT > APPS > {APP Name} VAULT > MEDIA > {MOVIES, TV, MUSIC, DOWNLOAD etc}
Starting with installing qbittorrent, all went well and successful, until I tested. I grabbed a torrent and it errored straight away. Looking in the logs it says it doesn't have permissions to the downloads folder
I didn't mention above all the media is an existing SMB share..
How do I fix the permissions to allow the apps to write into my smb share?
Good chance I haven't given enough info, so please let me know if you need anything further.
Thanks S
Hello!
I've been trying to install custom apps (in this particular instance Stable diffusion and comfyui) but I continue to get the same problem.
My app has no write permissions on any of the container managed storage (on hostpath mounted drives there is no such issue.
2024-07-22 11:04:49.848636+03:00There was a problem when trying to write in your cache folder (/.cache/huggingface/hub). You should set the environment variable TRANSFORMERS_CACHE to a writable directory.2024-07-22 11:04:50.440587+03:00Traceback (most recent call last):2024-07-22 11:04:50.440685+03:00File "/app/comfyui/main.py", line 210, in <module>2024-07-22 11:04:50.440746+03:00server = server.PromptServer(loop)2024-07-22 11:04:50.440784+03:00File "/app/comfyui/server.py", line 72, in __init__2024-07-22 11:04:50.440858+03:00self.user_manager = UserManager()2024-07-22 11:04:50.440888+03:00File "/app/comfyui/app/user_manager.py", line 22, in __init__2024-07-22 11:04:50.440931+03:00os.mkdir(user_directory)2024-07-22 11:04:50.440960+03:00PermissionError: [Errno 13] Permission denied: '/app/comfyui/user'2024-07-22 11:04:51.074142+03:00/app/comfyui
In the /app/comfyui i cannot write anything.
However for example in my mounted /mnt/Test/appdata/comfyui/checkpoints to /app/comfyui/models/checkpoints i have no such issues. I can download, create files, etc.
It seems I'm missing some permissions step, but I don't know what it is.
I'm using this docker image:
https://hub.docker.com/r/universonic/comfyui
It's absolutely the same with the stable-diffusion docker image.
I'm running the last public release TrueNAS SCALE Dragonfish.
Hey,
I have TrueNas Scale (Fangtooth, 25.04) installed on an old PC. Really only using it to store some photos and run my Plex Server.
Pretty much every time I transfer files over SMB I get an error from Windows Explorer, if I hit try again it will successfully transfer.
I've also tried FastCopy, which will similarly give me a permissions error - This is a bit better for when transferring a lot of small files like photos, that way I can leave it unattended and just go back and identify which ones weren't successful and do those after.
However it's quite inconvenient when doing larger files like movies, tv shows etc.
If anyone could give me some insight as to how to fix this I would really appreciate it, thanks.