+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1
    Connect's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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 ??


    Thank you


  2. #2
    Connect's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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;


    Code:
    chmod -R +a "<jsmith> allow read,write,delete" "/Users/xxxx/Documents/Permissions Test"
    If I check the permissions in finder before I run the above script I see the following;

    Name Privilege
    <jsmith> Read

    Once i've run the script I see;

    Name Privilege
    <jsmith> Custom
    <jsmith> Read

    I don't want to add another entry I just want to update the permissions to Read & Write

    Any help would be appreciated.

  3. #3
    AntonioRocco's Avatar
    Join Date
    Oct 2008
    Location
    South Yorkshire
    Posts
    254
    Thank Post
    9
    Thanked 106 Times in 90 Posts
    Rep Power
    38
    Hi

    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.

    HTH?

    Antonio Rocco (Apple Consultants Network)
    Last edited by AntonioRocco; 18th December 2013 at 06:34 PM.

  4. #4
    Connect's Avatar
    Join Date
    Sep 2009
    Location
    London
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 4
    Last Post: 30th April 2010, 12:29 PM
  2. Replies: 1
    Last Post: 23rd October 2009, 08:53 AM
  3. [Gentoo] setting up bridged connection for virtualbox
    By RabbieBurns in forum *nix
    Replies: 6
    Last Post: 6th July 2009, 06:19 AM
  4. setting up php/sql for a forum on 2008 x64
    By sted in forum Windows Server 2008
    Replies: 0
    Last Post: 1st July 2009, 08:25 AM
  5. setting up Office 2007 for the visually impaired
    By wesleyw in forum How do you do....it?
    Replies: 1
    Last Post: 11th March 2008, 09:47 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •