Well, sandbox sets ACL's not posix permissions. The sticky bit is a posix permission. Sand box will allow you to do something similar to the sticky bit using ACL's, but the exact duplication of the sticky bit is not possible, but something just as useful or more useful can be easily implemented.
To set the sticky bit you will need an app called FileXaminer or the Terminal.app command line.
to set the sticky bit simply put "1" in front of the the permissions number when you run chmod on the command line, here is an example:
chmod 1775 /users/data/shared #assigns permissions 775 and the sticky bit#
chmod 775 /users/data/shared #assigns permissions 775 without the sticky bit#
note: note actual use of the chmod and chown commands will, in most cases require the sudo (super user do) command to be used with them. example:
sudo chmod 1775 /users/data/shared #assigns temporary super user priviledge#
The way I set my shared user's directories with ACL's is this:
first I created folder /users/data -permissions=777 (everyone).
I had three users so I created folders for each in /users/data:
/users/data/user1 #this is just example-substitute real user name#
/users/data/user2
/users/data/user3 #etc,etc,#
set the posix permission on each user folder 700 (owner:read,write,execute)
set the owner and group on each one accordingly:
chown user1:staff /users/data/user1 #substitute real user name#
chown user2:staff /users/data/user2
chown user3:staff /users/data/user3 #(etc,etc)#
Now each user has their own data folder they can read and write to at will (when they are logged in to their user account).
They can safely create and maintain their data and no one can delete it.
Since these are shared data accounts. other users will need to read the data, this is where the ACL's come in.
You will need to use Sandbox to place ACL's for each allowed user, on each of the user directories:
0: user:joe inherited allow list,add
file,search,add_subdirectory,readattr,writeattr,readextattr,writeextattr,readsec urity,file_inherit,directoryinherit
1: user:mary inherited allow list,add
file,search,add_subdirectory,readattr,writeattr,readextattr,writeextattr,readsec urity,file_inherit,directoryinherit
2: user:sue inherited allow list,add
file,search,add_subdirectory,readattr,writeattr,readextattr,writeextattr,readsec urity,file_inherit,directoryinherit
Basically with the above ACL's the only thing the allowed user can't do is delete files. They can copy files, they can add files, etc. This behavior is somewhat similar to what can be accomplished with the sticky bit, but much more controlled and structured. That is the beauty of using ACL's.
Using SandBox you can taylor the permissions as you see fit for each every user. You can set permissions for an administrator to delete files as well. You can take away or add permissions for each user as you see fit. let your imagination be your guide.
ACL's weren't meant to replace posix permissions, but rather to allow administrators to fine tune user permissions.
Kj