2

So at work there is a "shared" server that people can run things on that take a long time. I make quite a bit of use of this machine to the point where I made my own login to separate my user files.

  1. The account I am using is an administrator.
  2. The other account that everyone else uses is also an administrator.

In my user files is some private SSH keys for things like Github and Amazon Web Services that the other users could do mean things with if they were so inclined. I don't think they would, but it would be nice to not have to think about it.

  1. Is there any way I can add some protection to these files without changing the permission level of the other login?

  2. Is it possible for other administrators to access the saved keychain credentials of another administrator?

  3. If you were to "do it right", how would you recommend setting up this machine such that it could be reasonably shared by people who need to perform administrative tasks, but not be a security nightmare.

1
  • Welcome to Ask Different. in general asking one question per question is best. If you get a good single answer to each - there's nothing stopping you from asking a question on how to combine conflicting answers if that ends up being the case.
    – bmike
    Commented Feb 24, 2016 at 15:02

1 Answer 1

3

Simple answer - no. Administrative access is too powerful for multiple users on a single machine. Even if you trust every one of these users implicitly, there will always be a chance of accidental misuse and potential data loss.

  • If you are admin - you can read any file on the Mac
  • If you are admin - you can delete and modify any file on the Mac

The only exception is SIP - where even root can't modify some files Apple has marked as restricted.

Standard operating procedure dictates standard user accounts for all users on a multi-user Mac, with an administrator's account for maintenance, etc.

You can make an encrypted DMG to store things that you can't allow another user of the computer to see. They could copy the files and try to brute force the password - but Finder does a good job of asking for and mounting such filesystems when you reference an alias to the file.

The keychain is a specialized version of an encrypted store. You might be able to store your keys there and they would be safe from other users in a similar manner.

3
  • What I want to do is share a machine in a way that I don't need to trust anyone, and I don't need people to trust me. Even if I made all accounts users... there's still an administrator account, and thus someone needs to trust someone. It seems like if each users files were encrypted with separate private keys (and possibly those keys not stored on the machine, or stored in a way that was above even an administrator) then this would be possible. I'm really asking people to think outside the box of "user" and "administrator".
    – Eric Rini
    Commented Feb 24, 2016 at 14:59
  • 1
    @Eric I've made some edits to explain why the "no" answer is correct. In a nutshell - if you are part of the admin group - you can read/tamper/write/delete/copy any user level file on OS X. Luckily, you can use encryption to keep your data safe from tampering and being decrypted.
    – bmike
    Commented Feb 24, 2016 at 15:18
  • Thanks for your edits, @bmike. It enhances my bare-bones answer.
    – IconDaemon
    Commented Feb 24, 2016 at 16:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .