OS X :: Terminal Usage For Protecting Folders And Files?
Nov 22, 2008
I was asked by a friend who has just bought a new macbook if you can password protect files and directories. I explained how you can do it through terminal quite easily in some pictures (here if anyone wants to know how).
But is there another way, without needing some extra software from a 3rd party?
The Mac is now used by all family members and even some visitors. I'm aware of the guest and separate account capability but this is time consuming to jump in and out of. This also prohibits access to the general iTunes library and photos of one user etc etc. Is there a way to simply protect certain folders within one user account eg I have a folder in the main account with each of the families names. Mine contains all my work, My wifes all hers etc etc. 2nd question E Mail. I have all the e mail coming into two seperate e mail addresses on the main ser account eg My Mail and my wifes mail to two mac addresses. Is there a way to simply password protect these without too much difficulty.
I just started a new job and they have me working on mac since I have some basic experience. Anyways I'm working with files within an app and trying to use terminal to access some of those files.
The issue comes up when I try to change the directory in terminal to the app /user/applications/app.app/folder). I can get into the user directory or the app directory but it won't let me into the app. I have never really used terminal before so I don't know what I should be expecting here.
I can't find a third party app to create a MD5 checksum of folders and subfolders. The closest I got was checksum+, but the programs doesn't handle large folders; it freezes.
So I would like to go into Terminal and do it manually. Can someone share the command line to create:
�a MD5 checksum of a folder and its subfolders and output it to a txt file.
�a way then to use that outputted text file for file verification. My initial thinking is that I would have to create another MD5 checksum of the copied folder and then use a difference type command to compare the text files?
When using finder and browsing through folders, it will only show me a list of recent folders. I use Lion. If I want to see all the folders or open up a less recent folder, I have to click "show all" at the top right hand corner. It gets tedious when I'm dragging and dropping files to different folders when I have to constantly click "show all" just to see the folders I want. Is there a way to override this function through the terminal? Is there a command I can use?
Ok, so I know that: mkdir .testhiddenfolder will create an invisible folder on my home directory. but how do i do this if i have an external drive called "G-Drive M2" .... is it mkdir G-DriveM2/.testhiddenfolder, or mkdir volumes/G-DriveM2/.testhiddenfolder
sorry if this is a way basic question. I'm totally new to unix and Termianl
I bought a Seagate Free Agent Go Flex External drive. I transferred all my files from my previous external HD. When I went to access my folders on my external HD, the folders are all locked, with Sharing and Permission section in the Information "Everyone: Read" only! I can't change any of the information or move things! All of them are locked and "read only." I know how to change it, but only manually, individually. I have several hundreds of folders and I don't want to manually change all of them to "Read & Write." Is their a way to let me re-set the folders to "Read & Write" easily??
I am just learning Terminal and so far it has been fun but frustrating. I'm learning from online manuals and the manual within Terminal so everything is pretty verbose for someone that doesn't know the language yet. I apologize if this has been answered elsewhere, but the search gave me many results about moving files to the Trash or making a folder hidden. These are not my concerns for today. And for the reference, I know this can be done as a "drag-and-drop" operation in Finder, but as I said, I'm learning
So I am trying to move a couple of PDFs from my Documents folder to one I created within the Documents folder.
So i've just started using Mac and i've downloaded a few tunes into the downloads folder and then moved them to music. I cant remember what the file names were so can no longer find them. Is there a way to organise the files in the music folder to show the most recently added? If not what do you recommend
You'd think this was all pretty basic. It probably is.
I'm trying to open/edit '/usr/local/php5/lib/php.ini' with TextWrangler through Terminal. The TextWrangler part isn't an absolute requirement. The directory exists and I'm assuming the file does as well. (No 404-esq errors during my fumblings and it was a standard installation of PHP5)
Also, is there any way to browse through the above directory using the Finder's GUI? That would be nice.
I am looking for someone with extensive knowledge of terminal to help me recover some files via single user mode onto a flash drive.
Computer Information: Mac Book Pro (early 08) os x 10.5
Getting stuck at rotating gear screen upon startup. Called support they had me run /sbin/fsck - fy was giving me errors saying wrong directory count and a few other errors and eventually told me it could not repair the volume. I called back once this was done they told me I would have to re-intall wiping everything. Therefore my problem data recovering I am able to observe the files via single user mode (temrinal), I would like to either find a way to backup onto a flash drive or a cd. my fireport is broken and I am unable to use target mode to transfer them off.
How do you open/edit text files in the terminal such that I don't need to navigate through pages of the text file, I just want to see the whole file there so I can scroll up and down it (similar to the output with "cat").
It can be done through terminal, its just a bit all or nothing. I would like to show the .DS files on a USB stick for example, remove them and switch back to hide without round tripping to terminal every time.
Can be done easily on a PC but not the Mac i know. Did I dream it or could one show/hide hidden files on previous OS? I know extra menu items appear with the alt but not 'show hidden'
Having the .DS files is a real pain when loading movie files onto a media player or trying to play through a SMART TV. As most (all) smart tvs only accept FAT/ ExFAT formatting the .DS files show in the menu. On media players it's worse as it prevents one playing multiple movies in order and to repeat till you hit stop. As soon as the player hits a .DS it will stop and throw up an error.
I have a boat load of mp3 files that have a _ instead of a space in the file name. I figure there must be a magical command in the Unix terminal window that would rename the file based on a replacement string.
I want to replace all _ in a file name with a Space. Is there an easy way to do this? Or, maybe a free utility I can download? I'm trying to clean up my files!
I've been wondering, if there is a way to hide files that are not located in "User/Username/...." in Terminal?
The command I use to hide the files for example is: chflag hidden ~/Desktop/*
However, if I the file/folder I want to hide is not in 'User/Username..." I will not be able to hide it... So how do you change it so that you can hide the folders that are not located in "User/Username"?
Also, I've ran into a problem!
My "Username" that one that has an house icon is missing when I access it from Machintosh HD --> Users Folder.
I guessed that it was hidden somehow but not too long ago it was in the User folder... So I typed in "defaults write com.apple.finder ShowAllFiles True" and I found a bunch of weird files on my Desktop and my Machintosh HD... and I found the Username house icon... I do not know what I did in terminal that hid it.
I was helping a friend by reformatting his pc and reinstalling windows because it was slow, when I was downloading the drivers for it on my MacBook Pro (didn't have access to the router since it's downstairs and his pc didn't have a wireless card), it downloaded a folder filled with locked files, it comes several folders deep and all of the files are locked, fun. So I tried to delete it using sudo rm -r, but it says I don't have sufficient privileges, anyone know a command I can use to delete it all? I'd rather not do it by hand, that'd take forever.
Anybody see this before? I opened up Terminal.app and the window is completely blank. There is nothing in it whatsoever. Looks as if bash never started. The title bar simply says "Terminal — login — 80x24". I can type whatever I want in the Terminal window like it's a text document and nothing happens. If I restart the computer, this seems to fix the problem, but it seems to only be a temporary fix as the issue happens again soon after.
I'm trying to do something in terminal, and it asks for my password. I press a letter on my keyboard, and nothing appears. I am in the right window and everything, terminal just doesn't react to my typing. However, when I click enter, it says 'Sorry,try again'. So it does react to the enter key.
I was thinking about trying out one of the bestskinsever or the zagg products but, they need to have water on them. How would you keep the water out of the keyboard, you know, when you are applying the trackpad part.
Any other skins I might be missing? Any easier things to protect my new macbook pro? I would really one of these skins but water would drip in to the keyboard part (maybe), so I'm left with what?
I need to send my MBP in. Rather than giving them my user account password, I've created a new account that has admin privileges. Is that all I need to do? Or can admin accounts access all the info on the computer? I've heard horror stories here of peoples' photos being looked at, FB profiles accessed, etc.
I want a list of all my non system files to put into a text document. I use the command "ls * -r" in terminal to get the list. However it does not seem complete. I need assurance all volumes are there before I transfer to a text document.
I'm running Symantec Backup Agent on our mac osx server. I start the agent in the terminal (./agent.be). It returns a notification that it started the service, however, it doesn't return to the prompt. Closing the terminal gives a warning that the process will be closed if the terminal is closed. Closing it does kill the process. Ctrl+c to return to the prompt also kills the process. So it's as if once the process is started in the terminal, nothing can be altered.
I am not much of a mac guy so please forgive me if this is a stupid question.
Anyone have any advice on how to handle this so the process is ALWAYS running?
While they seem perfectly able to password protect a folder, this folder seems far from secure. In each case, the folder itself is not accessible without entering the password, but the files are visible in the finder under "recent documents".
I was hoping for a program that could securely protect these documents from casual viewing (including the "search for" section of the finder bar) while being relatively user friendly. I don't care about encryption.