Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clamshell without user password #96

Open
rabbly opened this issue Nov 8, 2023 · 5 comments
Open

Clamshell without user password #96

rabbly opened this issue Nov 8, 2023 · 5 comments

Comments

@rabbly
Copy link

rabbly commented Nov 8, 2023

Challenge
Currently the Clamshell Evolution script requires you to enter your password every time. My password requirements are extremely long so this is a challenge.

Feature request
Remove the password requirements

Workaround
I have found a workaround by editing the sudoers file for the pmset command. That is not very user friendly though. For this workaround I did the following;

  1. Follow the instructions here to add pmset to the sudoers file
    your_short_username ALL=NOPASSWD: /usr/bin/pmset
  2. Edit the Clamsell Evolution script to remove the "as administrator" setting
    do shell script "sudo pmset -a disablesleep 1"

Other solutions
OneSwitch has a solution for this and seems to be able to handle it

@jacklandrin
Copy link
Owner

You also can edit Clamshell commands to add your password like:

do shell script "sudo pmset -a disablesleep 1" with prompt "OnlySwitch" with administrator privileges password "xxxxx"

It wouldn't ask for the password every time.

@rabbly
Copy link
Author

rabbly commented Nov 8, 2023

The most concerning thing about that is having my password randomly stored in plain text somewhere, but good to be aware of as an option.

@jacklandrin
Copy link
Owner

jacklandrin commented Nov 8, 2023

An alternative way is like OneSwitch, which lets users install a help tool to store account passwords to keychain. It would be safer than in plain.

@rabbly
Copy link
Author

rabbly commented Nov 9, 2023

Is that something I can do, or requires a change to OnlySwitch?

@jacklandrin
Copy link
Owner

I will investigate how to implement it and add it on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants