Locking user account picture

My school has a roomful of the new iMacs with the built-in camera. We recently upgraded them from OS X 10.4 to 10.5. Using the camera and programs such as PhotoBooth, the students were able to change the picture for their account on the main login screen (there is one login to the computer for all users). This is not a serious matter, but a distraction and a nuisance. We used to prevent them doing this with the following procedure: when logged in as root, open NetInfo Manager, click padlock to authenticate, select /users/username, under Property choose writerspicture and change the Value to root. After some searching, I found the file which contains the settings made. It is /private/var/db/netinfo/local.nidb/Store.1056 .
Mac OS X 10.5 does not include NetInfo Manager, and the file mentioned does not exist.
Does anyone know how to do the same in 10.5 as we had been able to do in 10.4 - preferably with a GUI-based application rather than with command-line applications. Also, is there a similar file to the one mentioned which contains the appropriate settings?
Message was edited by: Steven Jones

With the elimination of "NetInfo" and associated applications in "Leopard", everything has been moved over to "DirectoryService". There is also what appears to be a new set of properties - it might be some sort of cache of the user picture stored directly in the account record...
Anyway, the equivalent changes can be made from the command line using 'dscl'. For example, while logged in to an "admin" account, try opening "/Applications" > "Utilities" > "Terminal.app" and entering the commands with the following form:<pre>sudo /usr/bin/dscl . -change /users/username writerspicture username root
sudo /usr/bin/dscl . -change /users/username writersjpegphoto username root</pre>
Alternatively, the accounts can be configured using "Workgroup Manager.app", included with the "Server Admin Tools" which can be downloaded from Apple:
http://www.apple.com/support/downloads/serveradmintools105.html
The relevant keys are under the "Inspector" tab.
The third option is to edit the user records directly. I'm not sure if this is a legitimate way to make these types of changes, but it does appear to work. The user records can be found in "/private/var/db/dslocal/nodes/Default/users/"

