Displaying 6 results from an estimated 6 matches for "full_set".
2010 Jan 25
6
Best practice for setting ACL
...lo forum.
I''m in the process of re-organizing my server and ACL-settings.
I''ve seen so many different ways of doing ACL, which makes me wonder how
I should do it myself.
This is obviously the easiest way, only describing the positive permissions:
/usr/bin/chmod -R A=\
group:sa:full_set:fd:allow,\
group:vk:read_set:fd:allow \
However, I''ve seen people split each line, so you getone for each
inheritance-setting:
group:sa:full_set:f:allow,\
group:sa:full_set:d:allow,\
group:vk:read_set:f:allow,\
group:vk:read_set:d:allow \
And some include all negative permissions, li...
2005 Oct 12
2
Help with act_as_nested_set
....join(", ")
end
display_children(root.direct_children) # Fiction, Non Fiction
display_children(non_fiction.direct_children) #Science[129], History[130],
Computers[131]
display_children(non_fiction.all_children) #Romance[135], Science
Fiction[136]
display_children(non_fiction.full_set) #Romance[135], Science
Fiction[136], Non Fiction[128], Science[129]
These
display_children(non_fiction.all_children) #Romance[135], Science
Fiction[136]
display_children(non_fiction.full_set) #Romance[135], Science
Fiction[136], Non Fiction[128], Science[129]
Look just...
2008 Nov 03
0
Some Samba questions
...ues with the "extended" ACLs (NFS
v4/Windows compliant?) setup by default - I am mounting it as the user
that owns/supposed to own the files. Can this be turned off and the
normal user/group/other type of permissions with "xattr=off" ? I''ve
used this:
chmod A+user:mike:full_set:file_inherit/dir_inherit:allow /tank
chmod A+user:mike:full_set:file_inherit/dir_inherit:allow /tank/foo
(assuming /tank is the base [I had no reason to name it anything
different :)], and zfs/foo is one of the filesystems)
It seemed to work but I am copying files from Linux -> my ZFS machine,...
2009 May 20
3
ZFS ACLs
...aving to do
with file, correct?
% cat >> file
zsh: permission denied: file
% mv file foo
mv: cannot rename file to foo: Permission denied
% rm file
rm: file: override protection 0 (yes/no)? y
rm: file not removed: Permission denied
So far, so good.
But then I can do this:
% chmod A=owner@:full_set:allow file
% ls -V file
-rwx------+ 1 abalfour root 1474560 May 11 18:43 file
owner@:rwxpdDaARWcCos:-------:allow
% rm file
%
I''ve tried this with all the aclmode values on the filesystem, and it''s
always the same behavior.
Am I missing something? Does the...
2006 Aug 06
2
better_nested_set plugin
...blings, that are the items sharing the
same parent and level
* self_and_siblings - array of itself and all siblings
* children_count - count of all immediate children
* children - array of all immediate childrens
* all_children - array of all children and nested children
* full_set - array of itself and all children and nested children
Subversion repository:
http://opensource.symetrie.com/svn/better_nested_set/trunk
README and code browsing
http://opensource.symetrie.com/trac/better_nested_set
It''s in its very early version, though I already use it for three...
2006 May 31
1
Help enhancing acts_as_nested_set
...ent
self.save
}
end
# Returns the number of nested children of this object.
def children_count
return (self[right_col_name] - self[left_col_name] - 1)/2
end
# Returns a set of itself and all of its nested children
def full_set
self.class.find(:all, :conditions => "(#{left_col_name} BETWEEN
#{self[left_col_name]} and #{self[right_col_name]})", :order =>
"#{left_col_name} ASC" )
end
# Returns a set of all of its children and nested children
def all_children...