Set default directory and file permissions

I'm trying to use setfacl to set the default permissions for directories and files but I get an error saying "sudo: setfacl: command not found." What I am trying to do is share a specific directory on a local external drive connected by Thunderbolt. Everyone in the group has access to the drive and can view all the files but once a new file is created, the group permissions are not updated. Here is an example of two PDF file. The one created by userA only has permissions for that user where the file created by userB allows all users to open and modity the file.
-rw-------   1 userA    staff   1988176 Feb 13 15:09 TestFile01.pdf
-rwxr-----+  1 userB  staff   1827102 Feb 13 15:05 TestFile02.pdf
0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity
I can manually update the permissions through the Get Info window but this requires me to reset permissions every time a person saves a new file to the drive. There needs to be a way to do this automatically.
Here is what I tried but the setfacl command is not supported.
sudo setfacl -Rdm g:GroupName:rwx /DirectoryPath

Thanks Frank. I have an externat drive connected to my Mac via Thunderbolt. On this drive I have a specific directory that I'm shairing with Mac and PC users. I've created a group on the network to limit access to this directory to specific users. That works perfectly. The issue I'm having is when one of these users creates a new file in this directory or any of it's subdirectories, no one has permission to open or edit the file. Right now I'm using Get Info to modify the permissions of the folder and all enclosed items. When I check the permissions of the files I've "corrected" I notice this extra imformation "0: group:MarketingGroup allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity." This is not included when I check the permissions of items saved by other uses in the group.
So my question is how do I set the default permissions for this directory so every new file and directory will have the correct permissions to allow anyone in this group full access to open and modify every file?
Thanks for your help!!!!

