0
votes
1answer
71 views

I am the owner of a file and I have write access: why can't I save?

I am on OSX 10.9.2 I am locked out of postgres and trying to modify pg_hba.conf to get back in. http://stackoverflow.com/questions/11919275/can-not-enter-and-change-postgresql-pg-hba-conf-file I run ...
1
vote
1answer
209 views

Bash script to hide/show files

I prepared a little bash script to toggle the visibility of my hidden OS X files. if (defaults write com.apple.finder AppleShowAllFiles FALSE); then defaults write com.apple.finder ...
1
vote
2answers
209 views

A bunch of files have 777 permissions

I have been learning Python and Bash scripting, and I up to now I have given my scripts 777 permissions. Having learned more about how to set permissions, and knowing this is a bad idea, I ran the ...
2
votes
2answers
411 views

Find files given an exact filename with mdfind

Is there a way to ask mdfind to search for filenames with an exact filename ? At some point in a pipe I have this: (filenames are produced here) | while read f; do mdfind -name "$f" | grep -E "/$f"; ...
2
votes
1answer
1k views

how to remove quarantine from file permissions in os x

I downloaded a .pem file and my Mac OS X (10.8.2) added an @ sign at the end of the file permissions. This is causing file permission issues. I can't seem to remove the quarantine flag. I even tried ...
1
vote
0answers
141 views

Editing images with sips doesn't work without being executed directly from Terminal? [closed]

I made a cheesy application with a bash script using CocoaDialog, and within this application I need to modify the size of a photo. So, I researched a little and found the sips command; and it works ...
2
votes
2answers
220 views

Is there a way to undo the 'cpp' command in terminal?

I accidentally typed cpp Scriptname.py DestinationDirectory, intending to copy the Python script into the folder. I realized afterward that I should have used cp, but now my Python script is ...
1
vote
3answers
2k views

Opening files from Ubuntu server over ssh from Mac Terminal

So I SSH into a Ubuntu server and try to open the file in a Mac program (Coda) and get an error: Couldn't get a file descriptor referring to the console Using the command open myfile.html This ...
3
votes
3answers
1k views

In Mac OS X Snow Leopard, how can one file's permissions be matched to another?

I need to make the permissions of a file exactly match the permissions of another file in OS X 10.6. I don't see 'getfacl' or 'setfacl' as suggested in some other posts for Linux. And, it doesn't ...
3
votes
1answer
173 views

Restricting access to files on an external drive

I was wondering how to restrict access to a specific drive in Unix on the Mac. I was thinking to do this in Terminal where I create a file like this mkfile 6k secure_access. And where secure_access ...
4
votes
2answers
719 views

Tell if a folder/file is hidden in Mac OS X

I know you can set or unset the hidden flag of a folder/file by doing chflags hidden foo.txt and chflags nohidden foo.txt. But is there anyway of telling whether the folder/file is currently hidden ...