Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

After a power-failure, my Xserve won't let me log in on the login screen. I can still SSH into the box and access its other services, but the login box just shakes when I write either a local username and password or an ldap based username and password (this server is the LDAP server). Any suggestions on how I can go about solving this problem?

Cheers

Nik

share|improve this question
    
I've booted with a boot CD and reset the passwords for root and myself, but still the login window just shakes when I try to log on –  niklassaers Mar 31 '10 at 7:27
    
With no solution found, I'm reformatting and going for the time machine backup –  niklassaers Mar 31 '10 at 8:12

3 Answers 3

up vote 1 down vote accepted

Could the power failure be a red herring? Were you messing with Service ACLs recently? You could have disallowed all users from using the GUI with a Service ACL.

Edit:
If you can SSH in, you can add yourself back into the loginwindow access group, by doing something like this:

sudo dseditgroup -o edit -a $USER -t user com.apple.access_loginwindow

That is, you're using sudo to use superuser powers to run dseditgroup to edit your DirectoryServices groups. The operation is an edit, you're adding user $USER (whoever you SSH'd in as), the record type is user, and the group to add it to is com.apple.access_loginwindow.

After that, once you've got GUI access again, I'd recommend using the Server Admin tool in the GUI to review and edit your Service ACLs (SACLs). The methods provided to edit SACLs from the command-line leave a lot to be desired.

share|improve this answer
    
I didn't, but I guess we won't know as I had the disks formatted. All I've got left is the Time Machine backup. But I'm suspecting you might be right, that there's been something else going on. For people coming by this questions later, could you suggest how to remove such a disallowing via command line via SSH? –  niklassaers Apr 2 '10 at 18:40
    
Okay, I've updated my Answer. –  Spiff Apr 2 '10 at 19:01

Can you login as the root user? If so, login as root and launch ServerAdmin and check the OpenDirectory status. Is OpenLDAP running? What about the password server?

Also, can you use ServerAdmin or Workgroup Manager to administer the server from another Mac?

Also, what version of MacOS X Server are you using?

share|improve this answer
    
When I SSH in, I can "sudo zsh" to root. I cannot log in as root from the login screen, at least not with the passwords used for this server. Can I run ServerAdmin from the command line? I'm not too familiar with OpenLDAP, does it have a separate password server? If so, what's its name so I can poke around for its logs? I'm running Snow Leopard 10.6.2 Thank you so much for your time Nik –  niklassaers Mar 31 '10 at 6:40

Another option is to try >console in the user field which will then give you a console screen to login as and then run the dseditgroup command above.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.