Similar Messages

  • Directory and file permissions in Oracle EBS R12.2.4

    Hi there
    I beleive that a typical R12.2.4 Linux x86-64 based environment has following directory structure under the installation directory (/u01/oracle/<SID>)
    11.2.0  data  fs1  fs2  fs_ne
    So my question here is what should be the permission level of these directories (and their subdirectories) and the files underneath them. I am looking for permissions for both Database Tier and Application Tier directories and associated files. Is there a published Oracle Support document for this?
    Regards
    Kabeer

    But by memory I recall that the files underneath the DB and Apps Tier's directories were having lesser permissions. And that's where I was asking to make sure.
    The list of files/directories with the permissions are not documented and the only way to revert back to the original values which are set by Rapid Install is re-running the installation again.
    If this instance is used for practice only you may keep permissions the way they are now as long as the application/database work with no issues.
    Thanks,
    Hussein

  • How to set default directory for SQL LOADER

    hi all,
    i wanted to know how can we setup a default directory for SQL LOADER if at all we can. i connot place my control and data files in local system and use them at command prompt. rather i wanted to know if we can set default directory that the loader can use. this requirement is basically to enable all the clients to upload the data placed on the server and use the loader utility.
    thanks in advance,
    Basavraj

    Ella,
    You don't say which version of SQL Developer you are using via Citrix, but just setting the SQLDEVELOPER_USER_DIR hasn't worked for a long time (see Re: SQLDEVELOPER_USER_DIR does not function anymore). Also, since version 1.5, the default for the user directory (now set via ide.user.dir as shown below) is under the user profile area (relative to %APPDATA%), which you should be able to write to, even on Citrix.
    Assuming that neither of those help, you will need to get whoever installed SQL Developer on the Citrix C: drive to modify the sqldeveloper.conf to have a line like, where the path exists for everyone who will be using the shared SQL Developer (assumes everyone has a H: drive):
    AddVMOption -Dide.user.dir=H:\sqldeveloperAn alternative (depending on how you start SQL Developer via Citrix), is to create your own shortcut to start SQL Developer with something like:
    sqldeveloper -J-Dide.user.dir="%SQLDEVELOPER_USER_DIR%"theFurryOne

  • Read application server directory and file

    Hi,
      I'm using the FM "RZL_READ_DIR_LOCAL" to retrieve the application server directory and filename.  The returned result contain all the directory name and filename.  Is there any other FM can separate the result into directory and file??
    Regards,
    Kit

    hi
    Ya One more FM is there - Call Function Gui Upload.
    It will read the file from the app server.
    See this Example:-
    Refer this:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *                     &----
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.
    reward if help.

  • Setting save directory and filename based on fillable form fields.

    Hello,
    I'm new to .pdf development in Acrobat. I'm trying to create a form which allows users to fill in data, then save a copy of the form to a directory and file name which will be based upon several of the fields in the document. Is this method of saving possible? I've tried a script but can't seem to make the process work.
    Thanks for the help!

    It's possible, but the code that does the actual save (using the doc.saveAs JavaScript method) needs to be in a folder-level JavaScript file and further in a trusted function and app.beginPriv/app.endPriv block:
    http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript
    http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.173.html
    or in a certified document that the user chooses to trust to execute privileged code. If you've done either of these, can you post the code you're using?

  • How can I get Directory and Files from a Maped Networkdrive of the AppS

    Hello,
    we have the following Situation.
    We have a Windows-Server (Server-A) in an Network with ActivDirectory and an Windows-Server (Server-B with an WebApplicationServer outside of these ActivDirectory as standalone.
    On Server-B we mapped a Directory from Server-A (FileExplorer and then MapNetworkDrives) as Drive Q.
    Now i tried to get the Directory of Q:\abcd but it doesn't work.
    I tried the FM EPS_GET_DIRECTORY_LISTING and also RZL_READ_DIR, but both doesn't worked.
    RZL_READ_DIR is doing a "CALL 'ALERTS' ..." and is comming back with sy-subrc = 1
    EPS_GET_DIRECTORY_LISTING is doing a "CALL 'C_DIR_READ_FINISH'..." and comes back with "Wrong order of calls" in the Field file-errmsg. Next Call is "CALL 'C_DIR_READ_START'..." and this comes back with "opendir" in Field file-errmsg.
    I tried the same with two Servers in the same ActivDirectory-Network. The Result was the same, i don't get the directory of the mapped drive. But now i get from the Call "CALL 'C_DIR_READ_START'..." the file-errmsg "opendir: Not a directory" and file-errno 20.
    Is there any idea for solving my Problem?
    I have to get this directory, read the files from the List and have to rename them after wriing the data to our databasefile.
    I want to read them with OPEN DATASET, rename them by writing a new File (also OPEN DATASET) and after that i do an DELETE DATASET.
    Thanks and Greetings Matthias
    Edited by: Matthias Horstmann on Mar 25, 2009 4:12 PM
    Filled in Scenario with 2 Servers in same AD-Network

    Halo Mattias,
    i using this function get file file name and directory:
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = p_file.
    Rgds,
    Wilibrodus

  • How to set default value and bg color of cross tab cell?

    Hi all
    Which way can I set default value and background color for a crosstab cell where there are no any data?
    I try to pass it in following way
    if isnull(CurrentFieldValue) then
    But is has no effect.

    Hi,
    If your field is numeric
    if currentfieldvalue =0 then cryellow else crnocolor
    if the field is numeric but you don't see the 0 check check if : Suppress if zero is ticked in the Number format tab.
    Regards

  • How to set default currency and Country in R12 financial modules

    Hi all,
    How to set default currency and Country in R12 financial modules (AR,AP,GL,FA,CE) becuase I found some default settings are shown "USD" & "United States" such as create AR Customer, the Country is shown the default "United States"....
    Can anybody advise ?
    Thanks & Regards,

    Hi,
    Change the below profile for the user to a territory different than the US :
    In System Administrator, navigate to Profiles -> System.
    Select Site, Application, and Responsibility.
    Profile options:
    Default Country
    HZ: Reference Territory
    ICX: Territory
    Regards,
    Raju.

  • Post-Installation of RAC: main directory and file to set ORACLE_HOME ?

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have just finished installing Grid infrastructure and RAC database 11gR2 successfully.
    After that, I add the entries into the file /home/ora11g/.bash_profile as below:
    export ORACLE_SID=racdb2;
    export ORACLE_HOME=/u02/11g_db/ora11g/racdb;
    export GRID_HOME=/u01/app/grid;
    PATH=$GRID_HOME/bin:$ORACLE_HOME/bin:$PATH; export PATH;
    After that, I run the following command:
    [ora11g@rac2 /]$ /u02/11g_db/ora11g/racdb/bin/srvctl config database -d racdb
    Its output:
    ORACLE_HOME environment variable is not set.
    ORACLE_HOME should be set to main directory that contains Oracle products.
    Set and export ORACLE_HOME and then re-run.
    My questions are:
    First, I have added entries into the file /home/ora11g/.bash_profile. Why it still says "ORACLE_HOME environment variable is not set" ? Is this way wrong ?
    Second, what are the main directory and the file to set ORACLE_HOME ?
    Thanks.

    Folks,
    Hello. Thanks a lot for replying. I reboot OS and run the commands as below:
    [ora11g@rac2 bin]$ ./srvctl config database -d racdb
    Its output:
    PRCD-1027 : Failed to retrieve database racdb
    PRCR-1070 : Failed to check if resource ora.racdb.db is registered
    Cannot communicate with crsd
    [ora11g@rac2 bin]$ ./sqlplus
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Mar 9 15:28:59 2012
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Enter user-name: SYS
    Enter password: SYS
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name: SYSTEM
    Enter password: SYSTEM
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    Enter user-name: SYSMAN
    Enter password: SYSMAN
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    Process ID: 0
    Session ID: 0 Serial number: 0
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    [ora11g@rac2 bin]$
    As we see the outputs above for the 2 commands "srvctl" and "sqlplus", my questions are:
    First, why cannot retrieve database racdb ?
    Second, sqlplus is poped up. Why users SYS, SYSTEM, SYSMAN cannot log in ?
    Third, does my RAC database installation have problems ?
    Thanks.

  • Copy usernames and file permissions from old workgroup to new Active Directory

    Hi,
    I have a Windows Server 2003 R2 with about 60 users, 100 shared folders and 5000 subfolders. Each folder has share and protection permissions. Each subfolder has protection permissions. No active directory.
    I need to install Windows Server 2012 R2 (as Primary Domain Controller) and re-create
    the same users (which can have different guid but with the same username as the old server)
    the same shared folders, with the same permission as the old server granted to the users
    the same subfolders, with the same permission as the old server granted to the users
     all under Active Directory.
    Is there a way to automate these steps?
    Thanks!

    Look in script repository for scripts that export local users and groups.
    You will have to learn how these two systems work and develop a script / method for translating between the two systems.  It is very dependent on what has been don on old system.  Using USMT and MDT would be the best. 
    Post in the deployment forum for instructions on how to use the MDT to migrate users in a batch.  You would start by adding the 2003 server to the 2012 domain and then the MDT can be customized to do the move.
    https://technet.microsoft.com/en-us/windows/dn475741.aspx?f=255&MSPPError=-2147217396
    https://social.technet.microsoft.com/Forums/en-US/home?forum=mdt
    ¯\_(ツ)_/¯

  • Default directory for FIle Manager

    Hi,
    I am working on file manager for my final year project. I am using jsp, Tomcat and Linux as OS.
    The question is,
    "Is there any way to authenticate users from OS(linux or windows 2000) and how can i set user home directory(e.g. home/sahsan/) to my file manager default directory"
    I really appreciate if anybody help me in this regard. I am ready to read any article,tutorial or even any book chapter for this purpose. Coding Help will be best choice ;-)
    Thank you.
    Regards,
    Syed Ahsan

    I am not sure, i am in search of the code as well. pls let me know if u come across something. i will keep u posted if i know some.........
    Riz

  • How to recreate ~/.ssh directory and files

    Hi Folks,
    I have a 10.4 user without the hidden .ssh directory and all the usual files within that directory (id_rsa, id_rsa.pub, known_hosts) due to a munged account, and am now wanting to know to recreate those files so I can SSH back to this machine.
    Any tips/ideas much appreciated.
    Thanks!
    Doug

    I have a 10.4 user without the hidden .ssh directory and all the usual files within that directory (id_rsa, id_rsa.pub, known_hosts) due to a munged account, and am now wanting to know to recreate those files so I can SSH back to this machine.
    ssh-keygen -t rsa
    will create the .ssh directory and the rsa files. known_hosts will be created as the account is used to ssh/scp/sftp into other accounts.
    If other systems are to be allowed to login to this account, then copy their id_rsa.pub files and append them to .ssh/authorized_keys. That will allow them access to this account.
    And if this account is suppose to be able to login to other systems, append the newly created id_rsa.pub file to the other system account's .ssh/authorized_keys file.
    Check *man ssh* to make sure all permissions are set correctly. If some of the files and/or directories are too permissive, ssh will not work correctly, as it will assume your account can be compromised.

  • NFS Mounted Directory And Files Quit Responding

    I mounted a remote directory using NFS and I can access the mount point and all of its sub-directories and files. After a while, all of the sub-directories and files no longer respond when clicked; in column view there is no longer an icon nor any statistics for those files. If I go back and click on Network->Servers->myserver->its_subdirectories, it will eventually respond again.
    I have found no messages in the system log. And nfsstat shows no errors.
    I am using these these mount parameters with the Directory Utility->Mounts tab:
    ro net -P -T -3
    Any idea why the NFS mounted directories and files quit responding?
    Thanks.

    I may have found an answer to my own question.
    It looks like automount will automatically unmount a file system if it has not been accessed in 10 minutes. This time-out can be changed using the automount command. I am going to try increasing this time-out value.
    Here is part of the man page:
    SYNOPSIS
    automount [-v] [-c] [-t timeout]
    -t timeout
    Set to timeout seconds the time after which an automounted file
    system will be unmounted if it hasn't been referred to within
    that period of time. The default is 10 minutes (600 seconds).

  • In Adobe Acrobat Pro XI, is there a way to set defaults when combining files?

    My specific problem;  When I combine files, Adobe creates the bookmarks (which is desirable).  These bookmarks however, always seem to default on "page width" view.  I would prefer to have the bookmarks set to "fit page".  It is very cumbersome to edit each bookmark to reset the view.  (this is another issue which should be addressed as well).
    My preferences already are set to view the files in fit page, single page, however this setting does not seem to transfer to the combined file.
    Is there a way to globally set the preferences for this?  Even the settings during the combining function do not give options for the page view settings.

    There isn't a way to set this during the Combine process but it's easy to change all the bookmarks in one go using the following technique:
    Open the bookmark navigation pane and select all the bookmarks (be sure to expand all subbookmarks).
    Right-click and choose Properties from the context-sensitive menu.
    Click the Actions tab and choose Execute a menu item from the dropdown.
    Click the Add button and choose View > Zoom > Zoom to Page Level and click OK.

  • Image Capture from iPhone to OS X and File Permissions

    Hello.  I'm running Lion 10.7.3 and have an iPhone 4S and iPad 2.  When I use the Image Capture app to transfer pictures and videos from my devices to OS X it works great with the exception of one problem.  Every file that it copies over ends up with permissions of:
    (Me): Read & Write
    everyone: No Access
    This is problematic because when my wife is logged into her profile or anyone else tries to view these files via shared folders, they can't see them.  I'm putting them into a folder I created on "Macintosh HD".  The folder that they are in has permission of:
    (Me): Read & Write
    wheel: Read only
    everyone: Read only
    Each time I import I suppose I could drop into Terminal and run a command to fix the issues but there must be a better way.
    Any ideas?  Thank you in advance.

    Got a solution using Automator.
    Create a workflow like:
    This is an Image Capture Plugin. When you open Automator select Image Capture as the type of workflow and select these two actions.
    Copy Finder Items will take the image from Image Capture and copy to your disk. Select the folder you want the image to go to in the To: pulldown. You should select the /Users/Shared folder and any subfolder you wish. I made a folder named Images.
    In the second action make sure Pass Input: is set to as arguments and then add the chmod 644
    Then exit Automator giving the workflow a name. In Image Capture you should see the workflow you just created
    in the Import To: pulldown. Select it. Now when you import the fiels wil be copied to the folder you specified and the permissions will be set to 644 rw for you r for everyone else.
    good luck. post back if you have any questions.
    (and this is in the Lion list so my question about Aperture above is meaningless! )

Maybe you are looking for

  • Animation issue in Adobe photoshop cs6

    This is an annoying issue within photoshop. I am working on an animation for a video and when I try to change the position of a charater on a new frame it also changes the positioning on all of the frames previous of it. I am making a walk cylcle and

  • 2 ipods HELP

    I itunes borrowed my friends ipod to copy her music to my library HELP how do I do it???

  • Amazon instant video app

    Hello can any one guide on how to use Amazon instant video app via UAE App Store. It seems like it's only available on US store however since I am based in Dubai and would like to purchase or rent movies via Amazon therefore would appreciate any help

  • Modular Architecture: Risks

    Early in the public beta program, I was of the opinion that LR's modular architecture would turn out to be one of those thing that is developer-friendly, but user-hostile. Frequently, I'd find that a tool or bit of information I was expecting to be i

  • Can anyone tell me how to delete previous "keep file" files? Im trying to free up some space on my mac.

    Can anyone tell me how to delete previous "keep file" files? Im trying to free up some space on my mac.