Jump to content

TrueNAS Core all shares are visible to all users despite not having permission

Levent
Go to solution Solved by Oshino Shinobu,
1 minute ago, Levent said:

So what is actually the difference? Permission system in TrueNAS seems like a pile of shit compared to OMV that I am used to. I can set up ACLs in at least 2 places that I can see. I also have non-windows clients that is using these Samba shares, so I am not sure if SID can be used there.

 

The said screen makes no sense to me, any tips?

SIDs should be on the TrueNAS side, so should be able to be used either side.

 

AFAIK, access based enumeration will only look at the share permissions. As you've got it set to everyone has access, everyone will be able to see it. You'd need to change the SID to match the user you want to have access to the share (and see it) and then add for each SID you want that access for.

 

Arguably an easier way is to disable the "browsable" option and just map the shares. ABE is flakey at best in my experience and doesn't work properly with plenty of systems. Though even hiding the shares doesn't always work as some systems scan for hidden shares and will list them anyway.

Setup details:

Latest build of TrueNAS core.

Levent: This user supposed to see and only have permission to Data and Media folders.

LeventPC: This user supposed to see and only have permission to Levent-PC folder (not a home folder)

LeventMBA: This user supposed to see and only have permission to Levent-MBA folder (again, not a home folder)

 

Problem:

The users listed above all able to list Data, Media, Levent-PC, Levent-MBA folders in the network share. However, when attempted to browse, it will just throw out no permission error.

 

Configuration:

 

Any ideas? I distinctly remember setting this up with in smb.conf when my NAS was consisting of a OrangePi Zero with 512mbs of ram and bunch of external harddrives.

 

Spoiler

 

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18

 

Link to comment
Share on other sites

Link to post
Share on other sites

Your second screenshot shows an ACL where Everyone has allow permissions. Even if they don't have permissions to access the datasets, access based enumeration looks at the share ACLs.

 

Believe you'd need to seperate each folder/dataset out into a share and adjust share permissions for access based enumeration to hide shares they don't have access to.

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Oshino Shinobu said:

Your second screenshot shows an ACL where Everyone has allow permissions. Even if they don't have permissions to access the datasets, access based enumeration looks at the share ACLs.

So what is actually the difference? Permission system in TrueNAS seems like a pile of shit compared to OMV that I am used to. I can set up ACLs in at least 2 places that I can see. I also have non-windows clients that is using these Samba shares, so I am not sure if SID can be used there.

 

The said screen makes no sense to me, any tips?

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Levent said:

So what is actually the difference? Permission system in TrueNAS seems like a pile of shit compared to OMV that I am used to. I can set up ACLs in at least 2 places that I can see. I also have non-windows clients that is using these Samba shares, so I am not sure if SID can be used there.

 

The said screen makes no sense to me, any tips?

SIDs should be on the TrueNAS side, so should be able to be used either side.

 

AFAIK, access based enumeration will only look at the share permissions. As you've got it set to everyone has access, everyone will be able to see it. You'd need to change the SID to match the user you want to have access to the share (and see it) and then add for each SID you want that access for.

 

Arguably an easier way is to disable the "browsable" option and just map the shares. ABE is flakey at best in my experience and doesn't work properly with plenty of systems. Though even hiding the shares doesn't always work as some systems scan for hidden shares and will list them anyway.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Levent said:

Setup details:

Latest build of TrueNAS core.

Levent: This user supposed to see and only have permission to Data and Media folders.

LeventPC: This user supposed to see and only have permission to Levent-PC folder (not a home folder)

LeventMBA: This user supposed to see and only have permission to Levent-MBA folder (again, not a home folder)

 

Problem:

The users listed above all able to list Data, Media, Levent-PC, Levent-MBA folders in the network share. However, when attempted to browse, it will just throw out no permission error.

 

Configuration:

 

Any ideas? I distinctly remember setting this up with in smb.conf when my NAS was consisting of a OrangePi Zero with 512mbs of ram and bunch of external harddrives.

 

  Reveal hidden contents

 

If I understand correct, this data was originally configured to be shared vis another system? If so, I’d just wipe all perms and start over. 
 

Then use ACL’s to configure access.

 

For my truenas box, for the most part I have most things shared at a certain “lower” user level, and then my “admin” type user belongs to the lower level groups so I can read/write just about anywhere. 

Rig: i7 13700k - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Assorted SATA SSD's for Photo Work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - XT45 X-Flow 420 + UT60 280 rads - - EK XRES RGB PWM - - Fractal Define S2 - - Acer Predator X34 -- Logitech G502 - - Logitech G710+ - - Logitech Z5500 - - LTT Deskpad

 

Headphones/amp/dac: Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/ Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x4 TB WD Red RAID Z2 - - Corsair 750D - - Corsair RM650i - - Dell H310 6Gbps SAS HBA - - Intel RES2SC240 SAS Expander - - TreuNAS + many other VM’s

 

iPhone 14 Pro - 2018 MacBook Air

Link to comment
Share on other sites

Link to post
Share on other sites

59 minutes ago, LIGISTX said:

If I understand correct, this data was originally configured to be shared vis another system? If so, I’d just wipe all perms and start over. 
 

Then use ACL’s to configure access.

 

For my truenas box, for the most part I have most things shared at a certain “lower” user level, and then my “admin” type user belongs to the lower level groups so I can read/write just about anywhere. 

Nope this is a completely sepeate build, nothing is reused, even data is different.

 

1 hour ago, Oshino Shinobu said:

SIDs should be on the TrueNAS side, so should be able to be used either side.

 

AFAIK, access based enumeration will only look at the share permissions. As you've got it set to everyone has access, everyone will be able to see it. You'd need to change the SID to match the user you want to have access to the share (and see it) and then add for each SID you want that access for.

 

Arguably an easier way is to disable the "browsable" option and just map the shares. ABE is flakey at best in my experience and doesn't work properly with plenty of systems. Though even hiding the shares doesn't always work as some systems scan for hidden shares and will list them anyway.

Holy shit you were right. Though, I gotta say this was unnecessarily imo.

  1. Enabled Access Based Shared Enumeration in every single Samba share that I want this configured.
  2. Used the NETBIOS name of my TrueNAS server and the user that I needs to see the share.

Putting a screenshot to help myself in the future again lol.

Spoiler

Untitled.thumb.png.c10ee51b218704b0c7511482db450f25.png

 

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18

 

Link to comment
Share on other sites

Link to post
Share on other sites

53 minutes ago, Levent said:

Holy shit you were right. Though, I gotta say this was unnecessarily imo.

  1. Enabled Access Based Shared Enumeration in every single Samba share that I want this configured.
  2. Used the NETBIOS name of my TrueNAS server and the user that I needs to see the share.

Putting a screenshot to help myself in the future again lol.

lol I attended a talk on access based enumeration by one of the consultants at my last job so glad I retained something useful 😄

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×