Christian Flaig
2009-Aug-05 11:12 UTC
[zfs-discuss] ZFS CIFS problem with Ubuntu, NFS as an alternative?
Hello, I got a very strange problem here, tried out many things, can''t solve it. I run a virtual machine via VirtualBox 2.2.4, with Ubuntu 9.04. OpenSolaris as the host is 2009-06, with snv118. Now I try to mount (via CIFS) a share in Ubuntu from OpenSolaris. Mounting is successful, I can see all files, also change directories. But I can''t read the files! Whenever I try to copy a file, I get a "Permission denied" from Ubuntu. But when I mount the same share in Windows XP, I can read the files also. So might be an Ubuntu issue, anyone also experienced this? Any logs I can check/configure to find out more? Here the permissions for the directory (tmns is the user I use for mounting): dr-xr-xr-x+ 31 chris staff 588 Aug 4 23:57 video user:tmns:r-x---a-R-c---:fd-----:allow user:chris:rwxpdDaARWcCos:fd-----:allow (The "x" shouldn''t be necessary, but XP seems not able to list subdirectories without it...) So I thought about using NFS instead, which should be better for an Unix - Unix connection anyway. But here I face another issue, which might be because of missing knowledge about NFS... I share the "video" directory above with the ZFS sharenfs command, options are "anon=0,ro". Without "anon=0" I always get a "Permission denied" when I want to mount the share via NFS on Ubuntu (mounting with root user). But with "anon=0" I can only read the files on the Ubuntu side with root, the mounted directory had numerical ids for owner and group on the Ubuntu side. Any clue how I can solve this? Many thanks for your help, I''m not sure how to progress on this... Cheers, Chris -- This message posted from opensolaris.org
Christian Flaig
2009-Aug-05 12:00 UTC
[zfs-discuss] ZFS CIFS problem with Ubuntu, NFS as an alternative?
Little update... I can read files (within the share) with the following ACL: -r--r--r--+ 1 chris staff 35 Aug 5 13:18 zzzzzzzz.txt user:tmns:r-x---a-R-c---:------I:allow user:chris:rwxpdDaARWc--s:------I:allow everyone@:r-----a-R-c--s:-------:allow (Line with "everyone@" is added compared to the first posting.) I thought the ZFS CIFS server would map the user used for mouting (tmns) to the local user tmns, and I wouldn''t need the "everyone" line... Anything wrong with my thought? Thanks for your help. Chris -- This message posted from opensolaris.org
Mark Shellenbaum
2009-Aug-05 14:10 UTC
[zfs-discuss] ZFS CIFS problem with Ubuntu, NFS as an alternative?
Christian Flaig wrote:> Hello, > > I got a very strange problem here, tried out many things, can''t solve it. > I run a virtual machine via VirtualBox 2.2.4, with Ubuntu 9.04. OpenSolaris as the host is 2009-06, with snv118. Now I try to mount (via CIFS) a share in Ubuntu from OpenSolaris. Mounting is successful, I can see all files, also change directories. But I can''t read the files! Whenever I try to copy a file, I get a "Permission denied" from Ubuntu. But when I mount the same share in Windows XP, I can read the files also. So might be an Ubuntu issue, anyone also experienced this? Any logs I can check/configure to find out more? > Here the permissions for the directory (tmns is the user I use for mounting): > dr-xr-xr-x+ 31 chris staff 588 Aug 4 23:57 video > user:tmns:r-x---a-R-c---:fd-----:allow > user:chris:rwxpdDaARWcCos:fd-----:allow > (The "x" shouldn''t be necessary, but XP seems not able to list subdirectories without it...) > > So I thought about using NFS instead, which should be better for an Unix - Unix connection anyway. But here I face another issue, which might be because of missing knowledge about NFS... > I share the "video" directory above with the ZFS sharenfs command, options are "anon=0,ro". Without "anon=0" I always get a "Permission denied" when I want to mount the share via NFS on Ubuntu (mounting with root user). But with "anon=0" I can only read the files on the Ubuntu side with root, the mounted directory had numerical ids for owner and group on the Ubuntu side. > Any clue how I can solve this? > > Many thanks for your help, I''m not sure how to progress on this... > > Cheers, > > ChrisThis is better asked on cifs-discuss at opensolaris.org They will start out by asking you to run: http://opensolaris.org/os/project/cifs-server/files/cifs-gendiag -Mark
Afshin Salek
2009-Aug-05 19:20 UTC
[zfs-discuss] [cifs-discuss] ZFS CIFS problem with Ubuntu, NFS as an alternative?
How does the permission look like on one of these files that you have problem copying? A network trace would also be helpful. Start the trace before you do the mount to have a complete context, and stop it after trying to copy a file. Don''t do any extra stuff between mounting and copying so the trace is not polluted. You can use any tool on the client or the server to capture the traffic. If you are sending the trace also send the name of the file with problem and the permissions on that file. Thanks, Afshin Mark Shellenbaum wrote:> Christian Flaig wrote: >> Hello, >> >> I got a very strange problem here, tried out many things, can''t solve it. >> I run a virtual machine via VirtualBox 2.2.4, with Ubuntu 9.04. >> OpenSolaris as the host is 2009-06, with snv118. Now I try to mount >> (via CIFS) a share in Ubuntu from OpenSolaris. Mounting is successful, >> I can see all files, also change directories. But I can''t read the >> files! Whenever I try to copy a file, I get a "Permission denied" from >> Ubuntu. But when I mount the same share in Windows XP, I can read the >> files also. So might be an Ubuntu issue, anyone also experienced this? >> Any logs I can check/configure to find out more? >> Here the permissions for the directory (tmns is the user I use for >> mounting): >> dr-xr-xr-x+ 31 chris staff 588 Aug 4 23:57 video >> user:tmns:r-x---a-R-c---:fd-----:allow >> user:chris:rwxpdDaARWcCos:fd-----:allow >> (The "x" shouldn''t be necessary, but XP seems not able to list >> subdirectories without it...) >> >> So I thought about using NFS instead, which should be better for an >> Unix - Unix connection anyway. But here I face another issue, which >> might be because of missing knowledge about NFS... >> I share the "video" directory above with the ZFS sharenfs command, >> options are "anon=0,ro". Without "anon=0" I always get a "Permission >> denied" when I want to mount the share via NFS on Ubuntu (mounting >> with root user). But with "anon=0" I can only read the files on the >> Ubuntu side with root, the mounted directory had numerical ids for >> owner and group on the Ubuntu side. >> Any clue how I can solve this? >> >> Many thanks for your help, I''m not sure how to progress on this... >> >> Cheers, >> >> Chris > > > This is better asked on cifs-discuss at opensolaris.org > > They will start out by asking you to run: > > http://opensolaris.org/os/project/cifs-server/files/cifs-gendiag > > > -Mark > _______________________________________________ > cifs-discuss mailing list > cifs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Alan M Wright
2009-Aug-05 20:33 UTC
[zfs-discuss] [cifs-discuss] ZFS CIFS problem with Ubuntu, NFS as an alternative?
On 08/05/09 07:10, Mark Shellenbaum wrote:> Christian Flaig wrote: >> Hello, >> >> I got a very strange problem here, tried out many things, can''t solve it. >> I run a virtual machine via VirtualBox 2.2.4, with Ubuntu 9.04. >> OpenSolaris as the host is 2009-06, with snv118. Now I try to mount >> (via CIFS) a share in Ubuntu from OpenSolaris. Mounting is successful, >> I can see all files, also change directories. But I can''t read the >> files! Whenever I try to copy a file, I get a "Permission denied" from >> Ubuntu. But when I mount the same share in Windows XP, I can read the >> files also. So might be an Ubuntu issue, anyone also experienced this? >> Any logs I can check/configure to find out more? >> Here the permissions for the directory (tmns is the user I use for >> mounting): >> dr-xr-xr-x+ 31 chris staff 588 Aug 4 23:57 video >> user:tmns:r-x---a-R-c---:fd-----:allow >> user:chris:rwxpdDaARWcCos:fd-----:allow >> (The "x" shouldn''t be necessary, but XP seems not able to list >> subdirectories without it...)Why do you think the "x" is unnecessary? Alan>> So I thought about using NFS instead, which should be better for an >> Unix - Unix connection anyway. But here I face another issue, which >> might be because of missing knowledge about NFS... >> I share the "video" directory above with the ZFS sharenfs command, >> options are "anon=0,ro". Without "anon=0" I always get a "Permission >> denied" when I want to mount the share via NFS on Ubuntu (mounting >> with root user). But with "anon=0" I can only read the files on the >> Ubuntu side with root, the mounted directory had numerical ids for >> owner and group on the Ubuntu side. >> Any clue how I can solve this? >> >> Many thanks for your help, I''m not sure how to progress on this... >> >> Cheers, >> >> Chris > > > This is better asked on cifs-discuss at opensolaris.org > > They will start out by asking you to run: > > http://opensolaris.org/os/project/cifs-server/files/cifs-gendiag > > > -Mark > _______________________________________________ > cifs-discuss mailing list > cifs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/cifs-discuss
Christian Flaig
2009-Aug-06 09:39 UTC
[zfs-discuss] [cifs-discuss] ZFS CIFS problem with Ubuntu, NFS as an alternative?
Afshin, thanks for the response. You seem to be everywhere on the forum... Respect... :-) The ACL on the files I tried are the same, I always do a "chmod -R" when changing ACLs on the dataset/directory. You got a recommendation for a network trace tool? I could do it on OpenSolaris (file server) or Ubuntu (client, virtual machine on VBox 2.2.4). I''m not familiar with making network traces. Many thanks for your help. Chris -- This message posted from opensolaris.org
Christian Flaig
2009-Aug-06 09:41 UTC
[zfs-discuss] [cifs-discuss] ZFS CIFS problem with Ubuntu, NFS as an alternative?
Alan, I thought the "read_set" of the ACLs should be enough to list directories and subdirectories, and read files of course... And this set does not include the execute right. Obviously I was wrong... :-) Cheers, Chris -- This message posted from opensolaris.org