How to repair SACL from single-user boot with 'serveradmin settings' (CLI)?

Hello!
Could anyone explain me in a step-by-step guide to repair/reset service access for local users (and group Administrators) because I can't login to the server when at the login window (GUI). Now I have only access to the OS using single-user mode at boot time (Cmd+S) or with “Mac OS X Server Install Disc” and the Terminal app inside.
I know that CLI ‘serveradmin settings info:????’ should help, but not sure how the proper syntax is typed so that I can login without the login window graphically bouncing when typing in the correct credentials.
Anyone care to help ?

If I understand right, the reason you can't log in anymore is that the Administrators group has been removed from the service access control list for the "Login Window" service (i.e. the ability to log into the desktop on the server itself). If I'm wrong about this, please clarify; these instructions may be irrelevant (and the second option I'll give may be actively destructive).
Anyway, the repair method I'd recommend is to install the server admin tools on another Mac (that you can log into). There's a copy of the installer on the Server Install DVD, or you can download the latest version from [http://support.apple.com/downloads] (the 10.6.5 version is [here|http://support.apple.com/kb/DL1071]). Note that the admin tools can't be installed on older OS versions (e.g. if the Mac is running 10.6.4, you could install anything from the 10.6.0 to 10.6.4 tools, but not 10.6.5).
Once that's installed, run Server Admin, connect to the server, then select the server in the sidebar -> Access in the toolbar -> Services tab under that -> Login Window in the service list on the left, and either edit the allowed user&group list, or simply select "Allow all users and groups".
The other option is to use single-user mode. You cannot use serveradmin in this mode, because servermgrd isn't running (in fact, pretty much nothing is running); you'll have to do it "by hand".
1. Since you probably didn't shut the server down cleanly, the first task is to make sure the file structure on the boot volume is ok. Run the command "fsck -fy" to check (and repair) the volume. If it says "FILE SYSTEM WAS MODIFIED", run it again as it may not have found & fixed all problems on the first pass. Keep running it until it says "The volume suchandso appears to be OK", or reports errors it can't fix (in which case you have more serious problems, and should deal with those first).
2. Once the file structure is verified, you need to enable write access to it to make changes. Run the command "mount -uw /". If it prints anything (other than another command prompt), something went wrong (make sure you included the final "/", and that it had a space before it).
3. Now, remove the access control group that's disabling access to the login window. This command is pretty long, and if you make any typos it may do something completely unfortunate, so type carefully and use tab completion: type part of a filename (get the capitalization right), then press tab and it'll try to fill in the rest for you; if it doesn't work, you either haven't typed enough of the filename for it to figure out what you mean, or you've made a typo. Anyway, the command is: "mv /var/db/dslocal/nodes/Default/groups/com.apple.access_loginwindow.plist /var/db".
4. At this point the access control should be gone. Use the command "exit" to get out of single-user mode, and bring up the full OS.

Similar Messages

  • Can't Safe Boot or Single User Boot with the new (wired) Apple Keyboard

    I have found that my shiny new Apple keyboard does not recognize the shift key or command-s when booting, making it impossible to boot into either safe mode or single user mode.

    I'm having the same issues here.
    Read on Macfixit about incompatibilities with the Core Duo machines (I'm running a 1.66ghz Core Duo MacMini, 10.4.10) and can't startup using safe mode or single-user. Not sure if this has been addressed yet?

  • Repairing disk permissions from single user mode

    I accidentally changed the disk permissions on my Macintosh HD to "none" for everyone, except system and admin, who both still have read/write/exec privileges. Now, my Mac won't boot up. What can I do to fix this from single user mode or verbose mode?

    Hi,
    if you reboot your mac and press Command -R you can start in recovery mode and repair the permissions.
    here you can find how to proceed http://support.apple.com/kb/HT4718

  • IMac G5 won't boot in normal and safe mode, but will from single-user mode

    Hello everyone,
    I'm quite new here, so I try to do my best if you have a question.
    Yesterday, someone nearby me had a iMac G5 (Powermac8,1), and he sayd, that the computer sometimes will boot, sometimes not.
    I did test it, I thought it was running fine, but when I played some music in iTunes, it was stuck on 9 seconds, and crashed (with a kernel panic). The guy also sayd, that there was nothing important on the computer, so a clean install was fine.
    Now, the problem is, that it will not boot in normal mode (without anything pressed on boot), also it won't in safe mode (shift-boot), but it will, when I enter single-user mode, mount the hard drive and exit from single-user mode so it will go futher on booting. Sometimes it will not, and immediately gives you a kernel panic in single-user mode, but it will 90 percent of the time.
    Then you've got another problem: when it's running in the normal desktop from single-user mode, it'll be stuck after some time again. If I look into the Kernel Panic file created, most times it's because of Spotlight indexing, so I disabled that.
    He also gave me the disks (Apple Hardware Test and Extra Applications, and iMac G5 Mac OS X Install Disks 1-3) that came with the Mac. He sayd that I could use them, but I think he didn't test out the SuperDrive, because when I insert a disk, it will try to read, but it will make 2 same sounds, and quits after 10 tries, when it will spit the cd out. Also normal (audio) disks.
    Also, I must hurry with the commands for mounting and exiting in single-user mode, or it will just not boot.
    In all cases, after 30-45 seconds from pressing the power button, the fan will start blowing at full speed, and it will stop after the exit command in Single-user mode. That's weird.
    I can't do anything with the SuperDrive, I can't normally boot in Mac OS X except for Single-user mode (but I don't think he would like to do that every time the computer boots up), and I have very limited time when Mac OS X arrived on the desktop.
    When booting in Verbose mode, it will be stuck on this:
    AppleSMU::PMU vers = 0x000d004c, SPU vers = 0x15, SDB vers = 0x01,
    (and sometimes ends with a kernel crash by fsck_hfs)
    Things I've tried (without any success):
    - /sbin/fsck -fy (in single-user mode)
    - Disabling Spotlight and mds
    If you want some more information, feel free to ask!
    Greetings
    -MrYoranimo
    PS: My main language is Dutch, so my English can be bad at some points.

    Thank you for your support! This reply is a little bit late, because I was to the camping this weekend.
    The only thing I sure do know, is that the iMac has a bad SuperDrive. That's one problem, but I don't really wanna use it, and you fix everything by Single-user mode and when I get to the desktop to test things and change stuff in the Preference Panes.
    What also came to my mind was that there also is a problem with the videocard (driver), because sometimes when I boot into Single-user mode, I can see some white pixels which aren't supposed to be there. And when booting from SUM you can see that some of the colors are different and there are weird patterns on the screen.
    I also tried to setup a NetBoot server on this computer (MacBook Mid 2010) with just Lion 10.7.4 on it, but I'm not that expert and I didn't really find the good posts on the Internet, although I tried it with the Server applications and both Server applications and DeployStudio. But I didn't succeed.
    I don't really like buying a new FireWire hard disk or external FireWire dvd reader/writer, except if it has USB support, because my MacBook doesn't support FireWire, and I really wanna make use of it then.
    If I know more or have fixed it, I will surely post again here with what I did to fix it (if no one else has posted here already ).

  • How to backup files from other user logged in as administrator

    RE: How to backup files from other user logged in as administrator AND/OR how to repair drive with "Invalid catalog PEOF"
    Hello,
    My MacBook Pro computer’s hard drive is not booting.
    I booted with the base operating system and ran Disk utilities and I got the following messages:
        Invalid catalog PEOF
        The volume could not be verified completely.
        This disk needs to be repaired.
        Disk utility can’t repair this disk. Backup as many files as possible, reformat the disk,
        and restore your backed-up files.
    The problem is that I have a couple of USERS set up on this computer, and it won’t let me backup the files of the second user.  The folders are locked and I can’t access them, even though I am logged in as the administrator.
    I made a boot disk on my other computer ( a MacPro Early 2008 ) desktop computer with the DiskWarrior 4.4 updater,
    but it won’t boot on my MacBook Pro.
    How can I backup these user files so that I can copy them back once I fix the drive?
    or better yet,  How can I repair the Invalid catalog PEOF on this drive?
    Thank you in advance for your time! 
    Bill
    THIS IS THE COMPUTER
    ================
    17” MacBook Pro 2.8GHZ 4GB Ram (purchased in 2009).
    Model: A1297
    Running Mac OSX 10.9.5

    Try using Disk Utility/Restore to copy the backup to a new location. Please note that this will reformat the destination partition which will erase all data.
    Do a backup. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors.  Reformat the drive using Disk Utility/Erase Mac OS Extended (Journaled), then click the Option button and select GUID. Then re-install the OS.
    OS X Recovery
    OS X Recovery (2)
    When you reboot, use Setup Assistant to restore your data.

  • How to put database in single user mode?

    hi
    how to put database in single user mode?and what could be the impact of this to EBS R12 RUP 6.DB 10.2.0.0
    rgrds

    hsawwan wrote:
    Hi,
    Are you referring to restricted mode? If yes, please see these links/docs.
    Restricting Access to an Open Database
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/start002.htm#ADMIN11155
    Note: 1059291.6 - How to Put a Database into Restricted Mode and Verify Restricted Mode
    The impact is none of the users will be able to connect to the database/application (except for the sys user which can connect to the database). Usually, you would need to put the database in restricted mode when doing upgrade/migrate (i.e. you do not want to have active user sessions in the database during that time).
    Thanks,
    HusseinHi
    i want to mean:
    ALTER SYSTEM QUIESCE RESTRICTEDThe ALTER SYSTEM QUIESCE RESTRICTED statement may wait a long time for active sessions to become inactive. You can determine the sessions that are blocking the quiesce operation by querying the V$BLOCKING_QUIESCE view. This view returns only a single column: SID (Session ID). You can join it with V$SESSION to get more information about the session, as shown in the following example:
    select bl.sid, user, osuser, type, program
    from v$blocking_quiesce bl, v$session se
    where bl.sid = se.sid;I suspect all apps user can.t login to db?
    Edited by: new2appsdba on Aug 19, 2010 1:54 AM

  • ILIFE Upgrade from single user to family?

    I have Ilife on my Mac but now my wife wants it for hers. Can I purchase an upgrade from single user to family (5) users. Thankfully I got the family package for IWork 09'.

    Welcome To  Discussions gamman!
    I have requested that a Host, relocate your Topic to a more appropriate Forum.
    As it will be transferred, it is not necessary for you to repost elsewhere, at this time.
    But for future reference, please review the first entry How To Post A New Topic, on Feedback About Discussions.
    That is the Forum where you erroneously posted your issue.
    ali b

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • Saving from Single User Mode???

    ok, so my computer *****, and i just want to reformat the drive and start from scratchville.
    is there any way to have a USB Thumbdrive or external hard drive attached and move files from single user mode to the thumb drive to store it. and then once i get my system disk reformat or reinstall the operating system.
    i cannot login to my computer any other way besides single user. i have run FSCK and nothing.
    all im trying to do is move files so i dont have to worry about losing all of my music, photos, and documents.

    WeeManG4:
    i cannot login to my computer any other way besides single user.
    Have you tried Firewire Target Disk Mode?
    cornelius

  • How to eject DVD in single user mode

    Hi All,
    When starting my iMac, I get a white screen, the apple logo and the spinning wheel. After a while it goes away and I have just a white screen.
    I've reset PRAM, to no avail (it did do something, the computer start up sound now occurs each restart).
    I can't start-up on the Mac OS install DVD because I have a DVD in the computer already and I can't seem to eject it.
    I can't get into Open Firmware mode to eject the disk there, I'm hoping someone can give me the command to eject the disc from Single-User mode.
    Chris

    Try the methods listed in this page:
    http://reviews.cnet.com/8301-13727_7-10333570-263.html
    The method for Terminal may also work in single-user mode.

  • How to migrate DB from single node 10gR2 to RAC 11gR2 on diff platform?

    How to migrate DB from single node 10gR2 to RAC 11gR2 on different platform with possible minimum downtime? We have a situation of upgrade/migrate oracle 10gR2 single instance DB to 2-node RAC 11gR. The source OS is Solaris 10 on SPARC and the target OS is Linux (the target servers could be changed to Solaris 11 x86 if needed). What is the best solution on that?
    Thanks,

    Technically, can do the following for upgrading and migration?
    1. Create 11gR2 oracle home on the same server and upgrade the database from 10gR2 to 11gR2 by running conversion (2 hour down time?)
    2. Set up Heterogeneous Primary and Physical Standbys by RMAN. The standby is the RAC with ASM. No need down time. (from Solaris Space to Linux - this may be a problem)
    3. At the cutoff time, activate the standby DB from the RAC ASM.
    If feasible, do we have some detail guild line for each step?

  • How to copy files using single user option command??

    i want to copy all fonts in library/fonts to the original fonts folder in system/library/fonts becouse i cut all fonts in the original folder to font folder under library and the mac doesn't work,but still i can access the system from single user options, and i need to know the command to copy the fonts

    Files can be moved with mv or copied using cp or ditto. Use commands such as 'man mv' for usage instructions, or check Apple's developer documentation.
    (54261)

  • How to move iTunes from one user to another on the same Windows 7  computer

    How to move iTunes from one user to another on the same Windows 7 computer? Thanks, Bob

    Move the iTunes library to a shared area and then into the desired location. If this isn’t the default one, launch iTunes with the Shift key held down and choose that library.
    (122379)

  • How to forward alert from one user to another user and how to reject?

    Hi everybody.
    How to forward alert from one user to another user and how to reject and how to complete alert?
    Regards,
    Vinay.

    What alert are you talking about? Which version of BOE / Edge do you use?

  • N how many macs can a single user install acrobt9 pro - macOS?

    On how many macs can a single user install acrobt9 pro - macOS?

    Same as with any Adobe software: 1 license = 2 activations.
    Mylenium

Maybe you are looking for

  • Adding a carriage return in an alert box

    Hello I have a user request to display this alert box in the format below: Attention: The owner name has changed on this vessel. Current Name: xxxxxxx: New Name : yyyyyyy Please confirm or deny that this is an owner change. Confirm and Deny are the t

  • Can't see /Users/home/Library in Finder

    I can see /Users/home/Library in xterm, but not finder, why? iMac - Lion

  • HR Benefit-Claim Attachments from portal & linkage to DMS content server

    Hello DMS Experts, Our client is using standard HR functionality for telephone bill claim and attaching scanned bill copy through enterprise portal during creation of claim. Due to higher frequency of file upload there is issue that PCL4 cluster size

  • Applications not minimizing to their respective icons?

    In System Preferences, I have enabled minimization to dock icons. However, my applications refuse to minimize down, the only one that still does being Finder. How do I re-enable minimization in Lion?

  • Contacts not deleting -- how to erase?

    There are about 1000 contacts on my iPhone that won't delete no matter what I do. Some are duplicates of contacts I have, others are contacts I've deleted from my Address Book -- but they persist on the iPhone. I've restored the iPhone software sever