Menu

#1 does not always find home directory properly

1.0
pending
nobody
homedir (1)
2013-05-22
2013-03-19
Scimonster
No

It just takes the first (well, really third) item in /home/. There has to be a way - maybe it's stored in some file.

Discussion

  • Scimonster

    Scimonster - 2013-04-02
    • status: open --> pending
     
  • Scimonster

    Scimonster - 2013-04-02

    Now it uses output from the who command. Haven't tested with two users logged in on the same machine.

     
  • Scimonster

    Scimonster - 2013-04-03

    Doesn't seem to work with multiple users logged in on the same machine. I might have to try seeing who did the most recent command (besides nobody or (unknown)) instead of just the first name.

     
  • Scimonster

    Scimonster - 2013-05-22
    • labels: --> homedir
     

Log in to post a comment.

MongoDB Logo MongoDB