TS Variables - read/write

I setup some variables in the StationGlobals.ini, which I could then see in my sequence file under Variables:tationGlobals, etc.  What I ran into at runtime, however, was that the StationGlobals.ini file had to be read/write.  I'm not sure that's a good idea, since I have so many read-only things being read from there, and if it were messed up during a write, I'm not sure how the operators in the field would recover . 
If I want a variable to have scope throughout the life of the sequence file, such that (1) Setup/Main/Cleanup can see it (2) I can read/write from/to it (3) I don't have to leave my .seq file unprotected (remove the read-only attribute), what do you recommend? 

Hi,
If you are writing to the StationGlobals, you will need the file attributes as read/write. The StationGlobals file only gets updated when TestStand shuts down or when if you force a Save Station Globals using the API function.
With the FileGlobals, usually you are changing the Runtime version and therefore you are not changing your Sequence Files. If you are changing the static version of the FileGlobals (DefaultSequenceFileGlobals), then obviously, you will have to have the sequence file with file attribute of read/write.
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • [Solved]Variable read/write speed with WD Passport 1 TB external drive

    I have this drive connected to my Arch Linux box. Whenever I transfer large files (I use it to backup) the write speed drops from 30M/s to sometimes a few KB/s and then speeds up again ! This drive is connected via an USB 2.0 port with a specific cable which is 2.0 at one end (to connect to my motherboard) and 3.0 at the other end (to connect to the drive). Could this be related to the kernel SES driver which is used (buffer problem maybe)?
    This speed problem is that serious that backups take very long and become almost not feasable.
    Thanks in advance
    Last edited by Strider (2014-02-02 21:00:54)

    Jason,
    this drive has 3 use cases (my PC is dual boot Arch / Windows Vista) :
    1) Backup my PC linux box using a rsync front end (luckybackup) here source and target are ext4 in target always and source is either ext4 or lvm on raid.
    2) Backup of my PC Windows Vista using an own written script which uses ntfsclone where source and target are ntfs.
    3) Backup of my Windows 7 laptop
    The problem is that I have performance issues in scenario's 1 & 2 (but not always) and never in case 3. I think this might finally be hardware related ...
    Just before writing this post I connected the drive and it didn't even appear in my file manager (nemo under cinnamon 2.0). So I ran a journalctl and here is the outcome :
    Feb 02 09:55:33 Megatron kernel: usb 2-4: new high-speed USB device number 3 using ehci-pci
    Feb 02 09:55:33 Megatron kernel: usb 2-4: new high-speed USB device number 4 using ehci-pci
    Feb 02 09:55:33 Megatron mtp-probe[911]: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:13.2/usb2/2-4"
    Feb 02 09:55:33 Megatron mtp-probe[911]: bus: 2, device: 4 was not an MTP device
    Feb 02 09:55:33 Megatron kernel: usb-storage 2-4:1.0: USB Mass Storage device detected
    Feb 02 09:55:33 Megatron kernel: scsi12 : usb-storage 2-4:1.0
    Feb 02 09:55:33 Megatron kernel: usbcore: registered new interface driver usb-storage
    Feb 02 09:55:34 Megatron kernel: scsi 12:0:0:0: Direct-Access     WD       My Passport 07A8 1049 PQ: 0 ANSI: 6
    Feb 02 09:55:34 Megatron kernel: scsi 12:0:0:1: Enclosure         WD       SES Device       1049 PQ: 0 ANSI: 6
    Feb 02 09:55:34 Megatron kernel: sd 12:0:0:0: [sde] Spinning up disk...
    Feb 02 09:56:04 Megatron systemd-udevd[186]: worker [926] /devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4:1.0/host12/target12:0:0/12:0:0:1 timeout; kill it
    Feb 02 09:56:04 Megatron systemd-udevd[186]: seq 1876 '/devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4:1.0/host12/target12:0:0/12:0:0:1' killed
    Feb 02 09:56:06 Megatron kernel: usb 2-4: reset high-speed USB device number 4 using ehci-pci
    Feb 02 09:56:06 Megatron kernel: .ready
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] Write Protect is off
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] Mode Sense: 53 00 10 08
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] No Caching mode page found
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] Assuming drive cache: write through
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] No Caching mode page found
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] Assuming drive cache: write through
    Feb 02 09:56:06 Megatron kernel:  sde: sde1 sde2
    Feb 02 09:56:06 Megatron kernel: ses 12:0:0:1: Attached Enclosure device
    Feb 02 09:56:06 Megatron systemd-udevd[186]: worker [926] terminated by signal 9 (Killed)
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] No Caching mode page found
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] Assuming drive cache: write through
    Feb 02 09:56:06 Megatron kernel: sd 12:0:0:0: [sde] Attached SCSI disk
    Feb 02 09:56:07 Megatron org.gtk.Private.UDisks2VolumeMonitor[592]: ### debug: emit_signal: 0x175a210
    Feb 02 09:56:37 Megatron systemd-udevd[186]: worker [908] /devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4:1.0/host12/target12:0:0/12:0:0:0/block/sde/sde1 timeout; kill it
    Feb 02 09:56:37 Megatron systemd-udevd[186]: seq 1884 '/devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4:1.0/host12/target12:0:0/12:0:0:0/block/sde/sde1' killed
    Feb 02 09:56:37 Megatron systemd-udevd[186]: worker [928] /devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4:1.0/host12/target12:0:0/12:0:0:0/block/sde/sde2 timeout; kill it
    Feb 02 09:56:37 Megatron systemd-udevd[186]: seq 1885 '/devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4:1.0/host12/target12:0:0/12:0:0:0/block/sde/sde2' killed
    Feb 02 09:56:37 Megatron kernel: usb 2-4: reset high-speed USB device number 4 using ehci-pci
    Feb 02 09:56:38 Megatron systemd-udevd[186]: worker [908] terminated by signal 9 (Killed)
    Feb 02 09:56:38 Megatron systemd-udevd[186]: worker [928] terminated by signal 9 (Killed)
    Something also worth knowing : the drive is know for being a heavy power drain on the usb 2.0 port (it does not have an external power connection and gets its power only via usb) . So I bought a specific cable with 3.0 at one end and 2 usb 2.0 at the other end : one for transferring data and one for power.

  • Slow performanc​e to read/write shared variables programati​cally

    We are using datasocket read and write functions to read and write shared variables programatically (in the same machine) but we only achieve a performance of aprox. 200 reads/writes per second. We are using Labview 8.6 with DSC.
    Is possible to get better results? That performance is normal?
    Any help would be appreciated. Thank you in advance.

    Hi MMCDAT,
    I think this value can
    be normal as you can see in this link:
    http://zone.ni.com/devzone/cda/tut/p/id/5037
    As you can see, the
    limit for datasocket depends on your Ethernet limitations, even if you as using
    it just in one PC:
    http://digital.ni.com/public.nsf/websearch/6AC9E65​734E53F9A8625672400637ECC?OpenDocument
    You can improve the
    performance changing the update mode or Vis configurations:
    http://digital.ni.com/public.nsf/allkb/F8F7DE98856​B50588625672400648045?OpenDocument
    http://digital.ni.com/public.nsf/allkb/2D9C6D73A16​0537986256B290076456E?OpenDocument

  • Can I read/write global variables that are in other PC?

    I attach the vis and the executables.
    My problem is that when I run( continuosly, because in other way, I read the default value of the variable) getvalue.vi and setvalue.vi, I don´t have any problem, I can read/write the global variables, the two vis is running in the same PC.
    But when I do the exe and I run them continuosly , it doesn´t work.
    Any solution?
    Thanks in advanced!
    Graci
    Attachments:
    Get_Value.vi ‏30 KB
    Set_Value.vi ‏30 KB
    Exe.zip ‏272 KB

    Hello Bichillo,
    By running the vis continuously you are running into race conditions. If you cannot control when you are writing to or reading from a global variable, you cannot know whether the value writen/read is the right one or not.
    In your case the global variable value that is read is sometimes the last value writen and sometimes an empty string.
    To make the global variable behave as desired, that is, keeping its last value, the global variable must be in memory when you access it using VI Server. If it is not in memory, the returned value is an empty string. That´s why you sometimes get a non-empty string: when you access the global variable to read its value, it happens to be in memory because you´ve just writen to it.
    To ensure that the global
    variable is always in memory and it keeps its last value, you must include the global variable into your block diagram. I am attaching modified vis that implement this.
    Hope it helps.
    César Verdejo
    Training and Certification | National Instruments
    Attachments:
    Get-_Set_Value.llb ‏48 KB

  • Problema di polimorfismo con Read/Write delle Shared variable

    Salve,
    Cercando di modificare l'esempio di progetto "Shared Variable Client/Server" in un progetto dove sono i diversi client a mandare dati al Server ( ovvero l'esatto contrario di quello che fa )
    mi sono inbattuto nel problema illustrato nelle due figure che seguono.
    Ovvero, sostituendo "Writable PSP Variable" ad "Readable" nella scheda "Connect"(FIGURA 1) mi da un errore nella scheda "Read/Write" (FIGURA 2), ovviamente anche qui ho sostituito a "Read Variable" un "Write Variable".
    Mentre utilizzando il Data Socket funziona, ma non mi sono chiari i vantaggi e gli svantaggi nell'utilizzare quest'approccio.
    Qual'è la strada migliore tra Shared Variable e Data Socket per creare un sistema Client/Server così costituito, ovvero con un cospicuo numero di client da servire ( destinato a crescere  )che mandano simultaneamente un discreto quantitativo di dati ( circa quelli di una seriale a 115200bps ) ad un server
    FIGURA 1 
    IMMAGINE 2

    Translation 
    Hi,
    Trying
    to modify the sample project "Shared Variable Client / Server" in a
    project where different clients to send data to the server (ie the
    exact opposite of what it does)
    I untapped in the problem illustrated in the two figures that follow.
    That
    is, replacing "Writable PSP Variable" to "readable" in "Connect"
    (Figure 1) gives me an error in "Read / Write" (FIGURE 2), and of
    course here I replaced "Read Variable" a "Write Variable.
    While using the Data Socket works, but I have clear advantages and disadvantages of using this approach.
    What
    is the best route between Shared Variable and Data Socket to create a
    client / server system so constituted, or with a large number of
    customers to serve (to grow) that simultaneously sends a fair amount of
    data (approximately those of a serial to 115200bps) to a server
    The images points to a gmail location. It is not properly attached.

  • Incorrect data type when writing to FPGA Read/Write Control

    I have run in to a problem this morning that is causing me substantial headache.  I am programming a CompactRIO chassis running in FPGA mode (not using the scan engine) with LabVIEW 2012.  I am using the FPGA Read/Write Control function to pass data from the RT Host to the FPGA Target.  The data the RT host is sending comes from a Windows host machine (acting as the UI) and is received by the RT Host through a network published variable.
    The network published shared variable (shared between the RT and Windows system) is a Type Def cluster containing several elements, one of which is a Type Def cluster of fixed point numerics.  The RT system reads this shared variable and breaks out the individual elements to pass along to various controls on the FPGA code's front panel.  The FPGA's front panel contains a type def cluster (the same type def cluster, actually) of fixed point numerics.
    The problem comes in the RT code.  After I read the shared variable I unbundle the cluster by name, exposing the sub-cluster of fixed point numerics.  I then drop an FPGA Read/Write Control on the RT block diagram and wire up the FPGA reference.  I left click on the FPGA Read/Write Control and select the cluster of fixed point numerics.  I wire these together and get a coercion dot.  Being a coercion dot hater, I hover over it the dot and see that the wire data type is correct (type def cluster of fixed point numerics), but the terminal data type is listed as a cluster containing a Boolean, code integer and source string, also known as an error cluster.  I delete the wire and check the terminal data type on the Read/Write Control, which is now correctly listed as a type def cluster of fixed point numerics.  Rewiring it causes the terminal to revert back to the error cluster.  I delete the wire again and right click on the terminal to add a control.  Sure enough, a type def cluster of fixed point numerics appears.  Right clicking and adding an indicator to the unbundle attached to the network shared variable produces the proper result.  So, until they are attached to each other, everything works fine.  When I wire these two nodes together, one spontaneously changes to a error cluster.
    Any thoughts would be appreciated.

    My apologies I never got back to responding on this.  I regret that now because I got it to work but never posted how.  I ran in to the exact same problem today and returned to this post to read the fix.  It wasn't there, so I had to go through it all over again.
    The manifestation of the problem this time was that I was now reading from the Read/Write FPGA front panel control and writing to a network published shared variable.  Both of these (the published shared variable and the front panel control) were based on a strict type defined cluster, just like in the original post.  In this instance, it was a completely different cluster in a completely different project, so it was not a one-off thing.
    In addition to getting the coercion dot (one instance becoming an error cluster, recall), LabVIEW would completely explode this time around.  If I saved the VI after changing type definition (I was adding to the cluster) I would get the following error:
    Compile error.  Report this problem to N.I. Tech Support.  Copy cvt,csrc=0xFF
    LabVIEW would then crash hard and shutdown without completing the save.  FYI, I'm running LabVIEW 12.0f3 32-bit.
    If I would then reopen the RT code, the same crash would occur immediately, ad nauseam.  The only way to get the RT code to open was to change the type defined cluster back to the way it was (prior to adding the new element).
    I didn't realize it last time around (what originally prompted this post), but I believe I was adding to a type def cluster when this occurred the first time.
    So, how did I fix it this time around? By this point I tried many, many different things, so it is possible that something else fixed it.  However, I believe that all I had to do was to build the FPGA code that the RT code was referencing.  I didn't even have to deploy it or run it... I just had to build it.  My guess is that the problem was the FPGA Reference vi (needed to communicate with the FPGA) is configured (in my case) to reference a bit file.  When the development FPGA Main.vi ceases to match the bit file, I think that bad things happen.  LabVIEW seems to get confused because the FPGA Main.vi development code is up and shows the new changes (and hence has the updated type def), but when you ask the RT code to do something substantial (Open, Save, etc), it refers to the old bit file that has not yet been updated.  That is probably why the error getting thrown was a compile error.
    I'm going to have to do an additional round of changes, so I will test this theory.  Hopefully I will remember to update this post with either a confirmation or a retraction.

  • Variable engine write hangs

    I am using the shared variable engine to bind shared variables to an OPC server (DSC/Labview 8.5)
    When using read only variables, all works OK
    When using a read/write variable (specified either R/W or W only in the shared variable definition), the shared variable engine hangs, and needs to be stopped and restarted for the program to work again. If the engine is not stopped and restarted, I basically get a shared variable is not located error (same as if I stopped the service manually)
    I have tried synchronous or asynch writing as per the OPC Client I/O Server Advanced tab definitions (as well as In or Out of process).
    Any idea why writes would be failing, but reads are working OK

    a timed loop fires say every 1 sec, so I may have up to 1 sec latency between the clicking of a switch, an the action required.
    If I set the loop interval to less than 500 ms, then I get long delays between the writing to the variable, and when it actually occurs. Even shorter times, I may never see the change in the variable.
    I don't need fast updates, I just need them to start occurring without a delay when the event happens. In addition, if possible to have some way to allow the next setting of the variable to happen when the first one is finished.
    In effect the sequence required is
    1) Write to the variable
    2) dissallow any further writes to the variable
    3) check if the variable state has changed to that expected, and reallow variable write access
    4) have a safety check, so if the write does not happen after a given time, time out, and reallow variable writes

  • Unable to read "read/write" OPC tags through datasockets

    I am having problems reading tags from an OPC server that are "read/write" access. Reading "read-only" tags works good. I am using the Datasocket Open.vi and Datasocker Read.vi and I have tried to set the mode input of the Datasocket Open to "read/write" follow by a Datasocket Read without any success. I am constantly getting the 1179 error as return.  
    I have tried to read the same tags with an OPC Client software and it works fine.
    Anyone that have successfully read a "read/write" OPC tag using Datasockets?  

    Are you watching these variables in another program as well? I have seen this error pop up before when variables were on the watch list and variable manager was open.  Make sure you have nothing else grabbing the resource at the same time.
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

  • Question on SNMP Read-Write String ...

    Hi,
    My question is that if I am using an SNMP read-write community string on the device, would Prime LMS still require
    the logging credentials of the device via ie) telnet/ssh ?
    The reason how I undertand this as long as the SNMP manager (Prime LMS) and the agent (end device) have the same read-write community,
    couldn't the Prime LMS just write to the device without the standard logging credentials ? or is the logging credential of the device is a must for it
    to push configuration to the device ?
    Pls advise.
    Many thanks.
    Cheers,
    - sn -

    Even though the SNMP communication is there between device and LMS, it is not possible to configure any device using SNMP, except for the RW variable and OIDs, which are limited in their scope.
    It is not possible to configure, but to copy configuration to or from device using SNMP. See the following document to check further:
    http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml
    Many people use this manual process to copy configuration from device using SNMP, edit it and copy back to device to make configuration changes, but ideally no NMS server does it and LMS is no exception.
    It uses transport Layer protocols like telnet/ssh to communicate with device like a normal user to configure commands, which in this case is done by Netconfig job.
    For more details see :
    http://www.cisco.com/en/US/products/sw/cscowork/ps2073/products_tech_note09186a00800a6974.shtml
    http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_resource_manager_essentials/4.3/user/guide/netcfg.html#wp1070214
    -Thanks
    Vinod Arya

  • Q. Reader-Writer lock across unrelated processes?

    What mechanism would you suggest to implement Reader-Writer locks across unrelated processes?
    Though the documentation for pthread_rwlock_ functions state
    Synchronization Across Process Boundaries
    Each of the synchronization primitives can be set up to be used across process
    boundaries. This is done quite simply by ensuring that the synchronization variable is
    located in a shared memory segment and by calling the appropriate init() routine,
    after the primitive has been initialized with its shared attribute set as interprocess.
    but they work only if the processes are forked off from a given process which initialized the relevant synchronization variable and not if the processes are totally unrelated.

    What mechanism would you suggest to implement Reader-Writer locks across unrelated processes?
    Though the documentation for pthread_rwlock_ functions state
    Synchronization Across Process Boundaries
    Each of the synchronization primitives can be set up to be used across process
    boundaries. This is done quite simply by ensuring that the synchronization variable is
    located in a shared memory segment and by calling the appropriate init() routine,
    after the primitive has been initialized with its shared attribute set as interprocess.
    but they work only if the processes are forked off from a given process which initialized the relevant synchronization variable and not if the processes are totally unrelated.

  • Granting read/write permissions on Oracle Server processes

    Hi
    I'm trying to set up a BFILE datatype in a table. I have created the directory and the current user has permissions to read and write to that folder. (The current user has the create any directory permission granted). The insert statement does not give an error but when I look at the table the BFILE column contains an error of <Value Error>.
    I suspect it may be because the current user does not have server read/write permissions on the directory I'm using. Can anybody help me with a correcting this please?
    Here is what I've used so far:
    CREATE or replace DIRECTORY pic_dir AS 'c:\temp'
    INSERT INTO picture (pic_id, filename)
    VALUES (1, bfilename('pic_dir', 'image1.jpg'))

    Many thanks for the reply.
    I am using the procedure as below (formats better if copied into Notepad). Gives me an error of "ORA-22285: non-existent directory or file for FILEOPEN operation" referring to the line containing the DBMS_LOB.FILEOPEN command.
    I suspect there is something wrong with the SELECT statement because I can get the procedure to run fine on the text file if I provide the BFILE location directly into the bfile_loc variable (as opposed to using the SELECT statement to retrieve it from the db).
    I created a directory: CREATE OR REPLACE DIRECTORY pic_dir AS 'C:\temp'
    I then created a table: CREATE TABLE picture (pic_id NUMBER, filename BFILE)
    Next I added a row: INSERT INTO picture VALUES(1, BFILENAME('pic_dir', 'testfile.txt'))
    CREATE OR REPLACE PROCEDURE read_bfile IS
    sep_char CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(32));      --separating character (space)
    end_file CONSTANT RAW(100) := UTL_RAW.CAST_TO_RAW(CHR(10));      --end of file character (new line)
    bfile_loc BFILE;                               --pointer to BFILE
    cur_pos NUMBER := 1;                          --current position in file
    char_read BINARY_INTEGER := 0;                     --number of characters read
    read_buff VARCHAR2(500);                          --read buffer
    end_word NUMBER;                              --end of current word
    ret_val BOOLEAN := FALSE;                         --return value
    BEGIN
    select filename into bfile_loc from picture where pic_id = 1;
    DBMS_LOB.FILEOPEN(bfile_loc, dbms_lob.file_readonly);
    LOOP
    -- establish end of current word
    end_word := DBMS_LOB.INSTR(bfile_loc, sep_char, cur_pos, 1);
    -- process end-of-file
    IF (end_word = 0) THEN
    end_word := DBMS_LOB.INSTR(bfile_loc, end_file, cur_pos, 1);
    char_read:= end_word - cur_pos - 1;
    DBMS_LOB.READ(bfile_loc, char_read, cur_pos, read_buff);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(read_buff));
    EXIT;
    END IF;
    -- read until end-of-file
    char_read:= end_word - cur_pos;
    DBMS_LOB.READ(bfile_loc, char_read, cur_pos, read_buff);
    dbms_output.put_line(UTL_RAW.CAST_TO_VARCHAR2(read_buff));
    cur_pos := cur_pos + char_read+ 1;
    END LOOP;
    DBMS_LOB.CLOSE(bfile_loc);
    END;

  • Shortcuts for change in read/write (control/indicator)

    Hello,
    I try to find a shortcut for change to read/write a local variable ?
    Thanks
    Sylvain Jourdan
    (Labview 2012 - English)

    Hi,
    Thanks for you quick answer, I'll suggest this idea in the LabVIEW-IdeaExchange.
    An other idea, do you know if we can add a property to the shorcut menu by modifying a configuration file... ?
    Thanks,
    Sylvain
    Attachments:
    option_menu.png ‏53 KB

  • Read/Write outputs on PCI6527 Board

    Hello,
    I want to show on a screen 8 Digital values representing the state of my
    PCI6527 port. I need also to change the state of a digital output when I
    click on it.
    On the LABVIEW examples, I only found examples to read OR to write, BUT no
    read/Write at the same time.
    If somebody have a solution, it would be great!
    Thanks.

    ALTAIIRE,
    In you main while loop, first read your port, check the value read and see
    if any line has changed from the value you last read from or wrote to the
    port. You can store the last value read or written into a shift register.
    If the value read from the port has changed then update your control by
    writing to a local variable of the control. If the value has not changed
    do not write to the local variable. If the control has changed, but not
    because the port change wrote to the local then write to the port. If that
    condition is not met then do not write to the port. If you follow these
    steps then you should be able to avoid a "race condition". Be careful though
    because a "race condition" could make your port lines flicker like a christmas
    tree
    -Jim
    If
    you VI doesn't work email it to me and I will help you out.
    "ALTAIIRE" wrote:
    >>Hello,>I want to show on a screen 8 Digital values representing the state
    of my>PCI6527 port. I need also to change the state of a digital output when
    I>click on it.>On the LABVIEW examples, I only found examples to read OR
    to write, BUT no>read/Write at the same time.>If somebody have a solution,
    it would be great!>>Thanks.

  • How do you create default Read/Write Permissions for more than 1 user?

    My wife and I share an iMac, but use separate User accounts for separate mail accounts, etc.
    However, we have a business where we both need to have access to the same files and both have Read/Write permissions on when one of us creates a new file/folder.
    By default new files and folders grant Read/Write to the creator of the new file/folder, and read-only to the Group "Staff" in our own accounts or "Wheel" in the /Users/Public/ folder, and read-only to Everyone.
    We are both administrators on the machine, and I know we can manually override the settings for a particular file/folder by changing the permissions, but I would like to set things up so that the Read/Write persmissions are assigned for both of us in the folder for that holds our business files.
    It is only the 2 of us on the machine, we trust each other and need to have complete access to these many files that we share. I have archiveing programs running so I can get back old versions if we need that, so I'm not worried about us overwriting the file with bad info. I'm more concerned with us having duplicates that are not up to date in our respective user accounts.
    Here is what I have tried so far:
    1. I tried to just set the persmissions of the containing folder with us both having read/write persmissions, and applied that to all containing elements.
    RESULT -> This did nothing for newly created files or folders, they still had the default permissions of Read/Write for the creating User, Read for the default Group, Read for Everyone
    2. I tried using Sandbox ( http://www.mikey-san.net/sandbox/ ) to set the inheritance of the folder using the methods laid out at http://forums.macosxhints.com/showthread.php?t=93742
    RESULT -> Still this did nothing for newly created files or folders, they still had the default permissions of Read/Write for the creating User, Read for the default Group, Read for Everyone
    3. I have set the umask to 002 ( http://support.apple.com/kb/HT2202 ) so that new files and folders have a default permission that gives the default group Read/Write permissions. This unfortunately changes the default for the entire computer, not just a give folder.
    I then had to add wife's user account to the "Staff" group because for some reason her account was not included in that. I think this is due to the fact that her account was ported into the computer when we upgraded, where as mine was created new. I read something about that somewhere, but don't recall where now. I discovered what groups we were each in by using the Terminal and typing in "groups username" where username was the user I was checking on.
    I added my wife to the "Staff" group, and both of us to the "Wheel" group using the procedures I found at
    http://discussions.apple.com/thread.jspa?messageID=8765421&#8765421
    RESULT -> I could create a new file using TextEdit and save it anywhere in my account and it would have the permissions: My Username - Read/Write, "Staff" or "Wheel" (depending on where I saved it) - Read/Write, Everyone - Read Only, as expected from the default umask.
    I could then switch over to my wife's account, open the file, edited it, and save it, but then the permissions changed to: Her Username - Read/Write, (unknown) - Read/Write, Everyone - Read Only.
    And when I switch back to my account, now I can open the file, but I can't save it with my edits.
    I'm at my wits end with this, and I can believe it is impossible to create a common folder that we can both put files in to have Read/Write permissions on like a True Shared Folder. Anyone who has used windows knows what you can do with the Shared folder in that operating system, ie. Anyone with access can do anything with those files.
    So if anyone can provide me some insight on how to accomplish what I really want to do here and help me get my system back to remove the things it seems like I have screwed up, I greatly appreciate it.
    I tried to give as detailed a description of the problem and what I have done as possible, without being to long winded, but if you need to know anything else to help me, please ask, I certainly won't be offended!
    Thanks In Advance!
    Steve

    Thanks again, V.K., for your assistance and especially for the very prompt responses.
    I was unaware that I could create a volume on the HD non-destructively using disk utility. This may then turn out to be the better solution after all, but I will have to free up space on this HD and try that.
    Also, I was obviously unaware of the special treatment of file creation by TextEdit. I have been using this to test my various settings, and so the inheritance of ACLs has probably been working properly, I just have been testing it incorrectly. URGH!
    I created a file from Word in my wife's account, and it properly inherited the permissions of the company folder: barara - Custom, steve - Custom, barara - Read/Write, admin - Read Only, Everyone - Read Only
    I tried doing the chmod commands on $TMPDIR for both of us from each of our accounts, but I still have the same behavior for TextEdit files though.
    I changed the group on your shared folder to admin from wheel as you instructed with chgrp. I had already changed the umask to 002, and I just changed it back to 022 because it didn't seem to help. But now I know my testing was faulty. I will leave it this way though because I don't think it will be necessary to have it set to 002.
    I do apparently still have a problem though, probably as a result of all the things I have tried to get this work while I was testing incorrectly with TextEdit.
    I have just discovered that the "unknown user" only appears when I create the a file from my wife's account. It happens with any file or folder I create in her account, and it exists for very old files and folders that were migrated from the old computer. i.e. new and old files and foders have permissions: barara - Read/Write, unknown user - Read Only, Everyone - Read Only
    Apparently the unknown user gets the default permissions of a group, as the umask is currently set to 022 and unknown user now gets Read Only permissions on new items, but when I had umask set to 002, the unknown user got Read/Write permissions on new items.
    I realize this is now taking this thread in a different direction, but perhaps you know what might be the cause of this and how to correct or at least know where to point me to get the answer.
    Also, do you happen to know how to remove users from groups? I added myself and my wife to the Wheel group because that kept showing up as the default group for folders in /Users/Shared
    Thanks for your help on this, I just don't know how else one can learn these little "gotchas" without assistance from people like you!
    Steve

  • An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions.

    An alert message pops up upon opening saying could not initiate application security component, and it says to check to see if profile has no read/write restrictions. Than when it opens all of my saved passwords are gone, I use a master password and its disabled. When I try to enter in a new on e it says can't change password. I can't even open yahoo e-mail says that my ssl security is down but when I check it its clicked. I'm just very confused as to whats going on.
    == This happened ==
    Every time Firefox opened
    == 5/14/2010 ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5

    See [[Could not initialize the browser security component]]
    Rename (or delete) secmod.db (secmod.db.old) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file.

Maybe you are looking for

  • Custom installation using XE

    Basic installation of SOA Suite does not seems to work, I don't why. I have tried Custom installation using XE Database which works but Apcahe Web Server is throwing exceptions in installation phase (when installation process tries to launch unmanage

  • Possible to setup email to only download upon request?

    Right now I'm working on my laptop, but every email that I receive on my laptop is concurrently being delivered to my BB.  That means that I spend a lot of time reviewing and deleting email on both my laptop and BB.  Is there a way to control WHEN I

  • VL10a - Dialog vs. Background

    Hi All, I need input regarding this scenario with tcode VL10a. I have a Sales Order and I create delivery for it through VL10a. My SO has 3 line items. When I process the SO in Dialog mode, a delivery is created for all three line items. When I use t

  • PO item issue

    Hi All, Is there any way where we can check the date when a line item is added to a PO (I am not saying some thing about the changes or changed date). A perfect date of line item added to PO.. I replicated but could not find the item added.

  • POST ProtocolException

    Hi, I'm developing a standalone application (1 class) to learn the Http connection. I have a Servlet running on tomcat that work fine when called in GET mode (i.e. url.../simple?UserName=Me). Now when I run the application and do the: con.setRequestM