Security/file creation

Discussion in 'Modding and Customization' started by RPZ, Jun 15, 2009.

  1. RPZ

    RPZ

    Joined:
    Jun 4, 2009
    Messages:
    15
    Likes Received:
    0
    I have been reading up on Linux security, and wanting to begin somewhere, I attempted to find (it is not present) and then create a new file using the root terminal which would log all root login requests. Well, I tried a "touch" command - and get "no such file or directory". Is there a file creation command for Linpus that can be used in a root terminal for this? Or perhaps the file is called something else if already present in the Linpus OS?

    The file should apparently normally be "/var/adm/loginlog". The reason I would like to start here is I figure any serious attempt to hack my machine might betray itself by strings of root login attempts.
     
    RPZ, Jun 15, 2009
    #1
  2. RPZ

    JerryP

    Joined:
    Jan 17, 2009
    Messages:
    31
    Likes Received:
    0
    touch. But touch won't create directories; my guess is that /var/adm/ doesn't exist. mkdir /var/adm will create the adm directory.
     
    JerryP, Jun 15, 2009
    #2
  3. RPZ

    RPZ

    Joined:
    Jun 4, 2009
    Messages:
    15
    Likes Received:
    0
    OK; /var/adm exists, and I found a few of the files in terminal, and xarchive. But I do not see a root login file. How do I create a file at root in var?
     
    RPZ, Jun 16, 2009
    #3
  4. RPZ

    JerryP

    Joined:
    Jan 17, 2009
    Messages:
    31
    Likes Received:
    0
    Do you have touch? which touch in a terminal window should tell you.
    Else, do: cat /dev/null > /var/adm/loginlog
     
    JerryP, Jun 16, 2009
    #4
  5. RPZ

    RPZ

    Joined:
    Jun 4, 2009
    Messages:
    15
    Likes Received:
    0
    Not sure; except for some software updates a few packages I thought might be useful in the stock "package manager" I am using the standard OS Linpus Lite.
     
    RPZ, Jun 17, 2009
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.