Using "defaults" to change autologin preference

Dear Newsgroup,
sorry if there already exits a post which deals with this (searching for "defaults" gives too many hits).
I am trying to help another user turn off the auto login feature. The problem is that the account it auto log's into is corrupted and will not load properly. So I am trying to remove the autologin from the com.apple.loginwindow.plist via the single user command line. Googling around I found the following commands:
nicl -raw /var/db/netinfo/local.nidb
delete /localconfig/autologin username
only problem is that the location /localconfig apparently doesn't exist (neither on his computer which is running 10.3.9 nor mine which is running 10.4.3).
Then I came across the info. that the autologin preference is stored in: com.apple.loginwindow.plist (thanks to a post in this forum, search for "Unable to get user accounts window at startup"). Only problem is that there are a whole bunch of extra characters in the file when I open it up with pico or vi - typical of opening up a rich text file?
Then I remembered from "Running Mac OS X Panther" that there was a way to edit these files via the command line - with the "defaults" command. Only problem is that it says the "Domain com.apple.loginwindow.plist does no exist" when I type at the prompt: defaults read com.apple.loginwindow.plist.
Any ideas?
Thanks,
AppleMonkey
v.1 PowerBook G4 15''   Mac OS X (10.4.3)  
v.1 PowerBook G4 15''   Mac OS X (10.4.3)  
v.1 PowerBook G4 15''   Mac OS X (10.4.3)  
v.1 PowerBook G4 15''   Mac OS X (10.4.3)  

Hi AppleMonkey,
   I assume that you could leave the "autoLoginUserUID" in place since Apple's script didn't delete it but naturally it would be more complete to delete it.
   Your "defaults" command failed because you included the ".plist" suffix. It's in the filename but not used in the "defaults" command. The corresponding file in Panther also had a "autoLoginUser" key so the same command should work for Panther. You also left out the path to the property list but that's optional if the property list is in one of the well-known locations. Both ~/Library/Preferences and /Library/Preferences are well-known locations for property lists so it should be possible to edit property lists in either of those directories without giving the path.
   There is no "delete" command; it's part of the "nicl" command. That edits the database file for NetInfo so the path given is really a sequence of nested nodes in the NetInfo database. The command probably worked in early versions of OS X because it took Apple a while to move configuration back to files. However, even then the configurations were largely optional as most apps had relatively elaborate default configurations.
Gary
~~~~
   <Flood> can I write a unix-like kernel in perl?

