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)

Posted on Nov 10, 2013 8:06 AM

Reply
7 replies

Nov 10, 2013 4:44 PM in response to TomSchooley

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.

Jul 13, 2014 7:47 AM in response to MrHoffman

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$

Jul 13, 2014 8:59 AM in response to 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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Database.php File Appears in Mac HD

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.