Set windows permissions for folder

My labview app is being installed to the prog files dir for the app by an installer created by the LV Dev System.  i encounter a problem when trying to store a config file for the app to the directory during user customization of settings after app installation because the file I am trying to update is read only due to win 7 defaults.  I try to set the permissions for the folder programmatically, but it does not change the folder to a NOT read only one.  What is the trick here?  Do I need to put my config files in another directory somewhere or is ther a way to change the folder settings so I can create temp files in that folder?

Creating temporary config files in Program Files is not very good practice. I would do it in the public user folder.
How are you setting the parameters?
Did you use the following?
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/set_permissions/
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/setting_permissions/
Excerpt from the link above:
You can use permissions to change only write permissions for users (bit 7); the operating system ignores all other changes to the bits.
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community.

Similar Messages

  • [SOLVED] setting up permissions for mounted usb devices

    Hi all,
    I've been having the following problem when mounting my external hd: in order to mount the external hd I created a folder /mnt/usbstick/ giving permissions to a non-root user to read the files/directories in this folder (using chmod); however, after I mount the external hd, the set of permissions for /mnt/usbstick/ change so that a non-root user cannot  read the mounted files in /mnt/usbstick. This is a problem for me because, when I copy a file from the external hd to the non-root home folder, the copied file can only be read by the root user.   
    Do you know how I can solve this problem? Should I write a udev rule and place it at /etc/udev/rules.d/? Or should I simply add the non-root user to a specific group from /etc/group? Any ideas?
    Thanks!
    Last edited by falsum (2010-05-08 09:21:59)

    You could try adding an entry for your usb device in /etc/fstab and specify the option user to let non-superusers mount it.
    Here's an example of an entry for my external HD. I'm sure there are probably other (and better) ways to do this but it works for me.
    UUID=4376-0BFB /media/FIRELITE vfat rw,user,noauto,async 0 0
    Nice howto found on the wiki: http://wiki.archlinux.org/index.php/Fstab

  • How do we set the permissions for....

    Using Acrobat 9, Setting permissions is very confusing!
    How do we set the permissions for document so that:
    -- the end user needs no password
    -- Printing: Allowed
    -- Changing the Document: Not Allowed
    -- Doument Assembly: Not Allowed
    -- Content Copying: Not Allowed
    -- Content Copying for Accessability: Not Allowed
    -- Page Extraction: Not Allowed
    -- Commenting: Allowed
    -- Filling of Form Fields: Allowed
    -- Signing: Not Allowed
    -- Dreating of Template Pages: Not Allowed

    Not possible. If you allow filling in forms you must allow signing. BTW, while it is nice to be able to set permissions anything that depends upon passwords that you set is easily overcome by third party utilities. Don't do anything that really depends upon these permissions. If you want to set permissions using the Document Properties Dialog box (control D), then click on the Security button. In the Security Method Dialog box, select password security and fill it out as you need.

  • When setting up permissions for application files--URGENT

    Hello All,
    when setting up permissions for application files,
    Is this following permisson appropriate?
    If application files are owned by a single owner,
    that owner should be the oracle user.
    DN

    Here is my question again.
    when setting up permission for application file, which permission is
    appropriate?
    a) If application files are owned by a sigle owner,that owner should be oracle
    user.
    b) Application files should be owned by oracle user
    c) Application files should be owned by single user.

  • JAAS - How to set up permissions for a specific code?

    I would like to set up permissions for specific code in JAAS policy files.
    In other words, let's say I have the followiong entry:
    permission java.util.PropertyPermission "java.home", "read";
    Then, when I do Subject.doAsPrivileged(..., MyAction), if this permission is absent, I will not be able to access the "java.home" property in my MyAction.
    If I, let's say, set up a file permission, I will not be able to read certain files if the permission is absent.
    I want something simpler. I want to be able to specify that the whole class MyAction cannot be executed if the permission is absent - I do not want the code to even go there. Basically, if the necessary entry in the Policy file is not present, I do not want the calling code to have access to class com.mypackage.MyAction.
    This must be really straight-forward, what am I missing?

    Thank you for your input.
    My case is a little bit more complex.
    There is a request and approval process attached to the provision to this target system.
    The approval process has a first level of approval (including 1 to many approval steps) and the user gets the basic access to this target system. The user can then access the target system but is limited to what he/she can do.
    Then the approval goes to a second level of approval (including many approval steps) and if approved the user gets the elevated access to this target system.
    To accomplish this, the previous implementer created 2 resources for the same target. After the first level of approval, he provisioned resource A to the user. After the second level of approval, he provisioned resource B to the user, revoked resource B, and updated resource A.
    This is very confusing because we are dealing with 2 resources for the same target.
    I am looking for way to take advantage of the GTC to provision and reconcile with a system that takes a flat file and can write a flat file. But I also need to make it work with this approval nightmare.
    Do you have any ideas on how to make this better and simpler?
    Thanks
    Khanh

  • How to set permissions for folder?

    Dear all,
    How can iset permissions for a particular folder?
    I am creating new folders for new users  who access the program. 
    Is there any way yo set permissions so that no one is able to edit the name of the folder ?
    Thanks,
    Ritesh

    Hi Ritesh,
    Thanks for the post and I hope your well today.
    You can programmatically change the Read Only and Hidden Status of a file
    in labview using the DOS prompt from LabVIEW - called
    System.Execvi.
    Here are some links regarding the DOS commands you can use,
    http://www.ss64.com/nt/subinacl.html
    http://www.ss64.com/nt/cacls.html 
    So I beleive you could find a DOS command which could alter the editting properties of the name..
    Another way to prevent the user altering the file would be to change
    the user permission's in windows.. but it could affected the code and
    most IT departments would not allow this.
    Hope this helps,
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Need insight for setting up permissions for sharing an external hd via OS X 10.6?

    Hello intelligent lifeforms,
    My supervisor and friend passed away a little over a year ago, and I am now trying to fill his shoes as the networking guru and could use some assistance.  I'm trying to share an external hard drive that is connected to my Mac Pro OS X 10.6 workstation with a Mac Pro OS X 10.4 workstation user.  I've tried setting up a Sharing Only account in my System Preferences-Accounts for the 10.4 user, and under System Preference-Sharing I turned File Sharing: On, added the Shared Folder, added the User and set priveleges as "Read Only."  My intentions are for the 10.4 user to only be able to copy files from the external hard drive so as to protect the archived files being stored there from being tampered with.  However, there is a User group listed as "Everyone" that I can't remove and believe it is taking precedence over the 10.4 account that I setup.  I do not know where this Everyone group originated from but believe it to be some kind of default group and a major obstacle.
    When the 10.4 user copies a folder from the external hd to his workstation and later copies it to a volume on our Xserve OS X 10.2 the folder shows that I do not have privileges to do anything to the folder (there is a red circle with a minus sign in it on the folder icon).  Eventually, I am to backup these files to the external hd where lies my dilemma.
    The volume on the Xserve being copied to is setup under Workgroup Manger-Sharing-Share Points-General:  "Share this item and its contents" IS checked, Owner: admin-Read & Write, Group: staff-Read & Write (where said user has been added to the staff group), Everyone: none (I do not think the Everyone group listed on the server has anything to do with the Everyone group on my machine?), Enable disk quotas on this volume is NOT checked.
    My tests show that the permissions are being carried over from the external hd Everyone group (Read Only) because even when the 10.4 user's permissions are set to Read & Write in System Preferences-Sharing-File Sharing-Users the folder still shows to be Read Only when it's copied.  I've even tried setting his Desktop privileges to Read & Write hoping that when he copies the folder the permissions would be overwritten.  Unfortunately, the only way to give me priveleges is for the 10.4 user to change them manually through Get Info from his workstation.  This is counterproductive to the workflow I'm trying to establish.  I've tried wrapping my brain around the flowchart of coordinating permissions/privileges between the different machines but to no success.
    Also, a note to add is I've observed a User: Firebird Database that is listed under System Preferences-Sharing on both of our workstations.  It cannot be removed either and I do not know where it is originating from.
    Is there anyone out there that has any insight to this situation?
    Perplexed,
    carl_prepress

    "Everyone" is not a Group.
    Every file has underlying Access settings for System, Owner, Group, and World.
    Access settings for Everyone mean everyone-else that is not explicitly mentioned in the other settings. It is the same as the Unix "World".
    If you set the Priviledges for a file to Everyone=Read, then any user with any credentials can read it.
    The User Categories Owner, Group, and Everyone
    You can assign standard POSIX access permissions separately to three categories of users:
    Owner—A user who creates a new item (file or folder) on the file server is its owner and automatically has Read & Write permissions for that folder. By default, the owner of an item and the server administrator are the only users who can change its access privileges (allow a group or everyone to use the item). The administrator can also transfer ownership of the shared item to another user.
    Note: When you copy an item to a drop box on an Apple file server, ownership of the item doesn’t change, but only the owner of the drop box or root has access to its contents.
    Group—You can put users who need the same access to files and folders into group accounts. Only one group can be assigned access permissions to a shared item. For more information on creating groups, see the user management guide.
    Everyone—Everyone is any user who can log in to the file server: registered users and guests. Hierarchy of Permissions
    If a user is included in more than one category of users, each of which has different permissions, these rules apply:
    • GrouppermissionsoverrideEveryonepermissions.
    • OwnerpermissionsoverrideGrouppermissions.
    For example, when a user is both the owner of a shared item and a member of the group assigned to it, the user has the permissions assigned to the owner.

  • Setting file permissions for 'wheel' group files

    I have a bunch of files I copied from my PC when I made the transition to my Mac. I'm having problems moving or backing up many of the files apparently because the Mac has set the group for these files to 'wheel' and I'm not sure how to change them back. My efforts to chown or chgrp the files always result in "Operation not permitted" error messages.
    I have been able to select a file at a time in the finder and use the get-info option to change the permissions, but I need to do this for thousands of files and it takes too long manually.

    mpender wrote:
    I have been able to select a file at a time in the finder and use the get-info option to change the permissions, but I need to do this for thousands of files and it takes too long manually.
    Yes, you need a global fix. Download BatChmod Read the online documentation and online help. Let us know.
    -mj

  • Can I set public permissions for the Training Catalog?

    We want to have all users be able to get into the Training Catalog and self enroll. We have over 7,000 employees with no distribution list for all people. How do I set permissions for all employees to see the training catalog and self enroll?

    Ah, support strikes again. The Training catalog is not, and cannot be set to publicly viewable. This permission setting is only available to objects in the Content Library.
    If you go to the Training Tab and then Training Catalog you will see an option to Set Permissions for the Training Catalog. Select that and you will be able to add any individual or group from the list on the left to the list on the right to give them view permissions. There will be no "Make Publicly Viewable" option.
    If an individual is not listed in the right hand list (or a member of a group on the right hand list), then they will get the Not Authorized message.

  • How to set file permissions for SFTP uploaded file?

    Hello,
    is it possible to set file permissions with the SDK for files uploaded via SFTP transfer? I use the default sample plugin ftp_upload.lrdevplugin to transfer the files, but would like to tweak it to set the uploaded file(s) to permission 644 (rw-,r--,r--) on Linux server. Currently the server sets new file(s) by default to 600 (rw-,---,---).
    I am looking for an option to do the "chmod" directly from Lightroom without doing any modificatios in general to default umask, etc. settings on the server. No real UI is needed for this. Just hardcoded setting for 644 in the .lua.
    So far I've been unsuccesful in finding the way. Googled, read this forum, looked at the API. Maybe I just missed it, or does this functionality exist?
    All advice is appreciated!
    Cheers,
    Timo

    Niel's suggestion is good. You might also try posting your question in the Tiger Server forums. I'm sure Tiger Server has several ways of dealing with this.

  • Server2012/Win8.1/PowerShell4.0 set printer permissions for multiple printers

    Hey Scripting Guys!
    looking at the new Set-Printer command for 2012/Powershell4.0. 
    we have a bunch of printers already added. I have changed the global perms on the printer server, but would like to mod the perms on existing printers. Anyway to do it via powershell?
    cheers
    Stu w

    Get-Printer <printername>| Set-Printer -SDDL <sddl perms string>
    http://technet.microsoft.com/en-us/library/hh918366.aspx
    ¯\_(ツ)_/¯

  • Set default permissions for new files?

    We have a small LAN where different users often need to open and resave each others' files. No server, just a bunch of client computers on ethernet sharing an internet router.
    Each time a user creates a file, that file's permissions default to read only for anyone but that user. How can I set up the default permissions so that any newly-created files default to Read & Write for "groups" and "others".
    I anticipate I will have to make this change for each user on each workstation.
    Any help would be greatly appreciated.
    Thanks

    If you want users to share files then have them place the file in the /Users/Shared/ folder. Files placed in that folder can be accessed by any user.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • How to set window size for      target="I_blank"

    when viewing a graphic file (only) in a blank window, how do
    I set the
    window size?
    Also, what is the target="ImageWindow" command? I can find
    very
    little info on it.
    Thanks

    You're welcome - for what it's worth, I use the Kaosweaver
    extension and
    have heard good things about 'justso' as well., You can't
    beat the price
    and you get your moneys' worth, I use mine nearly every day.
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.macromedia.com/devnet/dreamweaver/css.html
    - CSS Tutorials
    "Canned Heat" <[email protected]> wrote in message
    news:[email protected]..
    > In fact, they just might! Thanks, I'll look into them.
    >
    > On Wed, 26 Apr 2006 13:20:10 +1000, ".: Nadia :. *ACE*"
    > <[email protected]> wrote:
    >
    >>Would any of these extensions work for you?
    >>they open a picture window to the exact dimensions of
    your graphic.
    >>
    >>Great free extension:
    >>www.dreamweaverfever.com/grow/
    >>
    >>another couple of extensions - commercial though:
    >>
    http://kaosweaver.com/extensions/details.php?id=62&cid=7
    >>
    >>and:
    >>Just So Picture Window -
    >>www.valleywebdesigns.com/vwd_dw_JSPW.htm
    >

  • Setting Oracle Permissions for file access from a pl/sql function

    I have a pl/sql function that calls a java method which moves a
    file from a directory to another.
    Since we are using Linux, Oracle wants some permissions.
    Those permissions are set using:
    call dbms_java.grant_permission(USER, 'java.io.FilePermission',
    FILE, permission)
    OK, i want to use this in my pl/sql function, but it doesn't
    work.
    My function looks like something like this:
    -- some pl/sql code
    dbms_java.grant_permission(someUSER, 'java.io.FilePermission',
    sourceFILE, 'write');
    dbms_java.grant_permission(someUSER, 'java.io.FilePermission',
    destFILE, 'write');
    flag := move(sourceFILE, destFILE);
    -- flag is for 1 -> done and 0 -> error
    -- some more code ...
    The problem is the lines of
    dbms_java.grant_permission(someUSER, 'java.io.FilePermission',
    sourceFILE, 'write');
    do not work!
    When i grant permissions manually in sql plus it works great,
    but when i do it from the function it does not work!
    Any ideas anyone?
    Any help would be appreciated.

    The command :
    dbms_java.grant_permission
    (someUSER, 'java.io.FilePermission',sourceFILE, 'write');
    is right.
    Open sqlplus
    Connect as sys or system
    type :
    execute dbms_java.grant_permission
    (someUSER, 'java.io.FilePermission',sourceFILE, 'write');
    commit;
    try to compile again your procedure...does it work now ?
    bye
    Giovanni Regola

  • Setting up permissions for shared access

    I'm at work as we have 2 macs set up
    I'm on Mac_A and my collegue is on MAC_B
    He edits the work on MAC_B and once he has finished he Saves it across to MAC_A Desktop
    This was all working fine until I did a reinstall of MAC_A. Now when he copies the data across it copies it in and leaves the no entry sign up and I have to go in and change the permissions. How can I set this up to avoid changing it everytime.
    I obviously set it up with no problems in the beginning, just can't remember.
    Many thanks
    Matt

    I've worked it out, I need to avoid all the accounts sharing.
    In System preferences enable file sharing. Then use the
    afp://172.0.1...... that is given.
    On the other computer go to Finder connect to server it will ask for a password and then the user has full access.
    When they drop it on the desktop the other user will have full control.

Maybe you are looking for

  • Exit for SAPLE20C

    I have an assignment to add some custom controls to the screen 1600 of the program SAPLE20C in the transaction ES31. I checked the available exits and badis for the transaction but didn't find anything appropriate. The exits from XES30 ( EXIT_SAPLES3

  • Upgrade win 7 Pro to win 8.1 Cannot access Homegroup

    I have a Dell Desktop which was the computer that I created my homegroup on. I have a total of  6 computers on my home network. When I upgraded from Win 7 pro to Win 8 pro. It asks me to join homegroup. When I click on join, the computer spends sever

  • Alt + Left-Click not saving

    The Alt+Left-Click shortcut isn't working. It saves the image as "File *." The asterisks being the name of the image. When I try to open the image, it says no preview available.

  • Abap query regarding lsmw

    hi ,friend  ,i am taking matnr vaue from user and check the value of matnr coming from flat file ,if both are same then i want to skip the row ,but whern i use skip_record it is just replacing the vaue of matnr by'/'in allthe recoreds ,not escaping t

  • Power Sale Scenario

    friends I have to map power Sale in SAP.  please tell me the scenario of power mapping which material type is used in Power material and what is the item category for power sale please tell me Suchender