Let's configure user and group permissions to control access on your TrueNAS Scale - Part 2

Поділитися
Вставка
  • Опубліковано 15 жов 2024
  • In this video I will show you how you can use the group and user permissions system to restrict access to your server areas. Thus, not all users will be able to access everything without having to. Thus, it protects people accessing information that should not be accessed.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Leave your comment and share with your network. It's always good to know what needs improvement.
    Don't forget to subscribe to the channel to receive tips and help.
    To receive all notifications, tap the bell icon. It will change to a ringing bell to indicate that you have chosen to receive all notifications.

КОМЕНТАРІ • 33

  • @edwardhammock24
    @edwardhammock24 6 місяців тому +1

    Brilliant overview of what feels like a very complicated system for a non IT admin personal user. Many thanks.

  • @slopsec2358
    @slopsec2358 3 місяці тому +1

    Thanks for the video and Thank God for Closed Caption.

  • @jonathanloaiza
    @jonathanloaiza Рік тому +1

    Thanks for this video mate, its very helpful. Nice Ravensburger Antique World Map hehe. I have exactly the same one. Cheers from Venezuela 🙌

  • @oliverzimmermann7544
    @oliverzimmermann7544 8 днів тому

    Thanks a lot for your Video. What i doesn't understand for what reason do you set the Group Mask with all permission, could you explain that?

  • @philipsx9827
    @philipsx9827 2 місяці тому

    Many thanks. Helped me a lot. I'm preparing my new server, to substitute my old Samba server on Ubuntu.

  • @nikunjkaria
    @nikunjkaria 2 місяці тому

    Nicely explained. Thank you.

  • @serhiizaika.
    @serhiizaika. Рік тому

    Hi, thank you for your explanations and clear English

  • @vladimirbasistyy
    @vladimirbasistyy 7 місяців тому

    brilliant done with explanation
    is it possible to create a hidden share and allow users to see only folders that they have permissions?

  • @sleekspeed22
    @sleekspeed22 Рік тому +2

    Thanks for putting this together. I've been having some problems understanding the different between the Share and File systems ACL. Some feedback... the screen capture is rather blurry and your talking head in the corner is larger than it needs to be and block some of the clicks. Thanks again for putting this together I had to stopped and rewatch parts over and over.

    • @sauberlab-uk
      @sauberlab-uk  9 місяців тому

      Thank you for let m know. I will try to improve this point for my next videos.

  • @Maisonier
    @Maisonier Рік тому +2

    Is hiding SMB folders from other users a problem? I tried to do these things and it didn’t work:
    I enabled the option “Access-Based Share Enumeration” in the advanced options of the SMB share configuration.
    I edited the ACL of the shared folder to assign the appropriate permissions to each user or group.
    I restarted the Samba server, but all the folders are still visible to all users.
    NFSv4 is enabled.

    • @samcan9997
      @samcan9997 Рік тому +1

      thats just SMB as far as ive seen i get this too when i do SMB share from windows server with access enumeration some clients dont 'see' the hidden flag

    • @sauberlab-uk
      @sauberlab-uk  9 місяців тому

      Hiding SMB folders from other users using "Access-Based Share Enumeration" (ABSE) is a common requirement and feature in many environments to control and restrict the visibility of folders based on user permissions. If you have enabled ABSE, configured the ACLs, and restarted the Samba server but still encounter issues with folder visibility, there may be additional factors or configurations affecting the behavior. Here are some troubleshooting steps and considerations to help you address the issue:
      Verify ABSE Configuration:
      Double-check the configuration settings for ABSE in the Samba share configuration to ensure that it is correctly enabled and applied to the desired shares.
      Confirm that the version of Samba you are using supports ABSE and that there are no known issues or limitations with the specific configuration and setup.
      Review ACL Settings:
      Examine the ACLs (Access Control Lists) configured for the shared folders and ensure that they are correctly set to restrict access and visibility based on user and group permissions.
      Verify that the ACLs are applied recursively to the subfolders and files within the shared folders as needed.
      Test User and Group Permissions:
      Test the folder visibility and access with different user accounts and groups to identify any discrepancies or issues with the permissions and configurations.
      Ensure that the users and groups are correctly authenticated and mapped within the Samba and operating system configurations.
      Check NFSv4 and Compatibility:
      Evaluate the NFSv4 configuration and its interaction with the Samba and ACL configurations to ensure compatibility and consistency in access control and visibility settings.
      Verify that NFSv4 is correctly configured and that there are no conflicts or issues between NFSv4 and Samba configurations.
      Restart and Refresh Services:
      Restart the Samba and NFSv4 services after making configuration changes to ensure that the new settings are applied and active.
      Consider restarting the entire system or server to ensure that all configurations, services, and caches are refreshed and synchronized.
      Consult Documentation and Support:
      Refer to the documentation, forums, or support resources for Samba, NFSv4, and your specific operating system for additional guidance, best practices, and troubleshooting tips.
      Seek assistance from experienced users, administrators, or support professionals who may have encountered similar issues and can provide insights and solutions.
      By carefully reviewing, testing, and adjusting the configurations and permissions, you should be able to implement ABSE and ACL settings to hide SMB folders from other users based on their access rights and permissions in your environment.

  • @lorenceHiyas
    @lorenceHiyas Рік тому

    icant see my created group in edit permission an going to add a group in my new share folder but i cant see the group i created

  • @anilc34
    @anilc34 9 місяців тому

    by public IP i am able to access my Truenas (TrueNAS-SCALE-23.10.1)system, but it give user login error

  • @nicholash8021
    @nicholash8021 Рік тому +2

    This is very confusing to a newbie. For example: (1) I see "Other" and "Other - default" at 8:42 and these have different permissions (one has None, and the other Read/Execute). What are these two entries? (2) You have selected "POSX_ADMIN" which very confusingly gives Read/Execute access to Other as I noted. Why would admin ACL permissions allow Others read/execute permissions by default? (3) I see "User Obj" and "Group Obj" but you did not create a group called "Obj" so why is this appearing in the list?

    • @sauberlab-uk
      @sauberlab-uk  Рік тому +5

      I can certainly help clarify some of the confusion you're experiencing.
      "Other" refers to anyone who is not the owner or a member of the group associated with the file or directory. "Other - default" refers to the default permissions that are set when a new file or directory is created. By default, these permissions are set to allow read and execute access for all users, but they can be changed.
      The "POSIX_ADMIN" permission is a special permission that grants a user or group administrative access to the system. This permission does not by default give read/execute access to "Other". It's possible that the default permissions for a specific directory or file were set to allow read/execute access for "Other", but this would be a separate issue.
      "User Obj" and "Group Obj" refer to the owner and group associated with the file or directory. These permissions allow the owner and group to modify the file or directory. The "Obj" you see is short for "Object", which is a general term used to refer to files or directories in the context of ACL permissions.
      I hope this helps clarify some of the confusion you were experiencing. Let me know if you have any further questions!

    • @nicholash8021
      @nicholash8021 Рік тому +3

      @@sauberlab-uk Thank you for the detail! Much appreciated :)

    • @michaelbrown192
      @michaelbrown192 Рік тому +3

      It's just that permission management in truenas is an awful pile of crap.

  • @trialaccount9328
    @trialaccount9328 Рік тому +1

    I managed to setup exactly what I needed by watching your videos, explained well, easy, down to the point. Maybe you can provide a video on how to harden TrueNAS if it's accessed via public. also how to "Not Allow" users to view parent folders, example John is only allowed to access (and view) /Dataset1/UsersDatasets/JohnDataset, but shouldn't be able to view /Dataset1/UsersDatasets or even reach that folder; I do know about the "access based share enum = yes" which can be enabled for SMB shares (and works 100%), but how do you do it when it's not an SMB share, like ssh access per local user?

    • @sauberlab-uk
      @sauberlab-uk  9 місяців тому

      I'm glad to hear that you found the videos helpful for setting up your TrueNAS system. Hardening a TrueNAS system for public access and configuring specific user permissions can be crucial for maintaining security and data integrity.
      Here's a brief overview of some steps you can take to harden TrueNAS and restrict user access as described:
      Firewall Configuration:
      Configure firewall rules to restrict access to essential services and ports.
      Consider using VPN or SSH tunneling for secure remote access instead of exposing services directly to the public.
      HTTPS and Certificate Management:
      Enable HTTPS for secure web access and ensure proper certificate management.
      User and Group Management:
      Create specific users and groups for different datasets and assign appropriate permissions.
      Use ACLs (Access Control Lists) to further refine and restrict access to specific datasets.
      Dataset and Share Configuration:
      Configure datasets and shares with appropriate permissions and restrictions.
      Utilize the "access based share enum = yes" option for SMB shares to restrict visibility of parent folders.
      SSH Configuration:
      For SSH access, you can use local user accounts and configure permissions using SSH keys and SSH configuration settings.
      Limit SSH access to specific users or groups and restrict root access.
      Audit and Monitoring:
      Enable logging and monitoring to track access and detect any unauthorized or suspicious activity.
      Regularly review logs and audit trails for security monitoring and compliance.
      As for creating a video tutorial on these topics, it's a great suggestion, and I'll consider it for future content. In the meantime, you may find detailed guides and documentation available from TrueNAS and other security resources that can help you further configure and secure your system.

  • @krisdahl4817
    @krisdahl4817 Рік тому

    Your screen is clipped on the right hand side, which makes it hard (impossible) to see what you're clicking on.

  • @vedranart
    @vedranart Рік тому

    Can you make a video how to set-up WebDAV with new app/addon on TrueNAS? I'm trying to set it up, but whenever I mount it and try to create a new folder on Windows mapped drive I always get the error... But I can read all files in it...
    Default permissions... One user.
    Thanks!

    • @sauberlab-uk
      @sauberlab-uk  9 місяців тому +1

      Thank you for the suggestion, I will add to my list of future videos.

    • @vedranart
      @vedranart 9 місяців тому

      @@sauberlab-uk I went with Open Media Vault. Seems more robust and easier for my needs. But thanks! 😊

  • @gpatkinson
    @gpatkinson Рік тому +4

    What is the purpose of the “mask”?

    • @haydenstith
      @haydenstith Рік тому +8

      Mask sets the maximum permissions available to everyone. If mask is set to just read then everyone with read permissions will be able to read as intended but at the same time everyone with write or execute privileges will only be able to read the file as well.

    • @sauberlab-uk
      @sauberlab-uk  Рік тому +1

      Thank you Hayden.

    • @bumpsy
      @bumpsy Рік тому

      god, TrueNAS Scale is truly a huge mess, lol. Thanks anyway@@haydenstith

  • @sillycoda1084
    @sillycoda1084 Рік тому

    thank you!! was looking to understand why I kept getting an error when trying to add read only access to the restricted template - turns out, need a MASK entry first.. good lord.. thank you!

    • @sauberlab-uk
      @sauberlab-uk  Рік тому

      You're welcome! I'm glad that the tutorial was helpful for you. Don't hesitate to reach out if you have any more questions!

  • @erzsebetbiro7153
    @erzsebetbiro7153 9 місяців тому

    Hi, Ypur videos a big mess, I can't follow it. What do you do and why?
    You could insert pictures of what happens in each state.
    The right side of the screen is not visible, where do you click there?
    My problem is: Error: dacl. Named (user or group) POSIX ACL entries require a mask entry to be present in the ACL. What I done worong?