I exported a ZFS pool from Nexenta and imported to NAS4free. All of the permissions reset to d---------
The only way to fix it was to go in with advanced file manager to each subdirectory and manually set them to drwxr-xr-x
It would be nice if the system were able to fix all of the permissions when importing a ZFS pool.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
permission issues when importing a ZFS pool
-
single_platinum
- Starter

- Posts: 19
- Joined: 18 Aug 2013 04:17
- Status: Offline
-
justin
- Starter

- Posts: 19
- Joined: 22 Jul 2013 15:10
- Status: Offline
Re: permission issues when importing a ZFS pool
I should say try in cli:
# find . -type d -exec chmod 755 {} \;
# find . -type f -exec chmod 644 {} \;
# find . -type d -exec chmod 755 {} \;
# find . -type f -exec chmod 644 {} \;
Justin
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | X x YTB WD ZFS mirror stripping compressed, Z x YTB WD ZFS zraid2 | 2 SSD ZIL, 1 SSD LOG
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | Z x YTB WD ZFS zraid2
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | X x YTB WD ZFS mirror stripping compressed, Z x YTB WD ZFS zraid2 | 2 SSD ZIL, 1 SSD LOG
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | Z x YTB WD ZFS zraid2
-
single_platinum
- Starter

- Posts: 19
- Joined: 18 Aug 2013 04:17
- Status: Offline
Re: permission issues when importing a ZFS pool
Non-unix guy here, could you provide a little more context? How do I point that command at a specific pool and dataset?justin wrote:I should say try in cli:
# find . -type d -exec chmod 755 {} \;
# find . -type f -exec chmod 644 {} \;
- siftu
- Moderator

- Posts: 71
- Joined: 17 Oct 2012 06:36
- Status: Offline
Re: permission issues when importing a ZFS pool
replace the "." with the path to the files and directories you want to change, it will do it recursively.
the first one does directories "type d" the second does files "type f"
Code: Select all
find /path/to/files -type d -exec chmod 755 {} \;
find /path/to/files -type f -exec chmod 644 {} \;System specs: NAS4Free amd64-embedded on ASUSTeK. M5A78L-M LX PLUS - AMD Phenom(tm) II X3 720 Processor - 8GB ECC Ram, Storage: 2x ZFS mirrors with 4x Western Digital Green (WDC WD10EADS)
My NAS4Free related blog - http://n4f.siftusystems.com/
My NAS4Free related blog - http://n4f.siftusystems.com/
-
single_platinum
- Starter

- Posts: 19
- Joined: 18 Aug 2013 04:17
- Status: Offline
Re: permission issues when importing a ZFS pool
Thanks Siftu. Now how do I get this in the documentation so other people doing a pool import don't get stuck?siftu wrote:replace the "." with the path to the files and directories you want to change, it will do it recursively.the first one does directories "type d" the second does files "type f"Code: Select all
find /path/to/files -type d -exec chmod 755 {} \; find /path/to/files -type f -exec chmod 644 {} \;
(it would be even better if NAS4free took care of this during import)
- siftu
- Moderator

- Posts: 71
- Joined: 17 Oct 2012 06:36
- Status: Offline
Re: permission issues when importing a ZFS pool
no system, be it Nextenta, Nas4free, FreeNAS, Solaris, OpenIndiana or ZFSonLinux will ever change permissions when importing a pool. It's just not it's job and would be dangerous to do so.
System specs: NAS4Free amd64-embedded on ASUSTeK. M5A78L-M LX PLUS - AMD Phenom(tm) II X3 720 Processor - 8GB ECC Ram, Storage: 2x ZFS mirrors with 4x Western Digital Green (WDC WD10EADS)
My NAS4Free related blog - http://n4f.siftusystems.com/
My NAS4Free related blog - http://n4f.siftusystems.com/
-
single_platinum
- Starter

- Posts: 19
- Joined: 18 Aug 2013 04:17
- Status: Offline
Re: permission issues when importing a ZFS pool
But people are going to want to import pools. I don't think importing pools should be limited to just people that can hack at the command line. There has to be a way of facilitating this through the GUI.siftu wrote:no system, be it Nextenta, Nas4free, FreeNAS, Solaris, OpenIndiana or ZFSonLinux will ever change permissions when importing a pool. It's just not it's job and would be dangerous to do so.
I know I sound like a broken record, but the easier you make this system to use, the more you expand your user base. That is the ultimate goal is it not?
-
justin
- Starter

- Posts: 19
- Joined: 22 Jul 2013 15:10
- Status: Offline
Re: permission issues when importing a ZFS pool
Yeh... next time, i'll do better.single_platinum wrote:Thanks Siftu. Now how do I get this in the documentation so other people doing a pool import don't get stuck?siftu wrote:replace the "." with the path to the files and directories you want to change, it will do it recursively.the first one does directories "type d" the second does files "type f"Code: Select all
find /path/to/files -type d -exec chmod 755 {} \; find /path/to/files -type f -exec chmod 644 {} \;
(it would be even better if NAS4free took care of this during import)
Justin
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | X x YTB WD ZFS mirror stripping compressed, Z x YTB WD ZFS zraid2 | 2 SSD ZIL, 1 SSD LOG
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | Z x YTB WD ZFS zraid2
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | X x YTB WD ZFS mirror stripping compressed, Z x YTB WD ZFS zraid2 | 2 SSD ZIL, 1 SSD LOG
- NAS4Free 9.1.0.1 x64-full 804 | x64-full on Intel(R) Xeon(R) CPU E5620 @ 2.40GHz | 98271MiB RAM | Z x YTB WD ZFS zraid2