0

I have 3 users on a mac os computer:

  • Administrator
  • user A: Standard Account
  • user B: Standard Account

User A should not see User B files. And User B should not see User A files.

User A has an encrypted file image (dmg file) in his home directory.

When User A wants to see this image content, he must double click on the dmg file and type a password.

The image is mount on the system.

But i have a big problem: When this encrypted image is mounted, User B can see the content !

How can i prevent User B to access to this file image content when it is mounted ?

Thanks

18
  • Isn‘t this already answered in apple.stackexchange.com/questions/123566/…?
    – nohillside
    Commented Nov 24, 2022 at 11:49
  • 1
    Are the users tech-savvy enough to run a script to mount the DMG?
    – nohillside
    Commented Nov 24, 2022 at 13:33
  • 1
    You can change the mount path if you mount with a script :-)
    – nohillside
    Commented Nov 25, 2022 at 6:46
  • 1
    You also might be able to have a LaunchDaemon looking for changes in /Volumes and changing access permissions if necessary. But I have no experience with this.
    – nohillside
    Commented Nov 25, 2022 at 6:48
  • 1
    Launchd has a StartOnMount option which triggers a program/script each time a volume is mounted. You could use this to run a script which looks into /Volumes and changes access permissions to 0700 where needed.
    – nohillside
    Commented Nov 27, 2022 at 14:15

0

You must log in to answer this question.

Browse other questions tagged .