Chris Murray
2009-Jul-14 17:48 UTC
[zfs-discuss] ZFS file permissions - some files missing over SMB?
Hello, Hopefully a quick and easy permissions problem here, but I''m stumped and quickly reached the end of my Unix knowledge. I have a ZFS filesystem called "fs/itunes" on pool "zp". In it, the "iTunes music" folder contained a load of other folders - one for each artist. During a resilver operation which was going to take a week, I decided to delete this data (amongst other things) and restore it from backup once the resilver was complete. It finished on Sunday night, so I started copying content from my Windows machine + an NTFS external disk, to "/zp/fs/itunes/iTunes music", using winscp. Now, if I browse to that folder over SMB from the Windows machine, I have a subset of all of the artist names, and I can''t identify exactly why some are there and others aren''t. I''m accessing it using the "sharesmb=on" option, and user "chris". So: * "\\mammoth\itunes\iTunes music" contains *some* folders. * If I winscp using user "chris" and browse to the same folder, everything is there. * Inspecting the properties on a folder that is visible, I see that it has group "staff", owner "chris", and permissions "0777". * A one that is visible in winscp but NOT through Windows has the same ... ?! I''m not sure what I''ve done here, but clearly there''s something I don''t understand about permissions. If I try to create one of the missing folders through Windows, I''m told "Cannot rename New Folder: A file with the name you specified already exists. Specify a different file name.", so they appear to be hidden from view in some way. Thanks in advance, Chris -- This message posted from opensolaris.org
Chris Murray
2009-Jul-14 18:10 UTC
[zfs-discuss] ZFS file permissions - some files missing over SMB?
The plot thickens ... I had a brainwave and tried accessing a ''missing'' folder with the following on Windows: explorer "\\mammoth\itunes\iTunes music\Dubfire" I can open files within it and can rename them too. So .. still looks like a permissions problem to me, but in what way, I''m not quite sure. Forgot to mention, I''m using SXCE b105. Thanks again. -- This message posted from opensolaris.org
Mark Shellenbaum
2009-Jul-14 18:35 UTC
[zfs-discuss] ZFS file permissions - some files missing over SMB?
Chris Murray wrote:> Hello, > > Hopefully a quick and easy permissions problem here, but I''m stumped and quickly reached the end of my Unix knowledge. > > I have a ZFS filesystem called "fs/itunes" on pool "zp". In it, the "iTunes music" folder contained a load of other folders - one for each artist. > > During a resilver operation which was going to take a week, I decided to delete this data (amongst other things) and restore it from backup once the resilver was complete. It finished on Sunday night, so I started copying content from my Windows machine + an NTFS external disk, to "/zp/fs/itunes/iTunes music", using winscp. > > Now, if I browse to that folder over SMB from the Windows machine, I have a subset of all of the artist names, and I can''t identify exactly why some are there and others aren''t. I''m accessing it using the "sharesmb=on" option, and user "chris". > > So: > * "\\mammoth\itunes\iTunes music" contains *some* folders. > * If I winscp using user "chris" and browse to the same folder, everything is there. > * Inspecting the properties on a folder that is visible, I see that it has group "staff", owner "chris", and permissions "0777". > * A one that is visible in winscp but NOT through Windows has the same ... ?! > > I''m not sure what I''ve done here, but clearly there''s something I don''t understand about permissions. If I try to create one of the missing folders through Windows, I''m told "Cannot rename New Folder: A file with the name you specified already exists. Specify a different file name.", so they appear to be hidden from view in some way. > > Thanks in advance, > ChrisThis is better asked on cifs-discuss at opensolaris.org The first thing they will ask you to do is to run http://opensolaris.org/os/project/cifs-server/files/cifs-gendiag -Mark
Chris Murray
2009-Jul-14 20:17 UTC
[zfs-discuss] ZFS file permissions - some files missing over SMB?
Thanks Mark. I ran the script and found references in the output to ''aclmode'' and ''aclinherit''. I had in the back of my mind that I''ve had to mess on with ZFS ACL''s in the past, aside from using chmod with the usual numeric values. That''s given me something to go on. I''ll post to cifs-discuss if I don''t get anywhere. Thanks for pointing me in the right direction. -- This message posted from opensolaris.org