Screensaver / sleep mode password protection does not work

Hello,
I am running 10.6.4 and have enabled screen saver and sleep mode password protection from System Preferences / Security / General / Require password immediately after sleep or screen saver begins.
I have also selected some screen saver - Cosmos. Now, from terminal when I check the settings:
MINE:~ ent$ defaults -currentHost read com.apple.screensaver
CleanExit = YES;
PrefsVersion = 100;
mainScreenOnly = 0;
moduleDict = {
iLifeMediaGroupType = 0;
moduleName = Cosmos;
path = "/System/Library/Screen Savers/Cosmos.slideSaver";
type = 4;
showClock = 1;
tokenRemovalAction = 0;
MINE:~ ent$ defaults read com.apple.screensaver {
askForPassword = 1;
askForPasswordDelay = 0;
tokenRemovalAction = 0;
So the settings get applied correctly.
The problem is - after screen saver kicks in or when MacBook goes into sleep mode and I want to continue work - no password prompt appears and I go back to desktop without any authorization!
I see this behaviour on admin user account, but when I login in as root - prompt appears and asks for password to unlock desktop.
Can you help me troubleshoot the problem? How can I log /see what is happeining after screen saver is terminated by mouse move or key stroke?
Regards,
Krzysztof

Gals, Gents,
I actually figured out the root cause of the problem. I am using EncFS to encrypt my home folder and each time the user logs in a script is being executed:
MINE:~ ent$ cat /Library/Management/loginhook.sh
#!/bin/bash
# $1 = logged in usernam
# try to mount /e using encfs entry in keychain
PASS=$(security find-generic-password -ga EncFS 2>&1 >/dev/null | cut -d'"' -f2)
RAW="/Users/.$1"
MOUNTPOINT="/Users/$1"
echo $PASS | sudo -u $1 /usr/local/bin/encfs -S $RAW $MOUNTPOINT
It is executed as a login hook, so:
MINE:~ ent$ sudo defaults read com.apple.loginwindow
LoginHook = "/Library/Management/loginhook.sh";
LogoutHook = "/Library/Management/logouthook.sh";
The problem with that is that most probably all the Library settings are first read and only after that is the login hook executed. What it actually does is decrypting the EncFS volume and mounting it to the /Users/enc.
So... Library folder get's substituted and I can work on Library preferences files from my account, but they are not visible during the login process.
Anybody know how I can change this process to enable login script before Library is ever read?
I managed to work around with screen saver protection by adding it globally to /Library/Preferences/com.apple.screensaver.plist instead of local ~/Library/Pref..
But obiously that is not how it should be dealt with...
Thanks,
Krzysztof

Similar Messages

  • Norton password manager does not work on 8. How do I return to a previous version?

    when I updated to firefox 8, Norton password manager does not work. How can I return to a previous version. I am surprised that you introduced an update missing this.

    Norton needs to be updated.
    http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640

  • Itunes is not working on my mac. I'm trying to redeem a gift card and everytime I enter my password it does not work.  Also, when I try and browse songs, everything is blank

    HELP!
    Itunes is not working on my mac. I'm trying to redeem a gift card and everytime I enter my password it does not work.  Also, when I try and browse songs, everything is blank

    It's been a while but it should work on a Mac because Macs can read Windows formatted devices. Otherwise, you can perform a restore operation to return it to the Mac format. If you go to support.apple.com/manuals/ you can find a copy of the user manual for the model you have in which this is all explained.

  • Ssh tunnel mode on Leopard does not work

    Hi folks,
    I have set up ssh tunnel mode (tunnels opened with "ssh -w 0:0 ..." makes SSH create the necessary tunX interfaces on its own) from my linux boxes to certain servers, and it works well.
    But using "ssh -w 0:0" on Leopard client leads to
    debug1: systunopen: /dev/tun0 open failed: No such file or directory<<</div>
    So it seems - although the ssh man page describes it thus - that creating tun interfaces on Leopard does not work.
    By the way, omitting the interface numbers for the tun interfaces on both sides ("ssh -w" instead of "ssh -w 0:0") leads to "Bad tun device" although that as well is documented in the ssh man page as working (and on linux it does).
    Has anybody ever tried this on MacOS X in general and Leopard in particular?

    Dirk,
    I have run into the same issue, however I had ssh tunnels running between several macs before Dec 7 2008. But for some reason it broke on that day. Have been running remote rsync backups of the User data. Can give you the syntax if you want. But my point is it looks like this is a break in the OSX Unix system vs them just not being there as this was working prior to the 7th for several months.
    Am working with Apple to get this resolved but in the mean time where did you find the tun/tap drivers? I have some for Open VPN that I have been playing with on another machine but dunno if they will work or not.

  • Encrypted Disk Image to Password Protect Folder Not Working!

    I have followed the instructions exactly for creating a Disk Image in order to password protect a folder.  Folder contains multiple types of files including images, pdfs, etc.  Here is what I've done and what happens:
    In Disk Utility I created a New Disk Image from Folder.  I chose the folder, which I have on my Desktop, and clicked Image.  I gave the Disk Image a new name, placed in on my Desktop, indicated the image format as read/write and chose the 128-bit encryption.  I chose a very strong password and unchecked the remember password box.  At this point, all seems to have gone well.
    Now, back to my Desktop.  I have two things going on.
    1. The initial folder that I wanted password protected is still present.  Am I supposed to just send this to the Trash?
    2. When I double click on the the new .dmg file that I've created, I am asked for my password, which I put in.  Then, nothing.  I mean, nothing happens.  It doesn't open, it doesn't do anything.  I can click on it and choose Open with DickImageMounter, and nothing happens.  I can open with Disk Utility, but this just gives me the normal options to eject, burn, restore, etc.
    I don't know why I can't get this to work properly, and I'm a little annoyed that Apple can't make it as simple as selecting a folder and having the option to password protect it, just like you can a normal file.  PLEASE HELP!
    Thanks.

    As of OS X 10.7.4, Disk Utility had a bug that prevented it from creating an encrypted disk image with a password of more than 10 characters. I haven't checked recently to see whether that bug has been fixed, but from your report it seems not to have been. There is a workaround, but it's complicated.

  • My screensaver/sleep mode randomly comes on whilst working?

    All,
    For some reason my screensaver automatically comes on in the middle of working.
    Sometimes it will fully startup the screen saver, other times it launches but reverts back to the workspace instantly. Sometimes I get the 'clinking' disk de-mount sound and other times it goes into sleep mode. But the thing is all of those have in common is the fact that it just happens randomly.
    I've reverted all my screen saver and sleep mode preferences to the defaults as well as the energy saving settings, but this hasn't fixed the issues. The only changes I can think have been made since the problem is installing Lion as well as some software updates to bring my apps up to compatibility.
    Any thoughts? It's starting to get on my nerves.
    Thanks,

    I had the same thnig happen to mine. After lots of research it turns out there is problems with Lion and MBP that came out in Late 2010. Check KB article TS4088

  • Invalid password - restore does not work

    My son has an Ipod Touch 4th generation.  The password has been forgotten or changed.  I tried to connect to Itunes and do a restore and it will not work.  It starts the process then asks for a password.  I have also tried to hold the home key and power button down and connecting, same thing..it starts the process then asks for a password.  Any suggestions how to get this reset or restored?

    Most likely your iPod hardisk is dying.
    Do a Disk Diagnostic, as posted by tt2
    https://discussions.apple.com/thread/3110831?tstart=240
    This wont fix your problem, but it gives some idea., like getting some professional hardisk repair service or Apps.
    Anyway, it would be a very bad idea, to give someone this problematic iPod as a gift to a friend, I would give it to someone I dont like, and let him feel your frustration.
    Have a nice day!

  • The password features does not work. Open TB, and I can read my email without using the password. Why?

    I use a password for security. When I click onto TB, I do not have to use my password to read my emails or it will not download. I cannot figure out how to change my password. When I tried to set the master password,
    it claims to have confirmed the new one. But I have to use the old password, or I do not have to use a password at all to read my email, if it downloads. This is after I uninstalled and installed TB 24.4 three times.
    Now what, any ideas?

    Here is my understanding: the master password secures your saved passwords. In other works, it unlocks your password to connect to the server to send and receive mail. It doesn't prevent people who have access to your computer from opening Thunderbird and seeing what's already there.
    This article has an extended discussion of many methods to try to prevent others from reading your already downloaded mail: http://kb.mozillazine.org/Protecting_the_contents_of_the_profile_-_mail

  • Password protected page not working

    HI,
    I have to password protect a single page (out of 3-4 pages) on a site.  http://www.antlersowners.com/members.html
    I used javascript because I didn't see a way in DW to password.  Some users can get in - but others using IE8 cannot!
    My question is: what is the best way to password a single page.  Can I do it via DW.
    BElow is the code for the page, I've set the link up to go to the javascript page which THEN goes to the html page.
    Any help you can offer will be greatly appreciated.  Jane
    Code below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>password required</title>
    </head>
    <body>
    <SCRIPT>
    function passWord() {
    var testV = 1;
    var pass1 = prompt('Please Enter Your Password',' ');
    while (testV < 3) {
    if (!pass1)
    history.go(-1);
    if (pass1.toLowerCase() == "gazebo") {
    alert('You Got it Right!');
    window.open('members.html');
    break;
    testV+=1;
    var pass1 =
    prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
    if (pass1.toLowerCase()!="password" & testV ==3)
    history.go(-1);
    return " ";
    </SCRIPT>
    <CENTER>
    <FORM>
    <input type="button" value="Enter Protected Area" onClick="passWord()">
    </FORM>
    </CENTER>
    </body>
    </html>

    I used javascript because I didn't see a way in DW to password.  Some users can get in - but others using IE8 cannot!
    My question is: what is the best way to password a single page.  Can I do it via DW.
    As the others have said, forget about using client-side Javascript for any form of security. It achieves nothing and is easily circumvented.
    At most, you would only use Javascript in the browser for basic validation of data entered by visitors (e.g. have the minimum required fields been filled out?). Nothing else. But in simple cases like this, I would not even bother with that. Security procedures must always be done on the server and this can take many forms from simple to complex.
    My first port of call in simple situations such as yours is to go to the hosting panel on the website and set up a password protected directory/folder. Then upload your sensitive page to that folder. That's all you need to do.
    The server will then launch a dialogue box requesting a username/password from anyone trying to access that page.
    If you don't have access to a hosting panel then ask the website host to set up a password protected folder for you.

  • My screen saver on my new mac book pro stopped working.  I have rebooted, changed screen saver mode it still does not work

    My screen saver on my MacBook Pro stopped working.  I have rebooted and tried resetting the screen saver, still not working.

    We are going to delete a hidden file.
    Finder > Go Menu > Go to Folder and type or paste
    ~/Library/Preferences
    and scroll down until you see
    com.apple.systempreferences.plist
    drag the one you can (may see two) to the Trash, reboot, reset your System Preferences again.

  • IPod in Recovery Mode Loop, Restore Does Not Work

    When I turn my iPod on it says "Connect to your computer. Use iTunes to restore." I connect it to iTunes, restore it and then it says that it is still in recovery mode and needs to be restored.
    Nothing I've tried has worked. I've put it in disk mode, I've changed the drive letter so Windows doesn't confuse it with anything else. I tried to go to the Genius bar but they were so backed up the only appointment I could get was for 8pm tomorrow!
    Hopefully someone can help!

    I've got the same problem with my iPod nano 3rd generation. I'll connect it to iTunes, and it says that an iPod has been detected in recovery mode, and it'll ask me to keep it connected to the computer. It'll then prepare it for recovery, and then tell me there's been an iPod detected in recovery mode. It'll perform this loop several times before I'm given the option to restore it, in which the iPod displays an old version of the iPod interface (I'm talking 1st or 2nd generation of the classic iPod).
    Once I'm given the option to restore, it says "Extracting software", finishes, and says that the iPod is being restarted, and then starts with the "iTunes needs to prepare your iPod for recovery. Please leave your iPod connected." loop once again.
    I would really prefer to not have to drive to the Apple store to get this problem fixed...

  • App-Specific Password Required does not work on iMac

    My iMessages and FaceTime apps on my iMac stopped working.  When I tried to sign in I couldn't, and was forced to request an App-specific password online.  I did this using two step verification, but did not get an app specific password, only a gray screen.  I have gone through multiple logon attempts unsuccessfully.  I even tried to disable two step verification but got an error message.  App specific passwords worked on my iPad Air, but not my iMac.  What's wrong?

    i cant buy the extras either. same problem.
    but i dont wanna buy annother app in the appstore! i sent apple a bug report on it because im not gonna buy it until they fix it, well i cant lol! apple please try and fix this bug cause its really annoying and many people r effected by it and more will be but just wont have commented on the apple community seems like every new mac owner will have this bug :/
    this is what i get:
    it doesnt change or load just stays and doesnt download! (i blanked the time/date and things if ur wondering about those 2 white boxes on the top bar and dock, but the appstore window just goes blank, i didnt blank it out for privacy- the blank app store thing is the main problem )

  • FDM Data Protection does not work

    Hi experts,
    I am trying to implement FDM data protection. Here's the situation: In C4, we have 3 members - LSS, LSSGA, MI. I want to replace only the contents in LSS and preserve the manually entered data in LSSGA and MI members. When I enable data protection with <> "LSS", it works for once. There is a situation here where the data in LSS also gets modified occassionally. Following this, FDM Replace cannot replace the data in member LSS. Has anyone faced this issue before ?
    Else, how to enable protection for more than one values ?
    Any help is appreciated.
    Thanks,
    George

    You already have an issue from the details you have specified. If you are saving non 'LSS' records, i assume by setting the protection vaue as not equal to 'LSS', then it is going save the 'MI' records, but not the 'LSS' records AND the 'LSSGA' records (It will not save the LSSGA records because it includes the string 'LSS' and that is all the function looks for - it uses the VB Instr function.
    To save multiple strings from a single location would involve bespoke changes to the adaptor Export script, or revising your metadatanames so that changing the protection value string could cover multiple dimension names as you have with LSS and LSSGA.

  • 8500 landscape mode in Photoshop does not work

    In photoshop, when I print in landscape mode, it only prints in portrait. I have changed all the settings in the printer preferences and the preview always stays in portrait. I just used the same photoshop image in my old 7300 printer and it works just fine on another computer. The only way I was able to do it  OK was to save in pdf and then print "automatically" to fit.
    Is there any other solution in Photoshop?

    Open as layers only works for Photoshop.
    There is a plugin available Elemental - Integrating Photoshop Elements with Lightroom that will include that functionality for Elements.

  • ITunes Username/Password Dialog does not work

    Having a strange issue. When ever prompted for username/password to my itunes account on my touch, the CANCEL and OK buttons do not respond and need to press the HOME button to cancel out. I've restored the device clean with no effect on the issue. Anyone else seen/heard of this?

    bump....update 3.1.1 didn't fix it. Did a complete restore.

Maybe you are looking for