FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    phonecian Guest

    Hidden directories

    I just found two hidden directories on a workstation with a fairly new install of FC2.
    /etc/.java
    and
    /etc/.pwd.lock

    I dont know what they do. Are they legitimate FC2 directories. How can I see what is in them?
    Thanks

  2. #2
    Join Date
    Feb 2004
    Location
    Seattle, WA, USA
    Age
    69
    Posts
    3,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    /etc/.java is a legitimate directory - the Sun JVM uses that to store system-wide preferences information. You'll get that when you run java as "root" - which is the only user that can write to the /etc directory.

    The other file (not a directory) I haven't a clue, but it's on every system I have. Add that fact in, plus only "root" can write to this directory, makes me feel quite confident that it's supposed to be there. Looks like it's written during installation...
    Linux User #28251 (April '93)
    Professional Java Geek :cool:

  3. #3
    phonecian Guest
    Thanks Crackers

  4. #4
    Join Date
    Sep 2004
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy

    That file: /etc/.pwd.lock seem to be there on all the machines here with me -> FC2, RH all the way down to RH7.2. - Zero size file owned by root. I found it on a Solaris machine (SunOS-5.6) too! However DEC-OSF1 machines dont have it.

    On my FC2 machine, the date of creation of the file matches the installation date. I did a google search for that. Found a similar thread in debian list (its there on debian machines too!), but they too were left clueless.

    Wonder what that file does. Its very interesting though. I'll post the question on other lists and get back to this thread if I find any answers.
    ASCII a stupid question, get a stupid ANSI --Anonymous

  5. #5
    Join Date
    Mar 2004
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I ran a quick google search, and it looks like the file /etc/.pwd.lock is created by adduser to lock /etc/passwd so no other files write to it while adduser is.

    --SN

  6. #6
    Join Date
    Sep 2004
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats right SuperNu.. While my googling didn't reach anywhere, I too got something, thanks to Atul Chitnis

    /etc/.pwd.lock is the lock file. It is used to coordinate
    modification access to the password files /etc/passwd and
    /etc/shadow. lckpwdf and ulckpwdf are routines that are
    used to gain modification access to the password files,
    through the lock file. A process first uses lckpwdf to lock
    the lock file thereby gaining exclusive rights to modify the
    /etc/passwd or /etc/shadow password file. Upon completing
    modifications, a process should release the lock on the lock
    file via ulckpwdf. This mechanism prevents simultaneous
    modification of the password files. i.e. it is a sentinel file,
    never modified, only locked and unlocked as required. Think
    of it as a semaphore.
    Related manpage
    Cheers! and thanks phonecian for that interesting question
    ASCII a stupid question, get a stupid ANSI --Anonymous

  7. #7
    Join Date
    Feb 2004
    Location
    Seattle, WA, USA
    Age
    69
    Posts
    3,423
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Over 10 years using this OS and you still learn something new every day... gotta love it!
    Linux User #28251 (April '93)
    Professional Java Geek :cool:

Similar Threads

  1. Hidden Networks
    By Yuufa in forum Using Fedora
    Replies: 13
    Last Post: 14th July 2009, 08:02 PM
  2. hidden files
    By bigmacbb63 in forum Using Fedora
    Replies: 1
    Last Post: 9th July 2009, 09:20 AM
  3. Fix for hidden taskbar bug...
    By jdwash11 in forum Using Fedora
    Replies: 0
    Last Post: 17th February 2008, 07:18 PM
  4. Replies: 7
    Last Post: 15th June 2006, 06:27 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •