Database.php File Appears in Mac HD
After upgrading to Mavericks OS X I noticed a file with the name of database.php appear in my Mac HD folder. How can I hide this file?
MacBook Air (13-inch Mid 2011), OS X Mavericks (10.9)
After upgrading to Mavericks OS X I noticed a file with the name of database.php appear in my Mac HD folder. How can I hide this file?
MacBook Air (13-inch Mid 2011), OS X Mavericks (10.9)
That is not an OS X file. Open it with Text Edit. What is inside it?
Tried to open it with Text Edit and it is locked.
Launch Terminal.app from Applications > Utilities and issue the following command:
sudo lsof | grep -i database
You'll need to enter an administrative password for the sudo. The command will then report all open files, and will particularly list only those containing the string "database". Based on the reported locked status for the file, you should find some process with the file open, too. The command output will display the command or tool that was used, the process ID of the process with the file open, the username for the process, and some other information.
You will likely see some other files with the name "database", so you'll have to look through the list to find the one you're after.
From the identity and details of the process with the file open, you might be able to determine what's going on.
I ran this command in terminal and the file was not found.
Last login: Sun Jul 13 09:32:10 on ttys000
Toms-MacBookAir:~ tomschooley$ sudo lsof | grep -i database
Password:
UserEvent 11 root 37r REG 1,2 28 2007258 /private/var/db/volinfo.database
securityd 14 root 3u REG 1,2 16384 503313 /private/var/db/CodeEquivalenceDatabase
revisiond 57 root 9u REG 1,2 1024000 39 /.DocumentRevisions-V100/.cs/ChunkStoreDatabase
revisiond 57 root 10u REG 1,2 0 40 /.DocumentRevisions-V100/.cs/ChunkStoreDatabase-wal
SystemUIS 153 tomschooley 5u REG 1,2 77824 2035260 /Library/Caches/com.apple.ImageCaptureNotifications.DeviceDiscoveryDatabase.501
sharingd 166 tomschooley 5u REG 1,2 0 19699498 /private/var/folders/fc/nr3_f7615t99tbb9p9_3_x280000gn/T/.AddressBookLocks/data base.lock
ubd 174 tomschooley 11u REG 1,2 155648 624453 /Users/tomschooley/Library/Application Support/Ubiquity/peer-F3ED305A-C163-C3E4-7BBA-75FF8E597651-v24/.cs/ChunkStoreDa tabase
ubd 174 tomschooley 12u REG 1,2 1322552 624455 /Users/tomschooley/Library/Application Support/Ubiquity/peer-F3ED305A-C163-C3E4-7BBA-75FF8E597651-v24/.cs/ChunkStoreDa tabase-wal
PhotoStre 180 tomschooley 14u REG 1,2 4096 2080914 /Users/tomschooley/Library/Application Support/iLifeAssetManagement/state/albumshare/116223990+17593495889865879514/mm cs-pub/.cs/ChunkStoreDatabase
PhotoStre 180 tomschooley 15u REG 1,2 98912 2080921 /Users/tomschooley/Library/Application Support/iLifeAssetManagement/state/albumshare/116223990+17593495889865879514/mm cs-pub/.cs/ChunkStoreDatabase-wal
PhotoStre 180 tomschooley 17u REG 1,2 4096 2080917 /Users/tomschooley/Library/Application Support/iLifeAssetManagement/state/albumshare/116223990+17593495889865879514/mm cs-sub/.cs/ChunkStoreDatabase
PhotoStre 180 tomschooley 18u REG 1,2 98912 2080920 /Users/tomschooley/Library/Application Support/iLifeAssetManagement/state/albumshare/116223990+17593495889865879514/mm cs-sub/.cs/ChunkStoreDatabase-wal
PhotoStre 180 tomschooley 32u REG 1,2 4096 19699592 /Users/tomschooley/Library/Application Support/iLifeAssetManagement/state/mmcs/sub/116223990+17593495889865879514/.cs/ ChunkStoreDatabase
PhotoStre 180 tomschooley 33u REG 1,2 98912 19699594 /Users/tomschooley/Library/Application Support/iLifeAssetManagement/state/mmcs/sub/116223990+17593495889865879514/.cs/ ChunkStoreDatabase-wal
soagent 183 tomschooley 4u REG 1,2 0 19699498 /private/var/folders/fc/nr3_f7615t99tbb9p9_3_x280000gn/T/.AddressBookLocks/data base.lock
CalendarA 194 tomschooley 14u REG 1,2 0 19699498 /private/var/folders/fc/nr3_f7615t99tbb9p9_3_x280000gn/T/.AddressBookLocks/data base.lock
Image\x20 296 tomschooley 4u REG 1,2 110592 2037588 /Library/Caches/com.apple.ImageCaptureExtension2.ICADeviceDatabase.501
Google 1943 tomschooley 77u REG 1,2 0 19699498 /private/var/folders/fc/nr3_f7615t99tbb9p9_3_x280000gn/T/.AddressBookLocks/data base.lock
Google 1943 tomschooley 140u REG 1,2 13312 474853 /Users/tomschooley/Library/Application Support/Google/Chrome/Default/databases/Databases.db
Google 1958 tomschooley 20u REG 1,2 12288 474857 /Users/tomschooley/Library/Application Support/Google/Chrome/Default/databases/chrome-extension_pbcgnkmbeodkmiijjfnlii celkjfcldg_0/1
Toms-MacBookAir:~ tomschooley$
OK. So I don't see that file within that listing, which implies it might not still be locked, or that there's a different sort of locking involved. Tried opening the file again, given it's been a few months since that access might have been checked?
From the command line, navigate to the directory containing the file. Not sure how familiar you are with the command line here, but if the directory contains space characters, you'll have to backslash them. That means a command such as the following:
cd /Volumes/Mac\ HD
Then issue the following command to list the settings on the file:
sudo ls -ale@ database.php
That'll show what sorts of protections are present on that file.
To try to display the contents of the file at the command line, try the following commands:
sudo cat database.php # shows the whole file at once
sudo less database.php # lets you page through a longer file
Here are the results of of the sudo command.
-rw-r--r-- 1 tomschooley admin 0 Oct 19 2013 database.php
Toms-MacBookAir-3:tMac tomschooley$ sudo cat database.php
Toms-MacBookAir-3:tMac tomschooley$ sudo less database.php
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
(END)
Web searches show a few add-on packages that use a database.php filename; cakePHP, MediaWiki, ExpressionEngine, Kohana, and likely a few other packages. What web-based or particularly php-based tools or applications or frameworks have been added to this system?
Database.php File Appears in Mac HD