Similar Messages

  • Can't Change Lock Screen Background Image and User Account Picture in Windows 8.1.

    I am running Windows8.1 Single Language with windows activated. Upgraded from Window 8 to Windows 8.1.
    Lenovo Y410p.
    4th generation Intel® Core™ i7-4700MQ (2.40GHz 1600MHz 6MB) with 16GB RAM.
    NVIDIA® GeForce® GT750M 2GB .
    I tried all methods that I found on web included :
    1. http://www.askvg.com/fix-cant-change-lock-screen-background-and-user-account-picture-in-windows-8/
    2. http://answers.microsoft.com/en-us/windows/forum/windows8_1-desktop/lockscreen-issues-on-windows-81/c51f570a-7a69-4e92-8348-3ebbed778592
    3. I deleted the C:\ProgramData\Microsoft\Windows\SystemData file and folder
    4. I restored the Libraries Features.
    5. I run SFC / Scannow 3 times but get no error.
    6.  I created a new local account but the same problem shows up. (I'm using live for main account.)
    Now, Please tell me what should I do, Thanks.

    Hi,
    First of all, please run the command slmgr.vbs /dlv
    After that, check the License status if it is licensed.
    Is there any error message when you couldn't change lock background or this option just grey out?
    Roger Lu
    TechNet Community Support

  • Powershell Script to change the default user Account picture for all users in windows 7 and 8

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev

    Hello,
    Can some sone help me with PS script to change user account pictures of all user account in windows 7 and windows 8 ?
    I will deploy this through MDT TS as Custom TS after OSD.
    Shailendra
    Shailendra Dev
    The default user account picture is stored here.
    C:\programdata\Microsoft\User Account Pictures\user.bmp
    It should just be a matter have copying the picture you want to that location and over writing what is there.
    or....
    Computer Configuration\Administrative Templates\Control Panel\User Accounts\Apply the default user logon picture to all users
    You can also configure this by a registry setting;
     [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
      UseDefaultTile = 1
    The picture that you configure, will not be loaded until the user account will actually be created on the pc. Meaning the first time a >new< user will log on to a pc, they will have no picture shown at all using their login screen (this is default
    behavior). Same will occur if you enable the policy don't display last user name. However, once they log in the picture will be shown in the start menu, and if they lock their pc the image will also be shown

  • Change user account picture

    I have just purchased a Toshiba P755 and have tried to change the user account picture. This has turned out to be a major problem. I have created an additional administrator account to fix the problem, but even this did not work. I have Windows 7 Home Premium 64 bit.
    The problem is, when I select a new user account picture and select the change  picture option, I get an error message: "This action cannot be performed due to an account restriction. Please contact your administrator."
    Unfortunately, I am the administrator.
    Does anyone know how to fix this problem?
    Solved!
    Go to Solution.

    I have never been able to change the picture.  ...  I was able to change it in Safe Mode.
    Maybe something you added before you first tried.
    Can you do it after booting clean?
       1. Open the System Configuration utility (msconfig.exe).
       2. On the General tab, click Selective startup and clear the Load startup items check box.
       3. On the Services tab, click the Hide all Microsoft services check box and click Disable all.
       4. OK out and restart the computer.
    -Jerry

  • How do I clear the "recent" user account pictures in Mountain Lion?

    How do I clear the "recent" user account pictures in Mountain Lion? A friend posted a stupid photo as one of the pictures as a joke and I cant figure out how to remove it from the recent pictures.
    Thanks

    To completely remove the files, from the desktop click Go>Go to Folder and type
    ~/Library/Containers/com.apple.ImageKit.RecentPictureService/Data/Library/Images /Recent Pictures/
    Then move the files you don't want to trash.
    Make sure to empty trash and restart before viewing your recents again, or they will reappear.

  • Value to be populated in oblastloginattemptdate while locking user account?

    Hi,
    I am writing a custom JAVA module for forgot password where in i am locking user account if the user fails to answer correctly to his challenegd questions.
    I am populating oblogintrycount and oblockouttime.
    Can anyone tell me what value should be populated to oblastloginattemptdate?
    The LDAP shows the value something as "2009-03-16T09:52:57-05:00".
    Please let me know if anyone has any information on the same.
    Regards,
    Anubha

    Hope I have got your question correct.
    I beleive, you need to update the lastloginattemptdate with the time when user tried to login whether successful or unsuccessful.
    Just update it with the time you are locking out the user. Date format is like "YYYY-MM-DDThh:mi:ss[+/-]hh:mi"
    [+/-]hh:mi is the time relative to GMT.

  • Locking user account

    Hi,
    I have to questions:
    1. Is there anyway to lock user account in OBIEE 11g?
    2. Can i disable "Create New>" menu in analytics?

    We ran into that ourselves, courtesy of our <SARCASM>friends</SARCASM> Sarbanes and Oxley. Based on our research and statements from Sun engineers, the only ways to do it in Solaris 9 are:
    * Write a PAM module to do it
    * Log all failed attempts to a file and have a process scan it for successive login failures
    * Go to something like Directory Server (LDAP) which has account lockouts built into it
    We decided to go with the last option - and yours truly was responsible for doing everything. Two months of hell, but it's done and much easier to manage than files or NIS.

  • User Account Picture Question

    In the drop-down menu of +System Preferences>Accounts+ that appears when you click the user account picture, there is another menu that is labeled "Recent Pictures" where there are some older pictures you have used are located.
    My question is if there is a way to delete these recent pictures, as there are some that are doubles and others I simply do not want. This is really annoying me, and I can't find the directory to delete the images (if there even is one).
    I've tried going to +Macintosh HD>Users>christianwilson>Library>Images>iChat Recent Pictures+ and deleting the pictures there. That only seems to make the images not appear when I click the thumbnail when viewing "Recent Pictures" on +System Preferences>Accounts+, but this does not delete the thumbnail.
    In the directory I mentioned above a file exists called Recents.plist, if I delete that will it remove both the images and thumbnails from System Preferences?

    set the picture to what you want, close system preferences and delete everything in the directory you mentioned (including the plist). then open system preferences. the recent pictures list should be empty.

  • How can I delete user account picture in Windows 8?

    I have set my account picture, but now want to delete the pic and back to the default.
    How can I do it?

    Hello,
    The userpic, the image tiles used for your account picture, is located, in different resolutions, in the following folder: C:\Users\Public\AccountPictures\%UserAccountSecurityIdentifier%
    where %UserAccountSecurityIdentifier% is a placeholder for the Security IDentifier (SID) assigned by the operating system or domain controller to your user account.
    Here is how it looks like:
    NOTE: If your are using multiple account for login to your computer, like local Security Account Manager (SAM) account (standard account created and stored on your local PC in NTFS), your Microsoft Account (the one using internet account name provided
    by Microsoft such as [email protected],
    [email protected]), or an Active Directory account, please open root C:\Users\Public\AccountPictures\ folder and browse to the folder with the name of the SID assigned to your user account for which you want to change the user picture.
    To find out what SID refers to what user account name used on your PC, proceed with the following:
    Start the elevated command prompt by pressing WindowsKey+Q and typing
    cmd, then hitting Enter.
    At the command prompt type: wmic useraccount get name,sid and press
    Enter.
    This will return a table with all user accounts registered on this computer (that is those who had once logged onto this PC) and their corresponding SIDs.
    Now lookup this registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AccountPicture\Users
    And locate the subkey (named correspondingly to the desired SID), then remove REG_SZ values that contain paths to the userpic images to remove traces of userpics.
    WARNING: Please create new system restore point before making this registry change!
    Hope this helps.
    Well this is the world we live in And these are the hands we're given...

  • How to increase No. of attempt to Lock user account in DB

    Hi,
    How to increase the number of attempt [by giving wrong password] to lock the user account in DB Connection?
    We have default feature as No. of attempt is 3 by giving wrong password to lock the user account.
    Is it possible to increase the no. of times from 3?
    Is it possible to find out who is the resource locked the account by giving wrong password?
    Kindly give me input on this more.
    Thanks.
    Orahar.

    You can increase the number of failed login attempts: the number of failed login attempts is configured in profile linked to user account http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/policies.htm#i1007339. Either you change the current profile or you can create a new one and link it to the user account.
    You can retrieve profile linked to user account with:
    SQL> select username, profile from dba_users where username='HR';
    USERNAME                       PROFILE
    HR                             DEFAULTEdited by: P. Forstmann on 12 févr. 2010 08:48

  • Email name and user account pictures keep changing

    My wife and I share contacts and calendars using my iCloud account. She syncs her notes and reminders using her iCloud account. This seems to work fine, but a problem has arisen that I suspect is related to this setup that I don't know how to resolve. When I send an email from my iCloud account it now has a from address of "my wife's name <[email protected]>" instead of "my name <[email protected]>". Also the account login picture for my Mac's user account has been replaced with hers. The latter I can reset (I don't know how to fix the former) but eventually the problem seems to recur.  I'm not sure if this is related but our contacts list identifies my address book card with the "this is me" tag.

    #1 I am 99.5% sure (but only 99.5% if you aren't a gambling man) that when you delete a user's account using the accounts preferences all their stuff gets put into a "deleted users" folder in the users directory on the computer, so it is still all there until you trash that folder. Their account is gone but their files are still around.
    #2 I don't actually have an "applications" folder in my account, there is just one at the main directory level, so I don't think each user necessarily has one by default. However, each user has a bunch of preferences so when I start an application it comes up with my preferences. Another user will have the application come up with their preferences. That's not to say I couldn't have an application in my account area, but I could in theory have an application tucked away in any folder or subfolder and not readily identifiable as such. Any applications not in the general applications folder usually won't be accessable to other users so unless you're logging as that old user you may not even know about applications there.

  • How to find the Locked User Account in OBIEE Admin Console

    We have recently implemented OBIEE and we are in Learning mode. An user complained that his user account is locked, since he tried to login several times with wrong password. Apparently we unlocked his account successfully. Is there any way to find which user accounts are locked? This may be really helpful for
    Thanks in advance.

    Looks like using wlst code can get the list
    Check this
    http://weblogic-wonders.com/weblogic/2010/11/12/userlockout-feature-of-weblogic-server/
    If you customize above code with the below, can get the list of locked users on console
    ul= connection.invoke(ulr, "isLockedOut", new Object[] { username },new String[] { "java.lang.String" }).toString();
    System.out.println("Rezultat isUserLocked " + ul);
    pls mark correct/helpful if helps
    Edited by: veeravalli on Oct 18, 2012 11:51 AM

  • Programmatically locking user account in OID Jdev 11gR1

    Hi All ,
    Using Jdev 11.1.1.6
    Does anyone know an API using which we can lock a user's account in OID ?
    Though there is a way in which we can unlock the account programmatically -
        public void unlockAccount(User user) throws IMException {
            UserProfile usrprofile = user.getUserProfile();
            ModProperty mprop = new ModProperty("orclpwdaccountunlock",
               "1",
               ModProperty.ADD);
            usrprofile.setProperty(mprop);
        }But as rightly pointed out in the below thread , passing the property orclpwdaccountunlock as 0 (assuming it would have locked the account )is not allowed.
    https://forums.oracle.com/forums/thread.jspa?messageID=10698930
    Error -
    [LDAP: error code 53 - Account Policy Error :9051: GSL_ACCOUNTUNLOCK_EXCP :Invalid value specified for orclpwdaccountunlock attribute.
    The only allowed value is 1];

    I want to lock my account as we are doing a custom implementation wherein the account should get locked once a user enters incorrect asnwers to Challenge Questions more than a given number of times.
    Will the disabling of the account help this case ?
    Also can you please throw more light on oblockouttime property ?
    As far as I found out it is specific to OAM - Unlock user in OID through JNDI code

  • IMac initail setup hangs when creating user account picture.

    I just purchased a brand new Imac. When I attempt to create my initail user account I am asked if I want to take a new picture for this user account.
    The Imac then hangs when I click on the check box to take a picture. Can someone please advise me on this procedure?

    It should work, but either skip that part for now, or better yet...
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partitirion & use Disk Utility from there to Repair the Disk or Reinstall.

  • Lock user account

    I have create an user account and I need to lock this account automatically by August 1. how can i do it?
    thanks a lot

    Create an Sql script like this :
    alter user <username> account lock;
    exit
    and a batch file which executes it using SqlPlus : this one depends on your OS. The following is for Linux :
    . $HOME/.bash_profile
    export ORACLE_SID=<YOUR DB>
    sqlplus -s "/ as sysdba" @<your Sql script>
    Schedule it on midnight, August 1 using your scheduler (AT or cron, or anything else).

Maybe you are looking for