Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[Samba] zfs acls and MS office applications

 
   Soft32 Home -> Linux -> Samba RSS
Next:  [gentoo-user] Machine reboots immediately when su..  
Author Message
Tom Lieuallen

External


Since: Oct 21, 2009
Posts: 1



(Msg. 1) Posted: Tue Oct 20, 2009 9:20 pm
Post subject: [Samba] zfs acls and MS office applications
Archived from groups: linux>samba (more info?)

I'm trying to use zfs acls in solaris 10. I've looked at past posts
regarding this and some online help, but am stuck. I'm currently using
samba 3.3.9; I've had the same problem with 3.3.7. samba is compiled
and running as an Active Directory member server (compiled with ldap and
kerberos). The zfs disk is local. I'm not using winbind. I compiled
with zfsacl module.

Permissions appear just fine in solaris. Plus I can read/write with
notepad and use other applications such as acrobat. However, Microsoft
Office 2007 won't open or save files. I haven't tried other versions of
Office; they're not handy.

The following is the configuration for the share:

[testzfs]
comment = test
path = /moe2
browseable = true
public = false
writable = true
inherit permissions = yes
acl check permissions = False
vfs objects = zfsacl
inherit acls = yes
nfs4: mode = simple
nfs4: acedup = merge
zfsacl: acesort = dontcare
map archive = no
map hidden = no
map read only = no
map system = no

The zfs permissions I'm testing look like this. This is for the parent
directory; files within have the same permissions (sans the inheritance).


moe-lh /moe2/office/student_workers 546# ls -vd .
drwxrws---+ 2 toml cefac 5 Oct 20 18:36 ./
0:group:cefac:list_directory/read_data/add_file/write_data
/add_subdirectory/append_data/write_xattr/execute/write_attributes
/write_acl/write_owner:file_inherit/dir_inherit/inherit_only:allow
1:group:cefac:list_directory/read_data/add_file/write_data
/add_subdirectory/append_data/write_xattr/execute/write_attributes
/write_acl/write_owner:allow
2:group:ceoffstu:list_directory/read_data/add_file/write_data
/add_subdirectory/append_data/write_xattr/execute/write_attributes
/write_acl/write_owner:file_inherit/dir_inherit/inherit_only:allow
3:group:ceoffstu:list_directory/read_data/add_file/write_data
/add_subdirectory/append_data/write_xattr/execute/write_attributes
/write_acl/write_owner:allow
4:group:ceoffstu:list_directory/read_data/add_file/write_data
/add_subdirectory/append_data/write_xattr/execute/write_attributes
/write_acl/write_owner:allow
5:owner@::deny
6:owner@:list_directory/read_data/add_file/write_data/add_subdirectory
/append_data/write_xattr/execute/write_attributes/write_acl
/write_owner:allow
7:group@::deny
8:group@:list_directory/read_data/add_file/write_data/add_subdirectory
/append_data/execute:allow
9:everyone@:list_directory/read_data/add_file/write_data
/add_subdirectory/append_data/write_xattr/execute/write_attributes
/write_acl/write_owner:deny
10:everyone@:read_xattr/read_attributes/read_acl/synchronize:allow


thank you

Tom Lieuallen
Oregon State University
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Gaiseric Vandal

External


Since: Oct 12, 2009
Posts: 7



