Questions tagged [authopen]

authopen provides authorization-based file opening services.

authopen provides authorization-based file opening services. In its simplest form, authopen verifies that it is allowed to open filename (using an appropriate sys.openfile.* authorization right) and then writes the file to stdout. If -w is specified, authopen will read from stdin and write to the file.

2 questions
0
votes
0 answers

What is the equivalent to authopen on Linux?

I'd like to elevate the privilege of a program temporarily so that I can write to a device file (usually an SDCard like on /dev/sdc, etc.). On OSX, I can run authopen to ask the user for permission (if necessary) and get back an open filehandle.…
Frank Hunleth
  • 720
  • 4
  • 13
0
votes
0 answers

How do you write a Dictionary to a plist with system privs?

I am writing a program that needs to write a plist file that's owned by root. The way to create the file is apparently using authopen with the -w option. The problem is that authopen takes its input from stdin (or sends its permissions back using…
vy32
  • 28,461
  • 37
  • 122
  • 246