[solved] How to give one group read permission to file?

Hi!
How can I give the group "logreaders" a permission to read /var/log/messages? and how can I give them read access to the whole /var/log directory?
Thanks!
Last edited by SoleSoul (2010-04-21 20:54:00)

Thank you very much everyone!
I settled on this solution:
# chown root:logreaders /var/log/messages
# chmod g+r /var/log/messages
I got to this conclusion before seeing your post and I was very happy to see from your post that I wasn't wrong.
Thanks for the link Zeist.
I thought before that each file can have it's own list of groups and users which can read/write to it. I was wrong.
Learned something.
Last edited by SoleSoul (2010-04-21 19:44:51)

Similar Messages

  • How can I download and read a SWF file on IPad 2? The message returned is that Safari cannot download that file

    How can I download and read a SWF file on IPad 2? The message returned is that Safari cannot download that file

    SWF files are flash files, which are not supported on the iPad : http://www.apple.com/hotnews/thoughts-on-flash/
    If you want to play the file then the iSwifter or Skyfire browser apps might work (they don't work on all flash sites) but you won't be able to download it

  • How to export one group from my contacts

    On Icloud i've made a group for work people and would like to export the group to give to people at work so they can upload it as a group
    any idea how to do this?

    Hello dorfy666,
    I found a couple of resources that have steps to help you export a group of contacts. 
    If you would like to export a group from www.iCloud.com, you can follow these steps (you can also select all contacts in step 1 by single clicking on one contact in the group and then using command+A):
    Export a contact as a vCard
    Select the contact you want to export in the contacts list.On your Mac, Shift-click to select multiple adjacent contacts or Command-click to select multiple nonadjacent contacts.
    Choose Export vCard from the Action pop-up menu at the bottom of the contacts list.
    If you select multiple contacts, Contacts exports a single vCard containing all of them.
    You can find the full article here:
    iCloud: Export contact information as a vCard
    http://support.apple.com/kb/PH3606
    If you have the group in your Address Book or Contacts application, you can follow these steps:
    Export vCards
    Do one of the following:
    Drag a contact out of the Address Book window to the desktop to create a vCard file.
    Drag multiple contacts or a group out of the Address Book window to the desktop to create one vCard file for all of the contacts.Some applications might not be able to read vCard files that contain multiple entries; to create a vCard file for each contact, hold down the Option key while dragging the contacts or the group.
    In the Address Book window, select one or more contacts or a group, and then choose File > Export > Export vCard.
    Notes and photos are exported by default. To exclude these fields when you export cards, select the appropriate options in Address Book vCard preferences.
    When you export your card, only the fields you’ve chosen to share are exported.
    You can find the full article here:
    Address Book 6.x: Export and import vCards
    http://support.apple.com/kb/PH4655
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to give OR in read

    Hi all,
    I need to write a READ statement for the below req.
    I have one internal table as ITAB.
    Loop at Itab1.
    Read table ITAB2 with key ( CAN = Itab1-Value1 ) or
                              ( CAN = Itab1-Value2 ).
    endloop.
    this is not working.How to give OR condn in Read statement

    You can also use another LOOP statement :
    LOOP AT Itab1.
      LOOP AT ITAB2 WHERE CAN = Itab1-Value1
                       OR CAN = Itab1-Value2.
      ENDLOOP.
    ENDLOOP.

  • How to show two or more PDF in one PDF-Reader / Concatenate PDF-Files

    Hi,
    I want to show two or more PDF files in one PDF reader window or to concatenate two or mor PDF files to one file.
    We use WD4A and ADS.
    Have someone an idea to solve this without an external program?
    Thx in advance
    Jürgen

    We have done this successfully a few times using WDA - it wasn't easy - it took us 2 full weeks to figure it out, so i need to get full points for this one!
    It's going to much easier to do this if you start a brand new WDA. If not, you'll have to re-do all your Context Node navigations within your methods.
    The first thing you need to do is to define your Context properly:
    You need a top level Node defined as 1:1 cardinality (as with all PDF development)
    Next, you need another Container Node 1:n cardinality (this holds the collection of content nodes)
    Finally, you have your PDF Content Node 1:n cardinality - This holds each instance of your PDF form
    In our scenario, we are passed in a list of Project Numbers. We need to generate a PDF sheet for each project in the same PDF session.
    pseudo code - i'm leaving out some of the unnessary details
    Loop through the project number table.
    ADD 1 TO v_cnt.
    * navigate from <TOP> to <PDF_CONTAINER> via lead selection
        lo_nd_pdf_container = lo_nd_top->get_child_node( name = wd_this->wdctx_pdf_container ).
    * This is the Important Part - we check to see if there is an element where index = v_cnt
    * If not, we create one where we can store the new set of data
    * get element via lead selection
        lo_el_pdf_container = lo_nd_pdf_container->get_element( index = v_cnt ).
        IF lo_el_pdf_container IS INITIAL.
          lo_el_pdf_container  = lo_nd_pdf_container->create_element( ).
          lo_nd_pdf_container->bind_element( new_item = lo_el_pdf_container
                                               set_initial_elements = ' '   ).
        ENDIF.
        lo_nd_ideasheet_data =  lo_el_pdf_container->get_child_node( 'IDEASHEET_DATA' ).
        lo_el_ideasheet_data = lo_nd_ideasheet_data->get_element( index = 1 ).
    * fill all the data then bind the structure
    Select * from XXX into lt_XXX
      where project_number = lt_project-project_number.
    * Move Data to appropriate fields/tables
    * Bind the info back to the element
        lo_el_ideasheet_data->set_static_attributes( static_attributes =
                                                  ls_ideasheet_data ).
    Endloop.

  • Best Practive - One mapping reading multiple source files

    I want to develop a solution for one single mapping reading multiple similar source files that are stored on different directories on my OWB server. I want to be able to determine on runtime of my mapping from what location to load the source file from.
    Example:
    Mapping: Load_test_data
    source file 1: c:\input\loc1\test.dat
    source file 1: c:\input\loc2\test.dat
    When I run the mapping I would like to use an input parameter specifying the location loc1 or loc2. I would also like to use this input parameter in my mapping to populate one column in my target table with the value of this input parameter. This design would make it possible to dynamically load source files from different directories and also being able to see after loading where the data came from.
    Questions:
    - Is there a way to create such a design
    - If not, what alternative would be appropriate.
    Thanks in advance for the feedback

    Thanks for the feedback. Unfortunately I do not use workflow together with my OWB.
    I now indeed specified the file name and file location in the configuration of my mapping. However I am not able to change then upon executing the mapping. Data file name and file location are empty and greyed out when I execute my mapping. It always takes the values I specified in the configuration of my mapping
    What I would like to do is specify the location upon runtime when I execute my mapping, but I don't know if this is possible. In addition I'd also want to use the data file location as an input parameter for one of the columns I populated in my target table.
    Then in the end I would be able to use one mapping and read multiple sources files from different locations and also be able to check in the end where the data was loaded from.
    Hope you can give me some more feedback on how to set this up in OWB.
    Many Thanks!
    data file name parameter to ma

  • How can I get to read a large file and not break it up into bits

    Hi,
    How do I read a large file and not get the file cut into bits so each has its own beginning and ending.
    like
    1.aaa
    2.aaa
    3.aaa
    4....
    10.bbb
    11.bbb
    12.bbb
    13.bbb
    if the file was read on the line 11 and I wanted to read at 3 and then read again at 10.
    how do I specify the byte in the file of the large file since the read function has a read(byteb[],index,bytes to read);
    And it will only index in the array of bytes itself.
    Thanks
    San Htat

    tjacobs01 wrote:
    Peter__Lawrey wrote:
    Try RandomAccessFile. Not only do I hate RandomAccessFiles because of their inefficiency and limited use in today's computing world, The one dominated by small devices with SSD? Or the one dominated by large database servers and b-trees?
    I would also like to hate on the name 'RandomAccessFile' almost always, there's nothing 'random' about the access. I tend to think of the tens of thousands of databases users were found to have created in local drives in one previous employer's audit. Where's the company's mission-critical software? It's in some random Access file.
    Couldn't someone have come up with a better name, like NonlinearAccessFile? I guess the same goes for RAM to...Non-linear would imply access times other than O(N), but typically not constant, whereas RAM is nominally O(1), except it is highly optimised for consecutive access, as are spinning disk files, except RAM is fast in either direction.
    [one of these things is not like the other|http://www.tbray.org/ongoing/When/200x/2008/11/20/2008-Disk-Performance#p-11] silicon disks are much better at random access than rust disks and [Machine architecture|http://video.google.com/videoplay?docid=-4714369049736584770] at about 1:40 - RAM is much worse at random access than sequential.

  • [SOLVED] How to export a selection in a PDF file as PDF ?

    I tried a lot of PDF readers, but none of them supports exporting a selection as PDF. Okular have a similar function, but it can only save selections as JPEG or PNG. Alternatively, I can take a screenshot of a selection in one PDF reader, but still JPEG. I want to use this function to crop a selection such as formulas, vector graphics inside a PDF file. I know Preview.app in OS X works great for me. I am wondering if there is any alternatives for Linux. Thank you so much.
    Last edited by mssun (2015-03-20 08:34:20)

    Maybe take a look at: https://aur.archlinux.org/packages/gpdfx/ or maybe one of PDF's editors like MasterPDFEditor (free for non-commercial use), pdfeditor etc. Or one of converters like pdf2html and after conversion plug html (or the other format) into LaTeX document. Or... make OCR on PDF and then plug document saved in even plain txt format. Also, there is this utility: http://www.ctan.org/tex-archive/macros/ … b/pdfpages (and in AUR: https://aur.archlinux.org/packages/latex-pdfpages/) - maybe it will be helpful for you (I don't use LaTeX).

  • [SOLVED]How to know what uninstalled packge owns a file?

    When I want to know what package owns X file i do pacman -Qo X, but for this the file need to exist.
    When I face a libXYZ.so: No such file or directory, how can I know what package provides that file? I was search for something like pacman -So libXYZ.so, or something..
    []'s
    Last edited by geckos (2011-11-18 12:18:40)

    eldragon wrote:
    i dont think you can.
    if a package you installed is complaining on a missing library, this is a missing dependeny not listed in its PKGBUILD, file a bug where appropiate. (aka, package belongs to the repos: file a bug in flyspray, AUR? write a comment in the appropiate aur page).
    if you are trying to build your own software. you should read the instructions on how to compile this project and find out how said library is packaged in arch. (pacman -Ss name-of-library)
    I don't thinks is pacman fault, I have done stupid things with pacman
    Any way, this ugly shell chain have done the job
    pacman -Qk zsnes
    pacman -Qi zsnes | grep Depends | cut -f2 -d: | tr -s ' ' | tr -s ' ' '\n' | while read P; do pacman -Qi $P >> installed && pacman -Qk $P >> missing; done
    I THINK that missing packages and missing files will be printed out. Any way I can check installed and missing files for some weird thigs that happends when you to break your system . We can do this recursivelly, but I don't this is necessary in my case.

  • How to best format input read from a file to a string

    I am trying to set up a class to convert input read from an xml-file to a java-string, which I can pass on to a web service.
    My attempt is probably not the smartest, but what I did was to set up a for-loop, which iterates through each line in the xml, appending "\n" to the end of each line, before storing them in a variable, which is loaded into an arraylist. When there are no more lines to read in the xml-file, the for-loop should terminate and the contents of the ArrayList should be written to a string, which is then returned.
    Below is my attempt to implement this - thanks in advance!
    import java.io.*;
    import java.util.*;
    public class RequestBuilder {
         private String _filename, output;
         //Constructor method
         RequestBuilder(String filename){
              String line;
              _filename = filename;
              //Sets up a array to store each line of XML read from a file
              ArrayList<String> lineList;
         lineList = new ArrayList<String>();
              try {
                   //Sets up a filereader and a buffer
                   FileReader fr = new FileReader(_filename);
                   BufferedReader br = new BufferedReader(fr);
                   //Iterates through each element of the arraylist until empty
                   for (String o : lineList){
                   //Stores a single linein a variable and appends a line-break
                   line = br.readLine() + "\n";
                   //Addseach line to the arraylist
                   lineList.add(line);
                   //Closes the filereader
                   fr.close();
                   //Writes the arraylist to a string
                   output = lineList.toString();
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
         public String getRequest(){
              return output;
    }

    799992 wrote:
    Well, the reason for doing an ArrayList was that I had to process each line with line breaks and escape characters, but I know realize that I can do the same thing by summing the lines for each iteration directly intro a string like below - it works :-)
    Apparently the filereader takes care of double-quotes as I don't see any difference in the output when I disable the logic I made, which substitutes " with \", can anyone confirm this?
    The code I ended up using:
         //Sets up a filereader and a buffer
                   FileReader fr = new FileReader(_filename);
                   BufferedReader br = new BufferedReader(fr); 
                   //initializes the output variable with the first line from the file
                   output = br.readLine() + "\n";
                   while (br.ready() == true) {
                        //reads each line, saves it in a variable and appends line breaks
                        line = br.readLine() + "\n";
                        //Replaces adds escape character to any double-quotes (apparently not neccessary?)
                        tmpLine = line.replaceAll("\"", "\\\"");
                        line = tmpLine;
                        //sums each line in the current string
                        output = output + line;
    As EJP said you can directly write to the webservice. If you want to check for yourself what the result looks like just read the file without adding anything.
    public String readFile(){
         String xmlString = "";
              try{
                   String line = null;
                   xmlFile = new File(//file);
                   reader = new BufferedReader(new FileReader(xmlFile));
                        while((line = reader.readLine()) != null){
                             xmlString += line;
              catch(FileNotFoundException e){
                        e.printStackTrace();
              catch(IOException e){
                        e.printStackTrace();
         return xmlString.replaceAll("\\s+"," ").trim();//remove spaces
    }

  • How Do Give one Clip the same DISTORT properties as another clip?

    I have 30 graphics- all the same size- and I'm shrinking/distorting each of them to fit on a TV screen i the background - How do I give all 30 graphics the same properties, so I dont have to go in and copy and paste 10 different numbers in each box for each image?
    I've tried right click "copy" from the distorted graphic - then right click "paste properties" to the undistorted graphic - but it doesn't give me the same effect...
    anybody help me with this???

    the graphics were all the same size - i exported slides from a keynote presentation - each as a separate JPEG - I then took one and scaled it down and distorted it to fit the TV screen in the background - its the same requirements for each shot, as its a wide tripod shot - but when I paste it with "basic motion", "scale" and "distort" - its smaller and not in the right place - theres no other way around it?

  • How to make one movie from different imovie files?

    I have 12 imovie files that I am trying to put together as one movie with 12 chapter markers.
    How do I do that?
    Thanks.

    ...import all 12 movies in it and mark the chapters...
    very hard to imagine a less space consuming way...
    you can drop the movies directly into iDVD…
    you get a videoDVD with 2x6 (I wouldn't place 12 chapters on a single menu) "chapters"...

  • How to get motion to read text from file?

    There has to be a way to do this. I have a large file of text (transcripts from a clip several minutes long) and I want to make subtitles using Motion.
    How can I get Motion to read the file and create a text object with the sentence/line in the file, then move to the next one and do the same thing for the next line? Thus it would make a timeline with several objects of individual sentences of text. Anyone have some ideas how to do this?
    Thanks.

    I was just playing around, and I think I figured out how to get what you want.  First, change the layout method for the generator to "Paragraph", you can find this in the layout section of the generator. In your document, use carraige returns (return key) to define each section of text.  To control the speed that each line appears, change the speed setting to custom, and then adjust the end keyframe.

  • How to give dynamic name for csv export files?

    Hi,
    how we can give dynamic file name for each csv export file? ex(&item_name.csv)
    I am using apex 4.1 and IE 6,
    thanks in advance
    regards
    Chandran

    Please help me on this
    I am using report template as a csv export..
    when user click on download link on other page he will redirect to csv export temlate page and he is is directly get the open or save window
    but dynamic title name is not working for only for this.
    regards
    Chandran

  • How to avaoid space while reading from flat file

    Dear all
    I am using forms 10g.
    I am reading data from flat file using Text_io.
    In my exception part i have written like this
    EXCEPTION
      WHEN no_data_found THEN
          CLIENT_TEXT_IO.Fclose(in_file);But if in my last line from the flat file is some other characters then it is taking that also .
    How can i avoid it ?
    Note :- Other characters means you cannot see like this , when you press SHOW ALL CHARACTERS button in the NOTEPAD++ then it will show ...

    My File is like this ABC . There is no extension like ABC.txt .
    And in the file if the last line if blank space is there then it is coming to exception part , but if TAB is there then it is not coming .

Maybe you are looking for

  • Acrobat Reader 9.1 and Internet Explorer Browser

    I can't open pdf docs using MS Browser. I can open saved pdf docs on my PC with Acrobat Reader 9.1.. I'm using Windows Vista. All Adobe Add Ons are activated under Browser Add Ons in Internet Explorer settings. Steps 1 Trying to open a pdf with Micro

  • Sent email not being saved :-?

    I have often issues with using mail and google imap, but it's not usually mission critical stuff. But I have one issue which is really really annoying me, sending a reply to one particular email: when I send, it's not saving my message anywhere, eith

  • Memory not released using DBMS_XMLPARSER

    Hello, I'm using Oracle 9.2.0.3 under HPUX 11 (64 bit) I want to process XML messages stored as CLOB in a table When I run several times the following piece of code I notice that the PGA keeps growing and is never released even when I call "dbms_sess

  • Download .wav clips with images using PSE8

    I've recorded messages into some of the pictures I took at the time I took them.  The camera an Olympus E-PL1 creates a wav file.  How do I get PSE8 to download these wav files into the computer folder along with the pictures pSE8 downloads?  Right n

  • Colour manage in photoshop..

    I am using Windows 7 64bit. When I go to File --> Print with Preview I want to select under the print profile for Photoshop to manage colour' and NOT the printer but the list only has a list of ICCs and 'Printer manage colours'. Wheres it disappeared