(Msg. 2) Posted: Wed Oct 21, 2009 9:20 am
Post subject: Re: [Samba] zfs acls and MS office applications [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I ran into the following two related problems with samba 3.0.xx and
Solaris 10 and ZFS

1. With Word, Excel or PowerPoint 2003 you could save the document
maybe 4 times but on the 5th time you wouldn't be able to save the file
- or worse it would disappear.

The issue seemed to be that for the first 4 saves, the MS App would
merely modify the document. But with the 5th save it writes the
document out in full to a new file and deletes the old. Also, rather
than allowing the new file to just inherit file permissions, the app
will explicitly set the ACE's. Visual Studio does this as well.


ZFS inheritance is ignored if Windows inheritance is used.



2. On unix level, you might "chmod 770 somefile" to allow anyone in the
group to access the file. "Other" is not explicitly permitted but
not explictly denied. So the in effect "everyone else" does not have
access.

But in Windows, this "other is not explicitly" permitted can be
interpreted as "everyone is explicitly denied." Something similar can
happen with group perms. Although supposedly the correct ACE ordering
shd have avoided this.

Nt.

I used the samba packages bundled with Solaris. They have the zfs
module backported from newer samba versions. If I compiled Samba 3.0.x
from scratch I did not get zfs support and the winbind functionality was
broken.

However, Sun doesn't do a great job of documenting any of this.




On 10/20/09 22:01, Tom Lieuallen wrote:
>
> I'm trying to use zfs acls in solaris 10. I've looked at past posts
> regarding this and some online help, but am stuck. I'm currently
> using samba 3.3.9; I've had the same problem with 3.3.7. samba is
> compiled and running as an Active Directory member server (compiled
> with ldap and kerberos). The zfs disk is local. I'm not using
> winbind. I compiled with zfsacl module.
>
> Permissions appear just fine in solaris. Plus I can read/write with
> notepad and use other applications such as acrobat. However,
> Microsoft Office 2007 won't open or save files. I haven't tried other
> versions of Office; they're not handy.
>
> The following is the configuration for the share:
>
> [testzfs]
> comment = test
> path = /moe2
> browseable = true
> public = false
> writable = true
> inherit permissions = yes
> acl check permissions = False
> vfs objects = zfsacl
> inherit acls = yes
> nfs4: mode = simple
> nfs4: acedup = merge
> zfsacl: acesort = dontcare
> map archive = no
> map hidden = no
> map read only = no
> map system = no
>
> The zfs permissions I'm testing look like this. This is for the
> parent directory; files within have the same permissions (sans the
> inheritance).
>
>
> moe-lh /moe2/office/student_workers 546# ls -vd .
> drwxrws---+ 2 toml cefac 5 Oct 20 18:36 ./
> 0:group:cefac:list_directory/read_data/add_file/write_data
>
> /add_subdirectory/append_data/write_xattr/execute/write_attributes
>
> /write_acl/write_owner:file_inherit/dir_inherit/inherit_only:allow
> 1:group:cefac:list_directory/read_data/add_file/write_data
>
> /add_subdirectory/append_data/write_xattr/execute/write_attributes
> /write_acl/write_owner:allow
> 2:group:ceoffstu:list_directory/read_data/add_file/write_data
>
> /add_subdirectory/append_data/write_xattr/execute/write_attributes
>
> /write_acl/write_owner:file_inherit/dir_inherit/inherit_only:allow
> 3:group:ceoffstu:list_directory/read_data/add_file/write_data
>
> /add_subdirectory/append_data/write_xattr/execute/write_attributes
> /write_acl/write_owner:allow
> 4:group:ceoffstu:list_directory/read_data/add_file/write_data
>
> /add_subdirectory/append_data/write_xattr/execute/write_attributes
> /write_acl/write_owner:allow
> 5:owner@::deny
>
> 6:owner@:list_directory/read_data/add_file/write_data/add_subdirectory
> /append_data/write_xattr/execute/write_attributes/write_acl
> /write_owner:allow
> 7:group@::deny
>
> 8:group@:list_directory/read_data/add_file/write_data/add_subdirectory
> /append_data/execute:allow
> 9:everyone@:list_directory/read_data/add_file/write_data
>
> /add_subdirectory/append_data/write_xattr/execute/write_attributes
> /write_acl/write_owner:deny
> 10:everyone@:read_xattr/read_attributes/read_acl/synchronize:allow
>
>
> thank you
>
> Tom Lieuallen
> Oregon State University

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Jeremy Allison

External


Since: May 02, 2007
Posts: 523



(Msg. 3) Posted: Wed Oct 21, 2009 1:20 pm
Post subject: Re: [Samba] zfs acls and MS office applications [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, Oct 21, 2009 at 09:30:16AM -0400, Gaiseric Vandal wrote:
> I ran into the following two related problems with samba 3.0.xx and
> Solaris 10 and ZFS
>
> 1. With Word, Excel or PowerPoint 2003 you could save the document
> maybe 4 times but on the 5th time you wouldn't be able to save the file
> - or worse it would disappear.
>
> The issue seemed to be that for the first 4 saves, the MS App would
> merely modify the document. But with the 5th save it writes the
> document out in full to a new file and deletes the old. Also, rather
> than allowing the new file to just inherit file permissions, the app
> will explicitly set the ACE's. Visual Studio does this as well.

Samba 3.2 and above has much better support for ZFS (NFSv4-style) ACLs.

I suggest trying a later Samba release on Solaris.

Jeremy.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Samba] Samba 3.0.0 -- ACLs are unusable due to UID/SID ma.. - Hi, I am sure somebody asks this question about once a week. Since I have not found an answer I assume the worst -- i...

[Samba] Proof my LDAP indices & ACLs for Samba 3.0.1? - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Can someone check these over for me? I think I might be doing something....

[Samba] ACLs through Apache on SuSe 8.2 ? - Hi, we are running a samba 2.2.8a server with ACL-Support on a SuSe 8.2. There are some file access restrictions made....

[Samba] Ext3 ACLS / pdbedit questions - Software: OS: RedHat 9 SMB Ver: 3.0.0(+excel patch) OpenLDAP Ver: 2.0.27-8 (backend) I've noticed that when..

[Samba] SAMBA + ACLS +XFS PROBLEMS !! - Hello you all, I am trying to set up a samba server with nt acl suport and i am having many troubles, help will be ver...

[Samba] Samba Share ACLs - Hi all, I have already set up a Samba 3.0 with Openldap as user repository. I have a question about share access..
       Soft32 Home -> Linux -> Samba All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]