Create File Permissions

So I was able to force globally all newly generated / created directories or folders to be set with 700 permissions by editing /etc/profile and changing the UMASK to '077'. That worked great for my Arch Linux workstation but I am now trying to understand how I can force all newly created files I create to have the same permissions. Is there a separate area I would need to set this up globally? I use 'wget' and 'touch' a lot and would like the files generated  by those commands and or 'vim' to have 700 permissions. Does anyone know how I can accomplish this on my system?

umask 077 results in permissions of -rw------- for files and drwx------ for directories.
was that not what you wanted?
(nb: for obvious security reasons, umask won't make files executable by default)

Similar Messages

  • File adapter created file permissions at OS

    Hi,
    We have a file adapter scenario and once we run the scenario at OS level the file is being created with following permissions.
    <b>-rw-r----- </b>  1 xisadm   sapsys    19789000 Oct 10 17:01 File10024322.txt
    So it is not being processed further till we change the permisions to<b> -rw-rr</b> .
    Is there any place in XI where we can change to write the file at OS with <b>-rw-rr</b> permisions.
    Thanks
    Sunil

    Moorthy,
    This is XI writing the file at OS and not XI not reading the file.
    But in one of our DEV env the file is being created with <b>-rw-rr </b> permissions after changed some thing , which we are not sure now. Now we have the same issue in production. Bye the way OS is AIX.
    We would like is there any place in XI we can change so that XI can write the file to have "others" to <u>read</u> the file.
    thanks
    Sunil
    Message was edited by: Sunil Guditi

  • I have been trying to download photos. It keeps saying can't create file, please check permissions on destination folder. Ihave made sure I have set the permissions on read and write. What am I doing wrong?

    I have been trying to download photos too my MAC. It keeps saying can't create file, please check permissions on destination folder. Ihave made sure I have set the permissions on read and write. What am I doing wrong?

    Lanakivee
    Try this it worked for me Pat Willener gave it to me off the site :
    I have not read all you wrote, so I may have missed some points. As I understand it, you installed FP 10 on IE7, but it won't play any Flash content?
    Try this
    download the FP uninstaller from http://www.adobe.com/go/tn_14157
    close all browser windows, then run the uninstaller
    download the offline ActivX installer for Internet Explorer from http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    close all browser windows, then run the installer

  • Mac to Mac file sharing - file permissions problem upon newly created files

    Hi all,
    At home I have two iMac's both running Snow Leopard.
    iMac A/Users/*1 is sharing his iMac A/Users/*1/Documents folder.
    The sharing & permissions - preferences of this folder and the files inside this folder are:
    '*1' : (the iMac A's main user account) : Read & Write
    'share' : (a Sharing Only account, set up from iMac A) : Read & Write
    everyone : : No Access
    iMac B/Users/*2 is able to read & write to this folder because he is connected with iMac A as 'share'.
    So far so good. iMac A/Users/*1 can read & write to his own Documents folder
    and so can iMac B/Users/*2 because he is connected to iMac A as 'share'.
    But: this only applies to the folders and files that are _already in_ the iMac A/Users/*1/Documents folder,
    because I once changed the sharing & permissions -permissions of iMac A/Users/*1/Documents as mentioned above and executed 'Apply to enclosed Items...'.
    So the problem is: when I create a new file or folder on iMac A/Users/*1 or on
    iMac B/Users/*2 and put it in iMac A/Users/*1/Documents, this new file or folder will only
    have the standard sharing & permissions - preferences of any newly created file or folder
    on the iMac X/Users/*Y it was created. The problem is those sharing & permissions - preferences
    will not let the other iMac X"/Users/*Y" Read & Write to this new file or folder but only let himself
    Read & Write. Following, the other iMac X"/Users/*Y" will only be able to Read the newly created
    file or folder, because the standard standard sharing & permissions - preferences on
    iMac A/Users/*1 as well as on iMac B/Users/*2 are the following:
    '*Y' : (the iMac X's main user account) : Read & Write
    staff : (Administrator accounts on iMac X) : Read only
    everyone : : Read only
    A pretty manual fix to this problem is walking to iMacX" and changing the
    sharing & permissions - preferences of the newly created file or folder so that iMacX"
    will also be able to Read & Write this newly created file or folder.
    Does anyone know a better fix for my problem? Basicly I want to have Read & Write
    sharing & permissions on the newly created file or folder for both iMac's,
    not only the for the file or folder creator's iMac. And this without having to change
    sharing & permissions - preferences of this newly created file or folder manually
    each time.
    Thanks in advance,
    Vincent Verheyen.

    Hi all,
    I have found a thread wich i think also handles about my problem.
    The standard sharing & permissions - preferences or privileges
    can be changed apparently, this seems to have got something to do
    with umask and changing this umask. The adress is the following:
    *http://www.macosxhints.com/article.php?story=20031211073631814*
    Other ways to change the above-mentioned umask may be
    applications like SharePoints, TinkerTool or BatChMod.
    All of them are also mentioned in the above-mentioned thread.
    I haven't executed the solution as mentioned in the above-mentioned
    thread yet, replies to the thread speak about insecurity and failures.
    Further more I haven't found any other solutions to my problem,
    so any help is still greatly appreciated.
    Thanks in advance,
    Vincent Verheyen.

  • NTFS Permissions for a scanner to only create files?

    I'm having some trouble correctly configuring NTFS permissions. My file structure is as such:
    \Scanner\%username%\
    We want anyone to be able to walk up to the scanner, scan a document and drop it in a particular users folder. What we don't want is users being able to view files via the scanner interface.
    My permissions are configured as such:
    Root Folder \scanner\
    Allow
    This Folder & Subfolders
    Traverse, List folder, Read Attributes, Read Extended, Read Permissions
    Allow
    Subfolders & files only
    Create Files / write data
    What am i missing here? 
    This topic first appeared in the Spiceworks Community

    By Guest Blogger Brad Mathis, Senior Consultant, InformationSecurity It is mid-2015. By now, we have all seen incoming emails claiming we have been bequeathed a huge sum of money from a Nigerian Prince, or we have won a foreign lottery we never entered. Most employees have seen these scam emails long enough to know they are not real. However, What about the seemingly benign email coming in from a recognizable sender? What if this legitimate looking email has an attached PDF or Word document? What if it contains a seemingly real link to a web site? How many of your employees would open the attachment or click on the link? How many employees will assume it is safe since it made it unscathed through all of your layers of security, including email and web content filters? Do your users understand the ramifications of...

  • Error "creating file: 1008:5, -5000 Access Denied Error"

    I'm unable to install Flash Player 9 in OS X (10.4.8). I
    followed the following tech note:
    http://www.adobe.com/go/4aa64290
    * I uninstalled Flash Player using the uninstaller
    * I repaired disk permissions
    * I tried re-installing Flash Player
    I still get the error message saying I don't have the
    appropriate permissions.
    Some background: I'm upgrading from a G5 tower to a new Mac
    Pro. I ran the migration utility to copy over my user settings,
    apps, etc. I noticed that pages with Flash were crashing the
    browser(s) instantly. Of course, that's because the PowerPC version
    was previously installed. I uninstalled and tried to re-install.
    When I got the above error, searched the support area and found the
    tech note saying to uninstall (done), repair permissions (done),
    then re-install (fails.)
    I'm stumped.
    Any suggestions?

    I have the same problem, after trying more than a few times
    to install the
    player, uninstall it, uninstall the Firefox 2, reinstall
    Firefox... with the
    same result : it says that I need a plugin, and put me to the
    page of the Flash
    player installer...
    I had this new error message after erasing, as it was
    proposed on a forum, the
    Internet plug-ins directory... "creating file: 1008:5, -5000
    Access Denied
    Error"
    I never had this message before. I have all the rights and
    have installed lots
    of softwares. I tried to use the terminal way... but this is
    a long way for me
    on a Mac... I would be able on a PC but I can't even
    "navigate to this
    directory"...
    Do I have to say that this Flash player is now quite
    important for lots of web
    sites... This is really the first time I have a problem with
    Flash. Is it the
    Intel Mac ?? No, it seems Windows have also its probs. Thanks
    for a reply... or
    a solution !

  • Live Data / Problem with file permissions

    Just trying out an old version of Dreamweaver MX 2004. I am
    using my webhosting service for remote server/testing server
    duties. It is running PHP 4.3.10 and MySQL 3.23.58. I was able to
    set up the database connection and test-retrieve a recordset with
    no problems. In following the tutorial I found that Livedata
    wouldn't work, it just giving me a warning about file permissions
    being wrong. It turns out that when Dreamweaver creates a temporary
    file of the work-in-progress to upload to the remote server the
    file is created on the server with owner=rw, group=rw, world=r
    which explains why it won't run - group has to be set to group=r.
    The file is created on the fly and then immediately deleted by
    Dreamweaver so it is impossible to manually set the permission on
    the server and probably fairly pointless too.
    I tried just saving the file and previewing in the browser
    which again causes it to be uploaded to the remote server. The
    first time this resulted in the browser offering a file download
    box instead of running the page. The reason is - again - that
    Dreamweaver is setting the uploaded file permissions to include
    group=rw. If I manually set the permission for group to group=r it
    runs fine.
    It turns out that Dreamweaver is always setting the file
    permissions on file uploads (checked php and html) to the
    remote/testing server to include group=rw. Once I set it manually
    on the remote/testing server to group=r for a php file everything
    is fine and subsequent uploads of the same file do not change it
    again.
    I checked with the webhosting company and their second-line
    have reported back to me that the default file permission they set
    on uploaded files includes group=r so it must be DW that is causing
    the problem by setting group=rw the first time. I confirmed this by
    using WS-FTP to upload the same file (renamed) to the same target
    directory and the permissions set were owner=rw, group=r, world=r.
    So
    Can anyone please tell me how to change the permissions DW
    sets on files written to a remote server because I have spent
    countless hours on it without success. From looking at other posts
    in this forum it could be that other users are hitting the same
    kind of problem with DW8

    Stop using Live Data with a hosting account. Set up PHP and
    MySQL locally on
    your machine. That is how it's supposed to work. You
    shouldn't test files on
    the fly on a host as you write them. Change your test account
    in DW to use
    the local server. Upload your files to your remote server
    after they are
    fully tested.
    Tom Muck
    http://www.tom-muck.com/
    "nigelssuk" <[email protected]> wrote in
    message
    news:[email protected]...
    > Just trying out an old version of Dreamweaver MX 2004. I
    am using my
    > webhosting
    > service for remote server/testing server duties. It is
    running PHP 4.3.10
    > and
    > MySQL 3.23.58. I was able to set up the database
    connection and
    > test-retrieve a
    > recordset with no problems. In following the tutorial I
    found that
    > Livedata
    > wouldn't work, it just giving me a warning about file
    permissions being
    > wrong.
    > It turns out that when Dreamweaver creates a temporary
    file of the
    > work-in-progress to upload to the remote server the file
    is created on the
    > server with owner=rw, group=rw, world=r which explains
    why it won't run -
    > group
    > has to be set to group=r. The file is created on the fly
    and then
    > immediately
    > deleted by Dreamweaver so it is impossible to manually
    set the permission
    > on
    > the server and probably fairly pointless too.
    >
    > I tried just saving the file and previewing in the
    browser which again
    > causes
    > it to be uploaded to the remote server. The first time
    this resulted in
    > the
    > browser offering a file download box instead of running
    the page. The
    > reason is
    > - again - that Dreamweaver is setting the uploaded file
    permissions to
    > include
    > group=rw. If I manually set the permission for group to
    group=r it runs
    > fine.
    >
    > It turns out that Dreamweaver is always setting the file
    permissions on
    > file
    > uploads (checked php and html) to the remote/testing
    server to include
    > group=rw. Once I set it manually on the remote/testing
    server to group=r
    > for a
    > php file everything is fine and subsequent uploads of
    the same file do not
    > change it again.
    >
    > I checked with the webhosting company and their
    second-line have reported
    > back
    > to me that the default file permission they set on
    uploaded files includes
    > group=r so it must be DW that is causing the problem by
    setting group=rw
    > the
    > first time. I confirmed this by using WS-FTP to upload
    the same file
    > (renamed)
    > to the same target directory and the permissions set
    were owner=rw,
    > group=r,
    > world=r.
    >
    > So
    >
    > Can anyone please tell me how to change the permissions
    DW sets on files
    > written to a remote server because I have spent
    countless hours on it
    > without
    > success. From looking at other posts in this forum it
    could be that other
    > users
    > are hitting the same kind of problem with DW8
    >

  • Problem with file permissions

    Hello all,
    I am making a simple HttpServlet, which takes input
    from html page and saves in to a file, but I'm having a
    bit of a problem with file permissions.
    I'm getting the following exception
    java.security.AccessControlException: access denied (java.io.FilePermission ./data/result read)
         java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         java.security.AccessController.checkPermission(AccessController.java:427)
         java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         java.lang.SecurityManager.checkRead(SecurityManager.java:871)
         java.io.File.exists(File.java:700)
         SyksyHTTPServlet.doPost(SyksyHTTPServlet.java:31)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)The exception seems to occur when I'm trying to check whether the file already
    exists or not.
    The data directory has all permissions (read, write and execute) set for all users,
    and I have made an empty file called result inside the data directory for testing.
    This file has read and write permissions enabled for all users.
    Here's my code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.Enumeration;
    import java.util.List;
    import java.util.ArrayList;
    public class SyksyHTTPServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              int totalCount = 0;
              List list;
              String song = request.getParameter("song");
              PrintWriter out = response.getWriter();
              File file = new File("./data/result");
              if(file.exists())  // this is line 31, which seems to cause the exception
                   list = readFile(file);
              else
                   file.createNewFile();
                   list = new ArrayList();
              list.add(song);
              writeFile(file, list);
              for(int i = 0 ; i < list.size() ; i++)
                   out.println(list.get(i));
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              doPost(request, response);
         private List readFile(File file)
              List list = null;
              try
                   FileInputStream fis = new FileInputStream(file);
                   ObjectInputStream ois = new ObjectInputStream(fis);
                   list = (ArrayList)ois.readObject();
                   ois.close();
              catch(Exception e)
                   e.printStackTrace();
              return list;
         private void writeFile(File file, List list)
              try
                   FileOutputStream fos = new FileOutputStream(file);
                   ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(list);
                   oos.flush();
                   oos.close();
              catch(Exception e)
                   e.printStackTrace();
    }I'm using Tomcat 5.5 on Ubuntu Linux, if that has anything to do with this.
    I'll appreciate all help.
    kari-matti

    Hello again.
    I'm still having problems with this. I made
    a simple servlet that reads from and writes
    to text file. The reading part work fine on my
    computer, but the writing doesn't, not even
    an exception is thrown if the file exists that
    I'm trying to write to. If I try to create a new
    file I'll get an exception about file permissions.
    I also asked a friend of mine to try this same
    servlet on his windows computer and it works
    as it should.
    Here's the code
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class ReadServlet extends HttpServlet
         public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              String s = "";
              PrintWriter out = response.getWriter();
              String docroot = getServletContext().getRealPath( "/" );
              out.println("docroot: "+docroot);
              File file = new File(docroot+"test.txt");
              if(file.exists())
                   s = readFile(file);
                   out.println(s);
              else
                   out.println("file not found");
                   //file.createNewFile();                    // causes exception
                   //out.println("new file created.");
              writeFile(file, "written by servlet");
              out.println("Now look in the file "+file.getPath());
              out.println("and see if it contains text 'written by servlet'");
         public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              doPost(request, response);
         private String readFile(File file)
              FileInputStream fis = null;
              BufferedInputStream bis = null;
              DataInputStream dis = null;
              String s = "";
              try
                   fis = new FileInputStream(file);
                   bis = new BufferedInputStream(fis);
                   dis = new DataInputStream(bis);
                   s = dis.readLine();
                   fis.close();
                   bis.close();
                   dis.close();
              catch(Exception e)
                   e.printStackTrace();
              return s;
         private void writeFile(File file, String s)
              FileOutputStream fos = null;
              BufferedOutputStream bos = null;
              DataOutputStream dos = null;
              try
                   fos = new FileOutputStream(file);
                   bos = new BufferedOutputStream(fos);
                   dos = new DataOutputStream(bos);
                   dos.writeChars(s);
                   fos.flush();
                   bos.flush();
                   dos.flush();
                   fos.close();
                   bos.close();
                   dos.close();
              catch(Exception e)
                   e.printStackTrace();
    }And if someone wants to test this servlet I can
    give a war package.
    Any advices?
    kari-matti

  • Problem with file permissions in Windows shares

    Due to a company merger we are now supporting a group of Macs in our PC environment. These Macs connect to our Windows shares. This generally works well, however we have discovered a problem. It’s to do with the way our Macs interact with our Windows shares. When they copy a file to a windows share they take the permissions for the file they copy from the route of the share rather than from the subfolder the files are copied to and write the file permissions accordingly.
    This only affects admin users who use Macs with the ability to change file permissions. Everyone else inherits the permissions from the subfolder as they should because their account can’t change the permissions. If the route and subfolder permissions are the same then there is no change. If they are different, the Mac will use the share route permissions as preference.
    We have shares where users don’t have access to the route folder but do have access to other folders. This is so that they can’t change the top level folder structure. However they are able to create folders and files under the top level folders. If an administrator uses a Mac, no one has access to any files or folders they create because users don’t have access to the route folder and this is copied to the files and folders they create. This doesn’t affect our PC’s only the Macs.
    We are using the latest Mac OS fully updated and Windows 2008 server. Is this a normal Mac ‘Feature’? Is there a work around?

    I’m a bit disappointed by the lack of response to my problem. As Windows is the predominant file server in business, this problem must have occurred before.
    Are Mac people really saying that Macs are not designed to connect to networks? At the moment our Macs are unusable apart from a few isolated tasks. Basically they are used by a few designers who work in isolation. If PC’s had this problem no one would buy them.

  • Cannot create file "/Applications/ " Permission denied.

    When installing new software Iget the following error message: "Cannot create file "/Applications/ ". Permission denied. I have used disk utilities to try to repair my permissions with no sucsess. I have also tried reinstaling the software. Any advise is appreciated.
    I am using Mac OS X Yosemite 10.10.2 and Safari 8.0.4

    You may need to rebuild permissions on your user account. To do this,boot to your Recovery partition (holding down the Command and R keys while booting) and open Terminal from the Utilities menu. In Terminal, type:  ‘resetpassword’ (without the ’s), hit return, and select the admin user. You are not going to reset your password. Click on the icon for your Macs hard drive at the top. From the drop down below it select the user account which is having issues. At the bottom of the window, you'll see an area labeled Restore Home Directory Permissions and ACLs. Click the reset button there. The process takes a few minutes. When complete, restart.   
    Repair User Permissions

  • Windows file permissions problems

    We have an Xserve G5 that was running Server 10.3. I upgraded it directly to Server 10.5. Since then, I am having problems with some of our Windows users.
    When they create a new folder, it puts them as the owner, but gives them NO rights. I am using ACLs to give full rights to the group that needs access, and also setting the POSIX group rights to read/write. So once they leave that folder, they can no longer get back in. I have SMB set to inherit rights from the parent, and the ACL is set to inherit as well. Other people in the group can access the folder, just not the owner! I change the owner permissions and all is well (for that folder at least). How do I need to set SMB so it follows the inheritance I set?
    Once I have the folder set correctly, any new files created there have the POSIX group set to read only. The ACL inherits properly and still has full control. The owner is set correctly, usually. It is not consistent.
    Once someone creates a file in any folder, if a Windows user modifies a file someone else created, it changes the owner name and gives them no rights. It also creates a new ACL record. If the original owner was a Mac user, it creates a new explicit ACL with all rights except execute and delete. If the file has ACL records already, it duplicates them and gives whatever rights it feels like (it seems). One new record may say Allow Delete only, and the next one say Allow Read except for execute. The only thing for certain is it will never match the original ACL. It always adds the new ACLs at the top of the list, and the duplicates are grayed out as if they were actually inherited that way. The most 'popular' file I've found so far had 128 "inherited" ACL records!
    It is also denying access to some folders that the user has the correct permissions for. For instance, I can create/modify/delete files logged in on the Mac side, but when I log in on Windows, I have problems accessing files/folders. It shows everything as read only. Even if I change the properties in Windows, it will revert back to read-only when I apply the change.
    We have a new Xserve that we will be moving the file services to. At that time, all the Windows users will be moved completely to the Mac side - currently the Windows users are accessing the Xserve and a Novell server.
    Thanks in advance for any help.

    Hi Thy,
    Based on my research, the Trusted Installer is a service, for those resources which only allow Trusted Installer to modify, neither Administrator nor System can modify them.
    I am wondering that how secure the network and physical environment is that you need to create a GPO to prevent users making permissions changes on system files. These system files normally only can be modified by Administrators,
    System or Trusted Installer, which is secure enough when we don’t add users we don’t trust enough to Administrators group.
    >What is the best way to undo this while leaving the audit failures turned on and still retaining the correct permissions on all the files?
    As long as administrators on these machines are qualified, you can remove the Group Policy. If not, please don’t make any user you don’t trust as Administrator.
    >What happens to the files that aren't owned trustedinstalled than now have the trustedinstaller default permissions under system32 and syswow64 if I were to remove the gpo?  What file  permissions would be retained?
    We should keep the default permissions, if those files weren’t owned by Trusted Installer before, we should change the original owner back, vice versa.
    Here are some related articles below I suggest you refer to:
    New ACLs Improve Security in Windows Vista
    http://technet.microsoft.com/en-us/magazine/2007.06.acl.aspx
    SYSK 277: How-To Bring Back the TrustedInstaller
     http://blogs.msdn.com/b/irenak/archive/2007/01/30/sysk-277-how-to-bring-back-the-trustedinstaller.aspx
    Best Regards,
    Amy

  • Preserving Current Owner file permissions using the copy function

    I've been trying to use ARD 3's Copy function to overwrite a single user's Home folder in a classroom environment made up of a few Macs.
    This is done with the aim of refreshing the Home folder every time a class is concluded.
    However, although the Copy function works and succeeds in overwriting the Home folder, when the client is logged in locally, all the applications suffer from permission issues.
    I've tried both the; Inherit from destination folder and; (ii) Preseve current owner, file permissions in the "Set item ownership to" option of the Copy window but neither appear to work.
    I've also attempted to mirror the target user's account by creating the same account on the admin machine to push the Home folder over but the permissions remain a mess later.
    Is there a way to get around this without having to implement lengthy UNIX commands?
    I know of the existence of remote management apps, e.g. Deep Freeze (http://www.faronics.com/html/DFMac.asp), but under a budget constraint, such options are undesirable at the moment.
    PowerBook G4   Mac OS X (10.4.3)  

    Drag the photo from the iPhoto window to the desktop or export as kind = JPEG
    As to too small - what is too small?  The pixel dimensions of the exported JPEG will be identical to the original TIFF - the file size is smaller because JPEGs are compressed - which of course reduces file size - which of course is the reason that JPEG exists
    LN

  • File Permissions on Oracle Directories for other Operating System Users

    Hi,
    I am trying to export the table data to flat file using a pl/sql function using UTL_FILE package and directories created using 'CREATE DIRECTORY' command. The function is called from a stored procedure which in-turn is called from a Java program using JDBC and the Java process runs as different operating system user. The problem for me is the file exported is being written as 'ORACLE' user with 'OINSTALL' group and '-rw-r--r--' linux file permissions. When I try to read this exported file from the java program it throws me a file access error.
    I would like to know if we can specify any additional parameters either in
    1) Database parameter file
    2) UTIL_FILE.FOPEN function
    3) CREATE DIRECTORY command
    so that the files written to the DIRECTORY have a read write access.

    Since you attempting to read the file from Java, you are constrained by the OS.
    Write a stored proc to read the file, since PL/SQL does have the correct permissions to read/write to files.
    P;

  • "Password Wallet" & File Permissions

    Hi,
    How can I set the file permissions correctly on "Password Wallet's" file so that multiple people on the same Apple MacBookPro running Leopard (MAC OS 10.5.x) can access it read/write?
    Yes, I've already run this question by Selznick Software (Password Wallet's developer) and got nowhere.
    Here's the problem/symptoms that I am experiencing:
    I installed "Password Wallet" and started using it under my userid/account (Toni). Everything worked fine. I adjusted the file permissions on Password Wallet's data file to allow my wife to access it under her userid/account (Mel). She logged onto her account and accessed it just fine. Then, I re-logged onto my account (Toni) and CANNOT access it because somehow her access removed my read/write permissions from the file.
    I've tried the same experiment several times now. The result is always the same. After getting the Password Wallet data file setup with read/write for wife and read/write for me while logged onto my account (with administrative privileges), then if another user account (wife's) accesses it, then the access control lists are mysteriously changed (my read/write access control is gone, my wife's is the only remaining read/write access).
    I have only done this experiment and reset the access the control settings via the GUI interface. Somebody at work suggested I enter terminal mode and use the command line methods (UNIX commands like chmod). Although, I know how to run these types of commands, I have no idea what access control settings I need to enter on the chmod command line to allow multiple users to have read/write access to the PasswordWallet data file.
    Your advice would be greatly appreciated.
    Regards,

    After some more experimentation tonight, I have finally found a "workaround" to allow multiple user accounts on the same computer to successfully access the Password Wallet's data file!
    Here's the trick/workaround:
    (1) Create a group account (say "PasswordWalletGroup") whose members are the different user accounts that you want to access Password Wallet's data file (so, in my case I added myself and my wife into this group); &
    (2) Give that group Read/Write access to the data file (via "Finder", select the data file, select "Get Info", and go to the section on "Sharing & Permissions" & simply add the group name & modify the privileges to "Read & Write").
    Now, each user account in that group will be able to access Password Wallet's data file and can modify it. The Password Wallet application will still reset the permissions so that the last user account modifying the file will become the "owner" (Me) BUT the above group workaround will somehow trick the application. Thus, the next different user account that accesses it will be successful and the goofy application will again reset the permissions to let this account be the owner but the group permission will allow others to still access the data file.
    It's clear that the Password Wallet application is doing something funky with the file permissions. Perhaps, it's a "file locking" scheme or something. The application clearly wants to reset the permissions so that the only user account with read/write access is the account that last modified the file. However, the workaround above somehow fools the application and allows multiple user accounts to access the data file (sequentially, of course, not simultaneously).

  • Error message: Cannot create file

    I have recently merged two users on a 10.4.11 OS machine and ever since I've been unable to download a file in safari. The download window shows the requested file with a message reading:"cannot create file". There's plenty of space on disk so cannot be that.
    I have swapped around the Library Safari preferences between old and new users, i have deleted Safari preferences, I have installed safari 3.2.1, repaired permissions and so on but Safari will still not download any files. Is there a way to completely uninstall then reinstall, or should I just try Safari 4? or does this still use some plist files from older installations?

    Click here and follow the instructions.
    (44565)

Maybe you are looking for