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!

permission issues when importing a ZFS pool

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
single_platinum
Starter
Starter
Posts: 19
Joined: 18 Aug 2013 04:17
Status: Offline

permission issues when importing a ZFS pool

Post by single_platinum »

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.

justin
Starter
Starter
Posts: 19
Joined: 22 Jul 2013 15:10
Status: Offline

Re: permission issues when importing a ZFS pool

Post by justin »

I should say try in cli:
# 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

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

Re: permission issues when importing a ZFS pool

Post by single_platinum »

justin wrote:I should say try in cli:
# find . -type d -exec chmod 755 {} \;
# find . -type f -exec chmod 644 {} \;
Non-unix guy here, could you provide a little more context? How do I point that command at a specific pool and dataset?

User avatar
siftu
Moderator
Moderator
Posts: 71
Joined: 17 Oct 2012 06:36
Status: Offline

Re: permission issues when importing a ZFS pool

Post by siftu »

replace the "." with the path to the files and directories you want to change, it will do it recursively.

Code: Select all

find /path/to/files -type d -exec chmod 755 {} \;
find /path/to/files -type f -exec chmod 644 {} \;
the first one does directories "type d" the second does files "type f"
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/

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

Re: permission issues when importing a ZFS pool

Post by single_platinum »

siftu wrote:replace the "." with the path to the files and directories you want to change, it will do it recursively.

Code: Select all

find /path/to/files -type d -exec chmod 755 {} \;
find /path/to/files -type f -exec chmod 644 {} \;
the first one does directories "type d" the second does files "type f"
Thanks Siftu. Now how do I get this in the documentation so other people doing a pool import don't get stuck?
(it would be even better if NAS4free took care of this during import)

User avatar
siftu
Moderator
Moderator
Posts: 71
Joined: 17 Oct 2012 06:36
Status: Offline

Re: permission issues when importing a ZFS pool

Post by siftu »

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/

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

Re: permission issues when importing a ZFS pool

Post by single_platinum »

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.
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.

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
Starter
Posts: 19
Joined: 22 Jul 2013 15:10
Status: Offline

Re: permission issues when importing a ZFS pool

Post by justin »

single_platinum wrote:
siftu wrote:replace the "." with the path to the files and directories you want to change, it will do it recursively.

Code: Select all

find /path/to/files -type d -exec chmod 755 {} \;
find /path/to/files -type f -exec chmod 644 {} \;
the first one does directories "type d" the second does files "type f"
Thanks Siftu. Now how do I get this in the documentation so other people doing a pool import don't get stuck?
(it would be even better if NAS4free took care of this during import)
Yeh... next time, i'll do better.
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

Post Reply

Return to “ZFS (only!)”