tmpdisk icon indicating copy to clipboard operation
tmpdisk copied to clipboard

How to run this without being prompted for password on every login

Open KrishnaPG opened this issue 2 years ago • 5 comments

Created a tmpFS based RAMDisk with this, and using AutoCreate Manager + Always Start on Login options to recreate the disk automatically on reboot.

However, after login the system is always prompting for password for root level access for oascript.

It seems tmpFS needs root access, which is fine. But is there a way to skip this password prompting on every login? For example, is there some kind of permission that can be given to any folder/file as root so that it runs as root directly without having to ask for password on every login?

(New to MacOS, hence any help would be greatly appreciated). Thank you.

KrishnaPG avatar Jul 28 '23 13:07 KrishnaPG

Hi @KrishnaPG - I've looked into this in depth. I investigated if I could put an admin level daemon onto the system but even that requires sudo when it calls mount_tmpfs. Unfortunately even with a number of attempts to work around this I have not found a solution. I'll keep this open to keep investigating.

imothee avatar Sep 06 '23 03:09 imothee

Thanks @imothee

KrishnaPG avatar Sep 06 '23 03:09 KrishnaPG

You can find out how Amphetamine scripts work. It enables password-free access to root. https://github.com/x74353/Amphetamine-Enhancer

LanYunDev avatar Jan 24 '24 05:01 LanYunDev

I took a bunch of input from https://github.com/CharlesJS/CSAuthSample https://github.com/aronskaya/smjobbless and https://github.com/trilemma-dev/SwiftAuthorizationSample and was able to get a beta of 2.1.0 up that addresses this.

I put up an alpha that for all my testing appears to work solidly. https://github.com/imothee/tmpdisk/releases/tag/v2.1.0-alpha

Would love some feedback and testing while I continue to debug and test.

imothee avatar Feb 29 '24 21:02 imothee

Just wondering if anyone has been able to test this yet, it's been working fine on my machine for a while but want to get some other beta testers if possible.

imothee avatar May 17 '24 17:05 imothee