Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th September 2004, 02:42 AM
phonecian Offline
Registered User
 
Join Date: Jul 2004
Posts: 19
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
Reply With Quote
  #2  
Old 19th September 2004, 03:48 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
/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:
Reply With Quote
  #3  
Old 19th September 2004, 04:30 AM
phonecian Offline
Registered User
 
Join Date: Jul 2004
Posts: 19
Thanks Crackers
Reply With Quote
  #4  
Old 19th September 2004, 04:41 AM
reks's Avatar
reks Offline
Registered User
 
Join Date: Sep 2004
Posts: 17
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
Reply With Quote
  #5  
Old 20th September 2004, 01:40 AM
SuperNu's Avatar
SuperNu Offline
Registered User
 
Join Date: Mar 2004
Posts: 617
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
Reply With Quote
  #6  
Old 20th September 2004, 06:22 AM
reks's Avatar
reks Offline
Registered User
 
Join Date: Sep 2004
Posts: 17
Thats right SuperNu.. While my googling didn't reach anywhere, I too got something, thanks to Atul Chitnis

Quote:
/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
Reply With Quote
  #7  
Old 21st September 2004, 04:06 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
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:
Reply With Quote
Reply

Tags
directories, hidden

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hidden Networks Yuufa Using Fedora 13 14th July 2009 08:02 PM
hidden files bigmacbb63 Using Fedora 1 9th July 2009 09:20 AM
Fix for hidden taskbar bug... jdwash11 Using Fedora 0 17th February 2008 06:18 PM
Apache Can't See User Directories or Indexes in Sub Directories jeix Servers & Networking 7 15th June 2006 06:27 AM


Current GMT-time: 21:31 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat