Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.6: Unlock screens using any admin password' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Unlock screens using any admin password
Authored by: joelbruner on Nov 22, '10 09:19:41AM
Awesome! I've been wondering about this!
Here's the command line version:
cat /etc/pam.d/screensaver | sed 's/account    required       pam_group.so no_warn group/account    sufficient     pam_group.so no_warn group'/ > /Users/Shared/screensaver.new.txt
sudo mv /etc/pam.d/screensaver /Users/Shared/screensaver.old.txt
sudo cp /Users/Shared/screensaver.new.txt /etc/pam.d/screensaver
open /Users/Shared/
Both files are saved in /Users/Shared, which is opened after completion so changes can be verified.

[ Reply to This | # ]
10.6: Unlock screens using any admin password
Authored by: treydock on Oct 11, '11 02:02:11PM
A shorter way to do this would be use the -i flag to create a backup...

sed -i '.bak' 's#account    required       pam_group.so no_warn group=admin,wheel fail_safe#account    sufficient       pam_group.so no_warn group=admin,wheel fail_safe#g' /etc/pam.d/screensaver
That will create a backup of the original at /etc/pam.d/screensaver.bak - Trey

[ Reply to This | # ]