Page 1 of 1
permission issues when importing a ZFS pool
Posted: 24 Sep 2013 13:42
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.
Re: permission issues when importing a ZFS pool
Posted: 24 Sep 2013 16:55
by justin
I should say try in cli:
# find . -type d -exec chmod 755 {} \;
# find . -type f -exec chmod 644 {} \;
Re: permission issues when importing a ZFS pool
Posted: 24 Sep 2013 19:05
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?
Re: permission issues when importing a ZFS pool
Posted: 24 Sep 2013 20:28
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"
Re: permission issues when importing a ZFS pool
Posted: 24 Sep 2013 23:37
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)
Re: permission issues when importing a ZFS pool
Posted: 25 Sep 2013 01:05
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.
Re: permission issues when importing a ZFS pool
Posted: 25 Sep 2013 01:59
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?
Re: permission issues when importing a ZFS pool
Posted: 25 Sep 2013 13:12
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.