Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 will be on the external drive and will only allow a specific user to be allowed to access the drive, thereby preventing other users from accessing it.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You can create an encrypted disk image on your external drive, which will require a password to mount. As long as you don't give out the password, other users will not be able to mount the image. See: http://support.apple.com/kb/ht1578 for details.

Basically, you use Disk Utility located in the Applications -> Utilities folder to create a new disk image, give it a name, a size, and then in the Encryption dialog, select an encryption type.

Disk Utility will then prompt you for a password which you must use to mount the disk image.

share|improve this answer
    
the link is broken though. –  Yashwant Chauhan Jan 3 '12 at 18:18
    
@Ravin455 strange, it works for me. –  gabe. Jan 5 '12 at 2:14
    
@Ravin455 in any case, I updated my answer to include a summary of the needed steps. –  gabe. Jan 5 '12 at 2:20
    
yeah i just tried the link again and now it works. –  Yashwant Chauhan Jan 5 '12 at 14:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.