lsof - one hell of a command. Is it safe ?

Discussion in 'all things UNIX' started by Ocky, Jul 5, 2009.

Thread Status:
Not open for further replies.
  1. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,710
    Location:
    George, S.Africa
    http://linux.about.com/library/cmd/blcmdl8_lsof.htm

    One hell of a command with lots of options. :doubt: o_O
    First time I have come across this, and just wondering about the security concerns mentioned viz:

    "Lsof has three features that may cause security concerns. First, its default compilation mode allows anyone to list all open files with it. Second, by default it creates a user-readable and user-writable device cache file in the home directory of the real user ID that executes lsof. (The list-all-open-files and device cache features may be disabled when lsof is compiled.) Third, its -k and -m options name alternate kernel name list or memory files."

    This seems to be rather useful:-

     
  2. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    9,361
    lsof is one of my breads and butters, it's one of the more useful commands along with strace and all sorts of /proc/* thingies. It is safe, as long as you know what you're doing, as anything in life ... :)

    I'm planning a tutorial or three on the basic sys admining topics, so expect lots of goodies.

    Mrk
     
  3. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,710
    Location:
    George, S.Africa
    Great stuff - looking forward. :)
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.