Allowing special user to read log files [Solved]

Hi
I want to add a group (log) that has the privledges to read /var/log files
and then add my user to that group.
How do i accomplish this
This is to run root-tail in .xinitrc
Or is there an other way?
//Clanman

[root@master fredrik]# ls -al /usr/bin/root-tail
-rwxr-xr-x  1 root root 22600 2006-01-08 04:58 /usr/bin/root-tail
[root@master fredrik]# chmod 640 /usr/bin/root-tail
[root@master fredrik]# ls -al /usr/bin/root-tail
-rw-r-----  1 root root 22600 2006-01-08 04:58 /usr/bin/root-tail
[root@master fredrik]# chgrp log /usr/bin/root-tail
[root@master fredrik]# ls -al /usr/bin/root-tail
-rw-r-----  1 root log 22600 2006-01-08 04:58 /usr/bin/root-tail
exiting root
fredrik@master ~]$ root-tail -g 800x250+10+10 -justify -fn '-*-verdana-*-*-*-*-10-*-*-*-*-*-*-*' /var/log/errors.log,orange,'ALERT'
-bash: /usr/bin/root-tail: Permission denied
Still no go
//Clanman

Similar Messages

  • How to allow the user to upload a file from their desktop to MII Server?

    Hi,
    Is there a way for the user to specify a file on their local computer to upload to the MII server for processing?  We have a method that works for uploading from a shared network drive, but now the need/desire is to allow the user to upload a file from their desktop.
    Ideally, this would be a file browser that the user would click on to browse their local desktop and select the file and click "Upload" but not sure what's possible?
    This is using 12.1 SP4.
    Thanks for the help.
    Kerby

    [Uploading Documents|Uploading Documents]

  • More than one user to read a file

    Hi,
    I would like to know how to allow more than one user to read a file.
    Any explanation or code samples will be helpful.
    Thanks in advance
    Regards
    Kutty

    I am not at all clear regarding your question?
    Ironluca

  • Can I create a fillable PDF that allows the user to attach a file to the submitted form?

    There are suggestions in the Help documentation and on this site that indicate it is possible to attach files to a fillable PDF form that is being submitted. But I do not see any instructions for adding this functionality to a form. I am using Acrobat 9 Pro to create my form. I have a Submit button with an Action/Menu Item/Submit a form option, and the URL link for the submission is a local coldfusion file with a #FDF suffix. The export format is HTML. The form also contains a hidden EMAILTO field, with an Options/DefaultValue option identifying the recipient's email address. (I'm guessing the local cfm file uses this field.) There is also a hidden URL field in the form, and its Options/DefaultValue specifies the URL of the fillable form itself. (Perhaps the local cfm file uses this field too.)
    How can I add functionality to this form, using Adobe/PDF, to allow the user who submits the form to attach a file to the submission?

    You have to first configure a text field so it can be used for file selection. You do this on the Options tab of the field properties dialog. In order to select the corresponding check box, make sure only the "Scroll long text" option is selected.
    You then can set up a button that has the following JavaScript attached to the Mouse Up event:
    // Mouse Up script for button
    getField("upload_text_field").browseForFileToSubmit();
    Replace "upload_text_field" with the actual name of the file selection text field.

  • Can't read log files from /var/log with Geany

    With the few exeptions like hibernate.log, I can't read most of those files, including:
    everything.log
    errors.log
    kernel.log
    messages.log
    syslog.log
    When I try to open them (as root), all I get is
    The file xxx.log does not look like a text file or the file encoding is not supported.
    However, they do open with nano
    Last edited by Lockheed (2013-06-20 14:20:11)

    If you want to only view the files (I assume this since those are logs), maybe try
    $ less -M <file>
    You can navigate pretty well with it (e.g. go to a specific line).
    Edit:
    You could also try to find if there is an option in Geany that would allow you to see "non-text" files.
    Last edited by msthev (2013-06-20 18:41:27)

  • ICM Admin Script to export user variables to log file

    Hi,
    Is there a easy way to export/report the values of user variables to a file in ICM 7.x?
    These are global variables set in admin scripts for open/close flags and looking to see at a glance what the values of all the variables are at a given time throughout the day without having to monitor each script/etc that uses them.
    I was looking at maybe an admin script to write the values to a text file every x hours/minutes/etc but am kind of new to ICM scripting and not seeing a step there to do this and not sure if this is possible or if there is another way.
    Have a script where supervisors can force open/close different queues for reasons (weather, etc) and trying to add way to log when a change was made for historical purposes and troubleshooting just a text file or something easy.
    Thanks, Erick

    Only three years later but in case someone else is ever looking this should get you started. First, be sure your vars are set to persistent and replicated to an HDS. You can then extract this data from the Persistent_Variable data. It will require some joins to the User_Variable data to get a nice solid query. 

  • Reading .log file & Sorting input

    Hello all
    Currently I'm working on a projekt were I have to read a "in.log" file, sort it and save it to another "out.log" file, the contents of the in.log file is:
    [204.0.44.73]: Dir: path
    [204.0.44.73]: Dir: path
    [204.0.44.74]: Dir: path
    [204.0.44.73]: Dir: path
    [204.0.44.74]: Dir: path
    and so on, now what I have to end up with is this in the out.log:
    #1
    [204.0.44.73]: Dir: path
    [204.0.44.73]: Dir: path
    [204.0.44.73]: Dir: path
    Count = 3
    #2
    [204.0.44.74]: Dir: path
    [204.0.44.74]: Dir: path
    Count = 2
    It's for the system administrator at school who doesn't want to do it himself but wants to pay an amount for me to do it (very small amount). I'll pay max duke dollars for a reply which can help me..
    Please help, thx in advance

    I must be really bored... Use it with "java Parser <logname>"
    import java.io.*;
    import java.util.*;
    public class Parser{
         public void splitLog( File input ){
              try{
                   FileInputStream fis = new FileInputStream( input );
                   BufferedReader br = new BufferedReader( new InputStreamReader( fis ) );
                   Hashtable hosts = new Hashtable();
                   String line;
                   while( ( line = br.readLine() ) != null ){
                        StringTokenizer st = new StringTokenizer( line, "]" );
                        if( st.hasMoreTokens() ){
                             String host = st.nextToken();
                             if( host.trim().startsWith("[") ){
                                  host = host.trim().substring(1);
                             if( !hosts.containsKey( host ) ){
                                  hosts.put( host, new Vector() );
                             Vector v = (Vector)hosts.get( host );
                             v.addElement( line );
                   Enumeration enum = hosts.keys();
                   while( enum.hasMoreElements() ){
                        String host = (String)enum.nextElement();
                        Vector v = (Vector)hosts.get(host);
                        FileOutputStream fos = new FileOutputStream( host + ".log" );
                        for( int i = 0; i < v.size(); i++ ){
                             line = (String)v.elementAt( i );
                             fos.write( (line + "\r\n").getBytes());
                        fos.close();
              catch( Exception e ){
                   e.printStackTrace();
         public static void main( String[] args ){
              File input = new File( args[0] );
              Parser parser = new Parser();
              parser.splitLog( input );
    }

  • Every user can read any file while ACL mass change in progress

    Hi!
    We're having some strange things happening here. Maybe someone can help us what exactly is/was going on here.
    1. We have to add an additional user in the NTFS ACL list for all file shares in our company (about XXXTB)
    2. We're using Windows Explorer to accomplish that.
    3. Every user can read in directories he/she has NO ACCESS RIGHTS to while the changes are being applied.
    4. Files are also readable but at least still not writeable.
    5. Affected folders and files change over time.
    Has someone experienced the same issue? Does the Windows Explorer reset the ACL lists before changing them? Is there some weird caching going on?

    I unfortunately can't send you a screenshot as this would be a violation of our company rules.
    I can however ensure you that we never have any normal user or group besides the very guarded admin group that has read permissions in all folders. I'm also sure that the colleague was only adding the additional account for the indexing service and did that
    by adding the permission via the properties tab in Windows Explorer. I restate that this is a very large data dir with about 6 Terrabytes of data the change was made to. The rest of our data was safe.
    We guard our rights very closely as any unauthorized access that isn't fixed within minutes will cause a security incident that has to be documented by our department chief. As such was the case here.
    As we've got no answer here yet, I can conclude that this is not a very common problem.

  • IMP: How to Read LOG Files

    Hey Gurus,
       I want to read the log files after executing SE37 t-codes, I tried in sm21 but i didnt get any result.
       Can U tell me how to read the log files ??
       what is T-code for that? or i have change any settings???
      Thanking You,
        Regards
       J Sarathi

    Hi ,
    You can use these two FM for analysing the log ..
                   APPL_LOG_READ_INTERN
                   APPL_LOG_DISPLAY_INTERN
    Or You can create A Zprogram using this FM
    and check the changes using RSDEPEND

  • Where are adobe reader log files?

    Where are the log files for Adobe Reader?
    When one of our clients opens a form off our liquid office server we receive an error.  If possible I would like to find a log file that might give some sort of clue as to why this is happening.  Thanks

    I'll make an inquiry about that and if we have to contact liquid office at some point my guess is they may request that we do that if there is likely to be any useful information there.  It is likely going to be pretty difficult as we have lots of clients opening forms constantly throughout the day.
    I did find adobearm log file and also adobereaerbroker log file in the temp files on my own.  So it does seem like reader logs some of it's activities.  I haven't examined them completely yet but a quick comparison between a working machine opening our problem form and the one the computer that doesn't open it properly seems to show no obvious differences.  They both seem to show problems with access denied and registry entries.  However one works and the other doesn't even with the same issues in the log.

  • Any ideas creating app to read log file when updated?

    Afternoon all,
    I have been asked to write a java app which will read the contents of the server log file every time the log file is updated by the server. The app will be deployed onto WebSphere Application Server.
    Can anyone point me in the right direction as I have never written anything like this before and I don't know where to start. Any help will be much appreciated.
    Thanks in advance,
    A.

    alex@work wrote:
    I agree with most of what you've said but unfortunately I don't have a say in what the company wants. However, I am interested in the appender idea, perhaps they may go for that if I suggest it.I'd say it'll take you a day to read up about Log4J and how to write basic appenders, and another day to write your own appender for this problem. Compare that to the effort of writing something to poll a log file, re-read it constantly and update another file, operations which will get slower and slower as they go along. That's a fair amount more code than a single appender would be. There's how to sell it to your company.
    Can you give me a brief overview in how it works?Log4J uses objects called appenders, which take logging info - generated by your container - and do something with it. It ships with some appenders already in it, for writing to stdout, files, sockets and databases. You can also write your own appenders that do something more than these standard ones do. You write logging code in your application - in this case, your container already does this so you don't have to - and the configuration of Log4J decides what happens to these logging messages. That's what you're interested in. You could write an appender - a simple class - that takes raw logging messages in, and writes them out to file in whatever format you want
    Come to think of it, depending on how complex the required XML is, you may even be able to do this without writing any code at all. You can write formatting patterns in the Log4J config that existing file appenders will use to write your XML files
    A bit of an abstract explanation, I guess. Your best bet is to first ascertain that Log4J is indeed in use, and then read the documentation, which is surprisingly good for an Apache project :-)
    [http://logging.apache.org/log4j/1.2/index.html]

  • Reading log file and calculating time between

    If someone could help me with this one, I would be very grateful.
    I have a log file and I need to search a string that contains a start time and end time (eg. <time="11:10:58.000+000">). When I have these two values, I need to measure the time that has been elapsed between these two (from start to end).

    $Path="C:\Times.log"
    remove-item $Path
    Add-Content $Path '<time="11:10:58.000+000">'
    Add-Content $Path '<time="12:10:58.000+000">'
    Add-Content $Path '<time="13:10:58.000+000">'
    Add-Content $Path '<time="15:13:38.000+000">'
    Add-Content $Path '<time="16:10:58.000+000">'
    Add-Content $Path '<time="17:08:28.000+000">'
    $File=Get-Content $Path
    $StartTime=$Null
    $EndTime=$Null
    $ElapsedTime = $Null
    ForEach ($Line in $File)
    If ($Line.Contains("time="))
    $Position = $Line.IndexOf("time=")
    $TimeStr =$Line.SubString($Position+6,8)
    IF ($StartTime -EQ $Null)
    $StartTime = $TimeStr -As [System.TimeSpan]
    Else
    $EndTime = $TimeStr -As [System.TimeSpan]
    $ElapsedTime = $EndTime.Subtract($StartTime)
    "StartTime=$StartTime EndTime=$EndTime ElapsedTime=$ElapsedTime"
    $StartTime = $Null
    Gives this output
    StartTime=11:10:58 EndTime=12:10:58 ElapsedTime=01:00:00
    StartTime=13:10:58 EndTime=15:13:38 ElapsedTime=02:02:40
    StartTime=16:10:58 EndTime=17:08:28 ElapsedTime=00:57:30

  • Reading log file

    Hi all ,
    I want to view a particular log file. Is there any transaction to view log files.Do i need basis rights for that?

    $Path="C:\Times.log"
    remove-item $Path
    Add-Content $Path '<time="11:10:58.000+000">'
    Add-Content $Path '<time="12:10:58.000+000">'
    Add-Content $Path '<time="13:10:58.000+000">'
    Add-Content $Path '<time="15:13:38.000+000">'
    Add-Content $Path '<time="16:10:58.000+000">'
    Add-Content $Path '<time="17:08:28.000+000">'
    $File=Get-Content $Path
    $StartTime=$Null
    $EndTime=$Null
    $ElapsedTime = $Null
    ForEach ($Line in $File)
    If ($Line.Contains("time="))
    $Position = $Line.IndexOf("time=")
    $TimeStr =$Line.SubString($Position+6,8)
    IF ($StartTime -EQ $Null)
    $StartTime = $TimeStr -As [System.TimeSpan]
    Else
    $EndTime = $TimeStr -As [System.TimeSpan]
    $ElapsedTime = $EndTime.Subtract($StartTime)
    "StartTime=$StartTime EndTime=$EndTime ElapsedTime=$ElapsedTime"
    $StartTime = $Null
    Gives this output
    StartTime=11:10:58 EndTime=12:10:58 ElapsedTime=01:00:00
    StartTime=13:10:58 EndTime=15:13:38 ElapsedTime=02:02:40
    StartTime=16:10:58 EndTime=17:08:28 ElapsedTime=00:57:30

  • Essbase 7.1 - trouble reading log files

    We have recently upgraded to Essbase 7.1 We have the DELIMITEDMSG TRUE entry in our essbase.cfg file. Since the upgrade to 7.1 the log files for each application no longer have a CR/LF at the end of each entry. They are just run together into an extremely long line. However, when we look at the application window on the Essbase server the messages appear on separate lines. Has anyone else run into this problem? Is there a new essbase.cfg setting that we need to use? We take the log file for each application and load it into a logfile cube each month and this becomes very difficult if each message is not on it's own line in the file. Any help would be appreciated.

    I know that in ASO, each parent should have at least one child that aggregate with +.Did you make sure that the members properties are OK (i.e. not all children at ~) ?Not respecting this prevent from saving the Outline.If you want to keep ~ for all children, then the parent should be Label Only.I hope this helps.Denis

  • SPAU error reading log file

    Hi All,
    We have an R/3 4.0B landscape and are working on some changes.  I want to see if any SAP delivered objects have been modified in the past, but whenever I run SPAU or SPDD, I get an error message
    "Error Reading File D:\usr\sap\put\log\umodstat.log"  "Message Number 0U 503".
    I can read a text file in the same directory through AL11, so I'm reasonably sure it's not an OS permission problem.
    Any ideas?
    Thanks,
    Alan

    Hi All,
    I had same issue trying to edit sat.trc file, I fixed this problem by manual editing sat.trc file and modified the following line:
    <!FORMATTER[com.sap.tc.logging.perf.PerfFormatter]/>
    change to:
    <!FORMATTER[com.sap.tc.logging.ListFormatter]/>
    after changes you will able to open file with Visaul Admin Log Viewer or standalone logviewer.
    Hope it helps.
    Regards

Maybe you are looking for

  • After updating to iOS 8 on my 5s my battery life has been cut in half.

    After updating to iOS 8 on my 5s my battery life has been cut in half.  I turned off Bluetooth, location services.  It drains it even when not in use.  I am an RN who works 12 hour shifts and I had to charge my phone twice with little use.

  • Quick time cannot open an .avi file

    Quick time cannot open an .avi file

  • Redetermine Business Area in Sales Orders

    Hello I need to re-determine Business Area in already created Sales Orders. Orders are open - not delivered, or invoiced. How to do it?

  • Games for Mac (Snow Leopard)

    Hi, I am really bored over Christmas Break, and I need a game for my Mac. Any recommendations? And it has to be compatible with Snow Leopard 10.6.3, 2 GB RAM, and a 2.4 GHz Intel Core 2 Duo processor. Thanks.

  • Can i get intel put on my power mac 10.4.11

    Can I get my non-intel power mac 10.4.11 upgraded to intel? I am running into lots of problems because of it being an older system (although it works great) it is not compatible with iphone and even itunes cannot take new upgrade download.