Mac Thread, Setting up scheduled task for user permission on mac using server admin in Technical; when a user copies from a windows directory to the mac directory this is causing permission issues, i was to ...
10th December 2013, 12:00 PM #1
Setting up scheduled task for user permission on mac using server admin
when a user copies from a windows directory to the mac directory this is causing permission issues, i was to know how to generate a shceduled task to run that will re-apply permission each morning, i know you use Automator to run scheduled task but how would i set this up so it propagates the permissions ??
18th December 2013, 09:48 AM #2
I've created an automator workflow to propagate permissions on a directory however i'm having some trouble over writing existing permissions.
This is the script;
If I check the permissions in finder before I run the above script I see the following;
chmod -R +a "<jsmith> allow read,write,delete" "/Users/xxxx/Documents/Permissions Test"
Once i've run the script I see;
I don't want to add another entry I just want to update the permissions to Read & Write
Any help would be appreciated.
18th December 2013, 06:20 PM #3
You could try:
chmod -R +ai "user:jsmith allow readattr,readextattr,readsecurity,read,execute,lis t,search,writeattr,writeextattr,delete,write,appen d,delete_child,add_file,add_subdirectory,file_inhe rit,directory_inherit" /Users/xxxx/Documents/Permissions Test
The above is all on one line and must be run as root.
I know you know this but I hope the following might help others?
Firstly it’s important to understand that Macs are first and foremost a ‘nix’ box and secondly I’m hoping the brief explanation that follows of the permission models available on the platform might help you find the correct combination?
There is the standard POSIX (because it’s fundamentally a ‘nix’ OS as explained earlier) permissions and ACLs or Access Control Lists. ACLs are similar but not exactly the same as what you see on the Windows platform. ACLs propagate wheras POSIX don’t. Both work in conjunction with each other although ACLs do supercede/override POSIX. The order in which the permissions models are applied is also important. For example an ACL deny will override a POSIX allow as it will always be listed first (as you view it) using the Finder.
It’s best to see what permissions are applied using the command line (rather than the Finder) and the basic command that will allow you do this is ls. For example:
ls -lae /Users/whatevertheusernameis
you can compare the output of:
ls -lae /Users
to the one above and you should see the @ symbol beside username. In Terminal standard POSIX will always look like this:
drwxr-xr-x 7 username staff 12292 4 Dec 13:24 .
Whereas the same thing with an ACL applied will look like this:
drwxr-xr-x+ 47 username staff 1598 4 Dec 13:24 .
0: group:everyone deny delete
You can’t eliminate POSIX permissions as all the config files and directories in /etc and /var rely on them. Both of these (and others) are hidden from the GUI. Without these files/directories and associated permissions the platform simply won’t work. Furthermore few of these files/directories are involved in presenting the shiny GUI the platform is known for.
It’s OK practice to apply permissions using the Finder (on the client OS only) which accesses the POSIX model only. To apply ACLs you need to use the command line. Once you use ‘chown’ and/or ‘chmod’ in the appropriate format you’ll see another username is applied with the ‘custom’ flag alongside. This is by design and is normal behaviour.
Antonio Rocco (Apple Consultants Network)
Last edited by AntonioRocco; 18th December 2013 at 06:34 PM.
20th December 2013, 08:56 AM #4
Thanks for your help Antonio, I should be able to complete my script with this info.
Last edited by Connect; 20th December 2013 at 08:59 AM.
By S1MSMAN in forum MIS Systems
Last Post: 30th April 2010, 12:29 PM
Last Post: 23rd October 2009, 08:53 AM
By RabbieBurns in forum *nix
Last Post: 6th July 2009, 06:19 AM
By sted in forum Windows Server 2008
Last Post: 1st July 2009, 08:25 AM
By wesleyw in forum How do you do....it?
Last Post: 11th March 2008, 09:47 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread