How to allow write privileges by a process to files?

Hi there
In SPARC-Solaris8:
How to allow write privileges by a process to files?
Tks in advance,
C�sar

The access to files will be controlled by the owner of the files, the owner of the process trying to access the files and the permissions set on the files.
You can use either user, group or world permissions to limit access to files by processes owned by different users.
For example, a files with permissions of 777 (rwxrwxrwx) could be written to by every user on the system. A files with 760 (rwxrw----) could be written to by anyone who owned it, or anyone in the same group, but not have general write permissions.
read man pages on group, chmod, etc to get an understanding of how the permissions and the owner of a process interact.

Similar Messages

  • How do I write a command in a .batch file written in NOTEPAD to run a powershell command?

    How do I write a command in a .batch file written in NOTEPAD to run a powershell command?
    Example:
    powershell -Command "& {Update-Help;}"
    would this be a correct command to put in a .batch file to update help information in powershell.
    All I want to know is how to write a windows powershell command in a .batch file.
    Multi-Commands
    Single-Commands
    Charles Wright

    Hi,
    You can separate multiple commands with a semicolon (;).
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • How can I write new objects to the existing file with already written objec

    Hi,
    I've got a problem in my app.
    Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
    Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
    java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
    If anyone of you know something about this issue, please help!
    Jai

    Here is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
    * Created on 2004-12-23
    package com.cpic.msgbus.monitor.util.cachequeue;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    * @author elgs This is a very high performance implemention of Cache.
    public class StackCache implements Cache
        protected long             seed    = 0;
        protected RandomAccessFile raf;
        protected int              count;
        protected String           cacheDeviceName;
        protected Adapter          adapter;
        protected long             pointer = 0;
        protected File             f;
        public StackCache(String name) throws IOException
            cacheDeviceName = name;
            f = new File(Const.cacheHome + name);
            raf = new RandomAccessFile(f, "rw");
            if (raf.length() == 0)
                raf.writeLong(0L);
         * Whne the cache file is getting large in size and may there be fragments,
         * we should do a shrink.
        public synchronized void shrink() throws IOException
            int BUF = 8192;
            long pointer = getPointer();
            long size = pointer + 4;
            File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
            FileInputStream in = new FileInputStream(f);
            FileOutputStream out = new FileOutputStream(temp);
            byte[] buf = new byte[BUF];
            long runs = size / BUF;
            int mode = (int) size % BUF;
            for (long l = 0; l < runs; ++l)
                in.read(buf);
                out.write(buf);
            in.read(buf, 0, mode);
            out.write(buf, 0, mode);
            out.flush();
            out.close();
            in.close();
            raf.close();
            f.delete();
            temp.renameTo(f);
            raf = new RandomAccessFile(f, "rw");
        private synchronized long getPointer() throws IOException
            long l = raf.getFilePointer();
            raf.seek(0);
            long pointer = raf.readLong();
            raf.seek(l);
            return pointer < 8 ? 4 : pointer;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
        public synchronized byte[] load() throws IOException
            pointer = getPointer();
            if (pointer < 8)
                return null;
            raf.seek(pointer);
            int length = raf.readInt();
            pointer = pointer - length - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            byte[] b = new byte[length];
            raf.seek(pointer + 4);
            raf.read(b);
            --count;
            return b;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
        public synchronized void save(byte[] b) throws IOException
            pointer = getPointer();
            int length = b.length;
            pointer += 4;
            raf.seek(pointer);
            raf.write(b);
            raf.writeInt(length);
            pointer = raf.getFilePointer() - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            ++count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
        public synchronized int getCachedObjectsCount()
            return count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
        public String getCacheDeviceName()
            return cacheDeviceName;
    }

  • How to get aperture3 and iPhoto to process RAW files from NEX7 ?

    I have read that there is an update which fixes aperture3 and iPhoto to process RAW files from  sony NEX7. How do I find and download this Update ?

    Look throught http://www.apple.com/support/downloads and you'll find this
    http://support.apple.com/kb/DL1510
    Regards
    TD

  • HOW TO - Create new from clipboard and process multiple files - please help

    Need help - have new version of photoshop on trial only ATM...
    Want to know - HOW TO:
    1. Create new from clipbaord
    2. Process multiple files
    Please help.

    For clipboard copy, I start with File > New and the size will be set to what's in the clipboard. Then once the new file is opened, Edit > Paste will place the clipboard contents as a layer in the new document.
    You must remember to use the command Layer > Flatten Image of you want to save as jpeg or any other file format that doesn't support layers.
    For processing multiple files,
    File > Automate > Batch or
    File > Scripts > Image Processor...
    Check the User guide or google information for those commands if you have specific needs.
    Gene

  • How do you write an image threshold to a file

    Hi, I use IMAQ threshold to threshold an RGB image. How do I write this image to a file? Whenever I use the IMAQ Write JPG or Write PNG vI and try to view the file with the windows image viewer all I see is a black image. Does anyone know how to save a binary image?

    If you cast it to an eight bit image and save it as a BMP or JPEG does it show up correctly? If so the problem probably lies in the fact that a 16-bit image in LabVIEW is signed, while third party viewers usually assume that it is unsigned. So rather than pixel values going from -32766 to 32767, they go from 0 to 65536. There are example programs on ni.com to get around this. One is called "Mapping a 16-bit Image to an 8-bit Image," another is called "Bit Shift an IMAQ Vision 12-bit Image and Resave for External Viewer." If you search for these titles on the ni.com search bar, you should be able to find them.
    Kyle V

  • How to allow UniversalFileRead privileges in Firefox?

    I'm running an EMC-Documentum Web application. When I click on a button from this app Firefox doesn't execute the action, since the Javascript of the button is seeking to kick off an event needed UniversalFileRead privileges.

    See if this helps you. <br />
    https://support.mozilla.com/en-US/kb/Granting+JavaScript+access+to+the+clipboard <br />
    The AllowClipboard Helper extension will help you set up the necessary permissions. <br />
    https://addons.mozilla.org/en-US/firefox/addon/852

  • How can I write some informations in a text file ?

    Hello.
    I am a beginner in java in general and in Web Dynpro Java in particular.
    I have to work in an application written by a consultant wich works no more at my office.
    Due to performances problems (slowness of the application at unpredictable instants),
    I have to write in an external file all the actions which make the users in the application.
    The problem is I don't know how to proceed.
    Somebody can help me ?
    Edited by: Serge L. on Aug 10, 2009 2:21 PM

    Hi Serge,
    You can try this as well to generate a text file.
    Use Filedownload UI element. And try following code in Webdynpro.....
    IOUtil IOUtil=new IOUtil();
    File f = new File("skill_master.txt");
    FileWriter fw = new FileWriter(f);
    fw.write(formattedStr);
    fw.close();
    InputStream template  = new FileInputStream(f);
    ByteArrayOutputStream templateSourceOutputStream = new ByteArrayOutputStream();
    IOUtil.write(template, templateSourceOutputStream);
    IWDCachedWebResource resource=WDWebResource.getWebResource(templateSourceOutputStream.toByteArray(), WDWebResourceType.getWebResourceType( "txt","text/html"));
    resource.setResourceName("User.txt");
    wdContext.currentContextElement().setVa_FileData(resource);
    Here formattedStr is the string which contain all the contents you want in the file. Here Va_FileData  attribute is of type com.sap.ide.webdynpro.uielementdefinitions.Resource.
    Map this Va_FileData attribute to the Filedownload UI. So that when u click on the FileDownload UI it will generate a txt file.
    Hope it helps you.
    Regards,
    Swati

  • How can I write waveform data to a txt file or an excel sheet?

    I want have a table that I can follow up in excel. In first column should be the timestamp (in ms or better in us), in the second column should be the value. I made an effort but it doesn´t work.
    Attachments:
    PWMReadWrite.vi ‏167 KB

    Yes, you must change block (Get Date/Time String.vi).
    You must write new subVI - this new VI convert date and time to the second [or ms or us].
    First choice is: time column will be count of second [the better ms or best us] since 12:00 a.m., January 1, 1904, Universal time[function "Get Date/Time In Seconds.vi"].
    Text file:
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333
    Second choice is: first record in TXT file will be time when test start and after will be table with time [ms or us] and value.
    Text file:
    Start time: Monday 30-th February 2005.
    0,000 0.000000
    0,050 0.062791
    0,100 0.125333
    Have a nice day.
    JCC
    P.S.: I recommend you creat header of result table to text file.
    Text file:
    time [ms] U [V]
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333

  • How do you write a class to return a file?

    So I've read http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html
    But I still do not know how to pass a file to a calling method of another class. How does the FileChooser class retrun the file. Please help.

    You mean something like this?
    import java.io.File;
    public class FileTest {
         public File getFile(String path) {
         //Example path =  "C:\\path\\to\\file.txt"
              return new File(path);
    }

  • How can I Write a sine wave in an Access-fil​e?

    I measure a sine wave in LabView 6i. How can I write the datas automatically to an Acces-file, at the same time?
    In my program, I managed it with Execute SQL.vi, I change a number in a SQL statement(String) -> after this I push start and then it writes the statement in the Access-file.
    The problem is, it writes only one data per measurement in the file. How can I write all datas in the Access-file and measure the wave at the same time?
    Thanks for help!
    Attachments:
    getwave.vi ‏49 KB

    On the waveform palette, you will find a "to components" vi that you can break out the array of the waveform. You can then, using a for loop write all of the values from the waveform.
    Better yet, there are examples in the database toolkit manual on pages 3-13 to 3-15 that deal with reading arrays (and even has a waveform example).
    Good luck!

  • How do I write to file

    Hello,
    I am acquirng a continous 4-20mA using DAQmx read. How can I write the data acquired as excel file, can some explain how to use the write labview measure file function, or is there any better way of writing using some DAQmx write?
    My acquisition is from 6 channels, so I would like all 6 readings to be written.
    Thanks
    Yemi

    Hi,
    Also, to find example code, go to "Help" >> "Find example..." and search for "excel" if you want to write data to Excel document or search for "spreadsheet" if you want to write data to tabulated text documents.
    Hope this help
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • How can I control a button from one swf file to another swf file?

    Hi,
    I have a main.swf file. From that file I am accessing the external.swf file which is an external file.
    Now, how can I write code on my main.swf file for the button which is on my external.swf file?
    Activities.MainPanel.close_btn.addEventListener(MouseEvent.CLICK, btnClickClose);
    Activities.MainPanel.close_btn (This buttons is actually on external.swf file, but I want to write code on main.swf file to execute it on external.swf) how can I control one swf button on other swf file?
    Thanks.

    Here's some example code that you should be able to adapt to your needs.
    // create a new loader object instance...
    var loader:Loader = new Loader();
    // make the download request...
    var request:URLRequest = new URLRequest("external.swf");
    // add a complete event listener to the loader
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    // start the actual loading process...
    loader.load(request);
    // create a new empty movieClip instance, you will put the loaded movie into this movieClip once its loaded
    var externalMovie:MovieClip;
    // this function is called when the download has finished and the file is ready to use...
    function completeHandler(event:Event):void {
       // set the contents of the loaded movie to the new empty movieClip...
               externalMovie = MovieClip(event.target.content);
       // add this new movie to the display list...
       addChild(externalMovie);
    Now you can refer to the loaded movie with the instance name "externalMovie". So if, for instance, you want to address a button in the loaded movie, you could write something like this on the main timeline:
    externalMovie.addEventListener(MouseEvent.CLICK, btnClickClose);
    function btnClickClose(event:MouseEvent):void {

  • Can I batch process 92 files?

    am trying to convert 92 mov files to ProRes which were shot on canon 7d. Have set up a droplet, and dropped all the files onto it, but it just hangs for ages without the box popping up to allow me to select the multiple processor box.
    AIs this too much for it? I have a pretty fast machine Mac Pro 2.26 Quad Core with 12Gb ram.

    thanks NLE. I needed it done through the night, so couldn't really do small batches at a time. I ended up downloading MPEG Streamclip which is free, and am only dropping in the footage just now, but it worked brilliantly - processed them all in one go and did it in about 2 hours. I had 51GB of H.264 files to convert to ProRes. Very disappointed that compressor (on my system) couldn't deal with this easier.
    I'll be very intrigued to see how the new canon plugin deals with processing these files (when I figure it out!), and the time it takes to process. It appears to me that MPEG Streamclip might be the easiest way to process these clips in future.

  • Changing process.max-file-descriptor  in non global zone

    Hello Folks,
    I have non global zone.
    i wanted to change process.max-file-descriptor to 8192 so i issued the below command
    projmod -s -K 'process.max-file-descriptor=(basic,8192,deny)' default
    i have rebooted zone, after reboot system is not showing the value as 8192.
    can u someone help me to find out the missed

    # id -p
    uid=0(root) gid=0(root) projid=1(user.root)
    # prctl -P $$ | grep file
    process.max-file-descriptor basic 256 - deny 19452
    process.max-file-descriptor privileged 65536 - deny -
    process.max-file-descriptor system 2147483647 max deny -
    process.max-file-size privileged 9223372036854775807 max deny,signal=XFSZ -
    process.max-file-size system 9223372036854775807 max deny -
    # ulimit -n
    256
    # cat /etc/project | grep file
    default:3::::process.max-file-descriptor=(basic,8192,deny)
    #

Maybe you are looking for

  • "The feature you are trying to use is on a network resource not available"

    Recently, every time I try to install the new version of itunes I've been getting this error message. it says to enter an alternate path to a folder containing the installation package "Itunes.msi". I've looked for this package and even found it but

  • My imac freezes while on Safari.

    The color wheel turns, force quit does not respond, the clock even stops.  I've left it like that overnight and when I awake it the next day the color wheel is still turning.  I have to shut it down with the power button and after I restart, then go

  • Trying to Add a DFF Search criteria in Oracle Receivables (Customers HTML)

    Hi Everyone, I am trying to add a DFF search criteria within the Customer's HTML page. I was able to add the new message box, but am not sure how to tie the box to attribute 3 which is in the Receivables Party information Descriptive flex field. Orac

  • Is coding ok for coursework?

    So i have a class with the specifications as so The Aircraft This must be an object which contains the passengers.  You must use a Java Collection object (not an array) to hold the Passengers and this must limit the number of passengers either when t

  • 997 in Seeburger

    Hi We are in the process of implementing an XI-EDI solution using the Seeburger adapter. I've heard that Seeburger generates some report after a syntax check & you can send that as a 997. How do we configure that? Is that an automatic process that is