Similar Messages

  • Using Automator to change System Preference when opening an app

    Hello everyone,
    I have been using a Mac for a good 8 years now and I'm a happy user. I recently found out about Automator ('hey what is this little robot for?') and what it can do, yet I lack the knowledge of finding out what I must do to make a script to perform the following thing:
    When I launch an app (FL Studio), I want the box checked next to 'Use F1 and F2 as standard function keys' in the Keyboard preferences pane in the System Preferences app.
    When I close the same app (FL Studio), I want the box unchecked next to 'Use F1 and F2 as standard function keys' in the Keyboard preference pane in the System Preferences app.
    I have found several other topics about this subject, however, those were about scripts when logging in to your computer, and not upon opening/closing an app. Please note that I am seeking for the setting to be changed when the app is opened and closed.
    I hope you can help,
    Sander

    This kind of question comes up a lot - how to run a script when an application launches/quits.
    The short answer is that it's not easy to do directly, unless the application itself supports launching scripts on startup/quit (hint: few do).
    Fortunately, a little difference in thinking can give you the same effect.
    Rather than trying to have your script trigger AFTER the app launches, rethink your process to a script that FIRST changes the preference, THEN launches the app. You get the same result but about 14 billion times easier to implement.
    In this case, write a script to set the function key preference, then launch FL Studio. The script can then hang around to wait for the app to quit and reset the pref.
    Furthermore, don't try to do this the human way (open System preferences, select Keyboard, check the box). You can set the preference directly via the defaults command line utility:
    on run
      do shell script "defaults write .GlobalPreferences com.apple.keyboard.fnState 1"
      tell application "FL Studio" to activate
    end run
    Resetting the preference is a little trickier since you need to detect when FL Studio has quit. You can do this with an idle() handler in your script that hangs around, periodically checking if the app is still running and then taking action:
    on idle
      tell application "System Events"
      if (name of every application process) contains "FL Studio" then
      -- app is still running, so come back and check later:
      return 10
      else
      do shell script "defaults write .GlobalPreferences com.apple.keyboard.fnState 0"
      tell me to quit
      end if
      end tell
    end idle
    Putting these together in a Stay Open script should do much of what you want.

  • Using automator to change system preferences

    can i use automator to change my network settings. my stupid wireless at home does not automatically connect so everytime i get home i have to open up sys preferences and change the airport settings to manual and enter in the ip address of the router manually. can i create an automator script to do this in one step?
    any help appreciated. thanks.

    I have a similar problem with the ultra sensitive trackpad with the "Clicking, Dragging, Drag lock" checked in Preferences/Keyboard & Mouse. I'm always turning them on and off depending on which application I am using.
    My problem is that when I record a series of actions in Automator, the resulting action list has no text behind the action for the mouse click for the Clicking checkbox. Its as though it doesn't even know that its there. All of the other actions show up.
    Got any ideas on how to fill that void or another workflow that would do the same thing ? I think that running the workflow again would turn it back on as the actions are identical.

  • Use Automator to Change System Preferences?

    Hi. I want to create a workflow or applescript that will open my system's sound preferences and change the output source. The Applescript editor doesn't record any of my actions.

    Modify the setting from System Preferences, and then look for plist files in ~/Library/Preferences/ and /Library/Preferences/ modified around that time. When you've located a possible plist, open the Terminal application in the /Applications/Utilities/ folder and enter 'defaults read ' without the quote marks. Drag the plist into the Terminal and press Enter; you will then see a list of keys. If a key looks like it contains what you're looking for, remember its value, change the setting again from System Preferences, and check the key again. Once you've found the key, you can use a 'defaults write' action in Automator's shell script option to change the value. If you can't write the key successfully, post back here with the name of the key and where you found it for further assistance.
    (12421)

  • Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Jneklason wrote:
    ~snip~
    I know this email is confusing and really hard to understand...perhaps now you will know how i've been feeling--lost and confused with all the mis-information, with a hit and miss phone, and out of time with all the 1 1/2 hr to 2 hrs EACH wasted on this issue.
    On top of all this, I can't even find out how to file a complaint with anyone higher up than Customer Service.
    I hate to tell you this, but you didn't write an email. You wrote a discussion post on the Verizon Wireless Community forum which is a public peer to peer forum. Unfortunately since you didn't mark your post as a question, the VZW reps that roam this community won't ever see your post. Before you re-post it, don't. Duplicate posts get removed from the community.
    I see there were several missteps both by the reps and yourself in your post. First you should have insisted on returning the phone within the 14 day return policy period. Second which Samsung Galaxy mini model did you purchase? The S3 mini or the S4 mini? Did you do any research prior to deciding on this device. The reps at that time deflected the easiest course of action, by trying to get you to replace the phone under insurance instead of returning the phone. The Early Edge payment option requires the current phone on the line using the early Edge must be returned to Verizon Wireless. Did you once considered going to a third party site like Swappa to purchase a gently used device for your daughter?

  • How do I change print preferences to print in black/white by default instead of color

    how do I change print preferences to print in black/white by default instead of color

    When you try to print, use COMMAND P, it should bring up a window similar to this you can select the preset there. It shoud remember the preset after.

  • Photoshop CS6 keeps crashing. I am using a brand new IMAC, I have 16GB RAM recently updated as it was running slow with 8GB and lots of hardrive space. When it crashes, i lose all my presents and it changes my preferences, it also fails to save or produce

    Photoshop CS6 keeps crashing. I am using a brand new IMAC, I have 16GB RAM recently updated as it was running slow with 8GB and lots of hardrive space. When it crashes, i lose all my presents and it changes my preferences, it also fails to save or produce a recovered file despite settings asking it to do so every 5 mins now. When i try to report the problem, it says it has found an issue and gives me a link to a solution....but wont let me click on the link.... PLEASE HELP! It's killing my productivity.

    If the crash started right after you added RAM, it could be a bad Ram dimm. You can try this - change the amount of RAM in Photoshop to 4G, this should stop Photoshop from using the higher ram. If it doesn't crash, it's probably the ram. Or run a diagnostic app. You don't say when it crashes, what you're doing when it crashes - it there a pattern? Did it ever work on this computer? Did it work on your previous computer? Without a lot of data, it could be related to the new computer... What OS version? Did you recently update it? Have you updated Photoshop to the most recent update?
    Do you have any plug-ins loaded? Try restarting Photoshop, and immediately press & hold the shfit key to turn off plug-ins.

  • Garage Band,  I am using an MBOX with a digi design audio core as a mic interface to recod into Garage Band.  Now when I Change the preferences to use the MBOX I can not move the recorder slider and there is no sound going into garage band?  Any solutions

    Garage Band,  I am using an MBOX with a digi design audio core as a mic interface to recod into Garage Band.  Now when I Change the preferences to use the MBOX I can not move the recorder slider and there is no sound going into garage band?  Any solutions

    10.5.8 with latest garageband 5.1 with MBOX 1. On Nov 4.09 I did a software update, now i get no output volume or input volume to the computer itself. I get it from head phones from my mbox, but not to the computer. Before the software update It worked great. I've tried upgrading software through digidesign .com, but they dont seem to have one for what i need. any way to get my old garage band back? go from 5.1 to earlier? Or maybe it was the upgrade to 10.5.8. update? Can i go back in time lol?
    Any help would be appreciated
    BTW
    Ive tried all the system sound prefs, and garage band drivers. Back and forth.
    cheers
    ds

  • How to change printer preferences for HP envy 4500 using Google Chromebook HP pavilion 14

    I want to know how to change printer preferences for HP envy 4500 using Google Chromebook HP pavilion 14?
    This question was solved.
    View Solution.

     Hi chefcorbin,
    Welcome to the HP Support forums.  I understand that you would like to learn how to change the printer preferences using your Chromebook.
    I have included a link to Google support on printing a page with Chrome and it lists the print settings that you can adjust.
    Google Chrome Help - Print a Page
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Since purchasing my Mac Pro with retina display, I can no longer change the preferences on MP Navigator for Canon MX870. Help?

    Since purchasing my Mac Pro with retina display, I can no longer change the preferences on MP Navigator for Canon MX870. I can change them on my old Mac Pro with Lion, but not the new one. I can scan but I can't save it to a folder on my hard drive. I can only let it default to a back up date folder. Tried all sorts of things to change the preferences and folders, nothing worked. Ideas?
    Stephanie

    To prevent your iPhone from automatically syncing when you plug it in, click on iTunes in the menu bar, then preferences, then "devices", then tick "prevent iPhones, iPad's and iPod's from syncing automatically".
    Plug it in, then on the iPhone sync summary screen, click "info" along the top.
    Make sure the "sync contacts" option is not ticked. as long as it's not ticked, then it won't sync with your mac's contacts but will still include them in backups.
    Also, if you use iCloud, make sure that the iPhone/mac are either not signed into the same account, or that "contacts" is not turned on for both of them

  • Changing printing preference​s in hp connected

    I want to change my printer preferences when using ePrint to send an email to my printer.  The preferences I'd like to change are printing in black & white as default and also changing to duplex as default if possible.  On another post it said you can login to eprintcenter to update preferences but when I try to login to that it redirects me to HP Connected.  There doesn't seem to be anywhere I can change my printer preferences in HP Connected.  How can I do that?

    Hi,
    I have not read the post which says change printer preferences under HP Connected therefore I can't say more BUTfrom your computer, you can set default B&W and also auto duplex on many printers which support those functions. What is your printer ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do I change my preferences to save downloads to my desktop, instead of a User's download folder?

    How do I change my preferences to save downloads to my desktop, instead of an internal User's download folder? I have an older Mac Mini & recently upgraded the operating system to 10.5.8.

    I presuming you're using the default Internet Browser, Safari.
    Choose Safari → Preferences
         Alternatively, press Command+, (comma).
    Click the General tab; then click the Save Downloaded Files To pop-up menu and choose Other.
    Navigate to and select the location where you want the files stored and click Select.
    Click the Close button to exit Preferences.

  • How can I change the preference order of stored wi-fi networks?

    How can I change the preference order of stored wi-fi networks? (My iPhone keeps trying to connect to a weaker network that I occasionally use - even when there's a stronger network stored in the system which I want to rank higher)

    If you know and have entered and connected successfully to the weaker network whenever you come near it it will automatically connect to it.
    If you want it to connect it to the stronger network you should go to the wireless settings and connect to the stronger one when both the networksare in range.this will make your stronger network as the default network connection.

  • Can I enable "Use default gateway on remote network" on VPN connection using Group Policy?

    Hi,
    First timer here so please bear with me!
    Environment: Domain Windows 2003, Clients: Windows 7 and Windows XP (with Client Side Extensions pushed out)
    When creating a VPN connection on a client machine manually with default settings the "Use default gateway on remote network" found in [Connection Properties - Networking - IPv4 - Advanced] is enabled, which is good as we don't allow split-tunneling.
    I have a test GPO that creates a new VPN Connection [Computer Config - Preferences - Control Panel - Network Options], but the above setting is unticked.
    Am I missing something on the options for the GP preference to set this automtically?
    I can write a script to directly change the C:\Users\All Users\Microsoft\Network\Connections\Pbk\rasphone.pbk file but would prefer if I could sort it all out using Group Policy.
    Any help would be greatly appreciated!
    Thanks a lot!
    David

    Shane,
    There is actually a way to set the "Use default gateway on remote network" through Group Policy Preferences. And this may even be a better way to do it, because you may change this flag without touching any other settings, or other VPN connections.
    (All VPN connections are stored in the same .pbk file.)
    Here's the trick: Opening the .pbk file in notepad, I realized that this is actually an oldstyle ini-structured file. And Group Policy Preferences can update ini files! In the .pbk file the section names are the VPN connections names, like [My VPN],
    and the property IpPrioritizeRemote is the flag "Use default gateway on remote network".
    So, in Group Policy Management Editor, go to Preferences / Windows Settings / Ini Files.
    Create a new object with Action = Update, and File Path =
    C:\ProgramData\Microsoft\Network\Connections\pbk\rasphone.pbk
    (If this is where your file is located, I guess it is in c:\users if the VPN connection is made for a single user.)
    Section Name should be the display name of your VPN connection, without the brackets.
    Property Name = IpPrioritizeRemote
    Property Value = 1
    Peter, www.skov.com, Denmark
    Peter :-)
    This is great, but just one question. I also want to append a list of DNS Sufixes in order (when viewing a VPN properties, this is buried in
    "Networking --> IPv4/6 --> Advanced --> DNS --> Append these DNS Suffixes (in order)". However, for the VPNs I have manually created with this list populated, I can't see any entries in the rasphone.pbk. Does anyone know
    where these are stored?
    Cheers.

  • Everytime Itunes gets an update, it changes my preferences

    I want iTunes to copy music to the music folder when I add stuff to the library, and I use a non-defualt (not My Documents/Music/Itunes) media storage folder.  I changed the preferences and everything works great....
    But whenever iTunes updates, it unchecks the preference to copy added files and it changes my music folder back to their default (My Documents/Music/Itunes) folder.
    I think this is a bug in iTunes, not something I am doing wrong
    Please Fix!!
    -Alex

    I have the same problem. I use my Time Capsule shared drive for all my music and videos - I just keep running out of room on my old MacBook. The Exclamation point comes up every once and and a while, and I never thought to look back at the preferences again (Duh).  Thanks for the tip - and figuring out what clearly appears to be a bug!
    Apple I second Alex - PLEASE FIX
    Tim

Maybe you are looking for

  • How to select data in one query ?

    I have a table "My_Table" with the data like below - order_seq      |ONE_CODE      |TWO_CODE     | ONE_VAL     | TWO_VAL 1          |ABC          |DDD          |1100          |1900 2          |PQR          |TTT          |5000          |3000 3        

  • Create AAC grayed out

    I have selected AAC option in Import settings, I have selected the MP4 file I want to convert, yet the option remains grayed out in the advanced menu. I have a PC and am trying to extract the audio from a MP4 file (a music video from which only the s

  • Movie dowloaded and not found on my apple tv on downloads or settings or my  movies, What happened and where is it?

    My apple tv first generation downloaded a movie. The apple tv stopped working and then had to restart apple tv and the movie is now not any where to be found. When go back to top movies it says I have already downloaded the movie and do I want to ren

  • While doing risk analysis for profiles the web service is taking 20 minutes

    Hi All Iam using SAP GRC 5.2 ( As per clients requirement) Iam using  VirsaCCRiskAnalysisService web service For roles it is working fine But when iam doing risk analysis for profiles( S_A.DEVELOP and  S_CUS_CMP)  it is taking upto 20 minutes to give

  • Is there a way to embed the youtube player into Director?

    Can't find anything about it online. Would be great to make a custom player for youtube.