Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I login as root?

I have enabled the root user and I go to the login screen and tap other and type in "root" and my root password, and it looks like it's about to switch and then I get the login screen with all the icons.


This is all that shows up in the console:

7/19/12 3:32:46.092 PM SecurityAgent: User info context values set for root


Though I was getting this in the console before I rebooted:

authorizationhost: Failed to authenticate user <root> (error: 9).


I've tried disabling and re-enabling the root user but same problem. Anyone have any ideas how to fix this?

Posted on Jul 19, 2012 12:35 PM

Reply
22 replies

Jul 19, 2012 8:33 PM in response to gujamin

How are you enabling/disabling the root user? Through Directory Utility?


I do remember seeing some problems with logging in as root more than once in early Lion releases, but assumed it had been fixed. Try searching the forum for more on that.


Meanwhile, you can always get into root via Terminal if you don't need the GUI. In Terminal, type


login


press 'return', enter


root


press 'return' again and type in the password and one more 'return'.

Jul 20, 2012 4:39 AM in response to gujamin

Where is the folder you wish to change the icon for?


Are you trying to just change an icon for a single folder, or are you trying to change the default icon on a system folder?

Either way, I don't think you need root access to do it. At the very least it would be easier to sudo chown in the terminal to you, make changes, then sudo chown to whatever the ownership was.


If you are trying to paste an icon onto the image in Get Info, it won't work. You get the same type as the thing you are pasting. You have to paste an image onto that drop zone in Get Info.

Jul 20, 2012 8:19 PM in response to Barney-15E

/Library/WebServer/Documents


I had an icon on it and then I migrated my computer to a new MacBook Pro retina and the icon reverted. I have a folder with the same icon and I tried copy and pasting over and that didn't work. I tried copying over the Icon file, but that didn't work either.


I'm sure I can find other ways of doing that, but I'm concerned about the odd behavior of not being able to log in as root regardless :-/

Jul 20, 2012 9:42 PM in response to gujamin

What Barney said is valid. There are other ways to accomplish an icon change. Terminal is also available. I also know the irritation of not being able to do something on your very own puter when you should be able to. (logging in as root, for instance)


Look at this thread. Seems to be same problem as you. Read both pages before you do anything as you do not want to make a mistake within Terminal or Directory Utility as apparently some posters did. Several solutions are available throughout the thread. Backups at times like this are always good as some risk is most certainly there.



https://discussions.apple.com/thread/3301036?start=0&tstart=0


RM

Jul 21, 2012 5:03 AM in response to gujamin

You shouldn't need root to do that, but you must actually copy the image, not the icon or the folder. If you Get Info on the one you want, try copying the image in the Preview and drop that in the icon drop zone for the one you want to change. None of the problems you see are attributable to permissions, but how the icon image is managed. If you drop an icon file on the drop zone, all you get is the standard icon of an icon file, not the icon in the file itself. I think in previous systems, it worked as you expect, but somewhere along the line it changed.


I managed to copy the badge from my Sites folder onto the Webserver Documents folder using the copy from one Get Info and paste to the other. It asked for an authentication.


You have to copy and paste an image onto that spot in Get Info. You should also be able to copy the badge from one folder's Get Info window and Paste it into the badge of the destination Get Info window. Sometimes you have to copy the Preview Image


Seems to me not being able to log in as root is a benefit, not a problem. Unless other problems appear.

Jul 21, 2012 4:20 PM in response to Barney-15E

I do have admin priviledges. Reparing only resulted in the following and it still doesn't work.



Repairing permissions for “Macintosh HD”

User differs on “Applications/.DS_Store”; should be 0; user is 501.

Permissions differ on “Applications/.DS_Store”; should be -rw-rw-r-- ; they are -rw-r--r-- .

Repaired “Applications/.DS_Store”

Group differs on “Library/Preferences/com.apple.alf.plist”; should be 80; group is 0.

Repaired “Library/Preferences/com.apple.alf.plist”

Permissions differ on “usr/share/zoneinfo/America/New_York”; should be -rw-r--r-- ; they are -rwxr-xr-x .

Repaired “usr/share/zoneinfo/America/New_York”


Permissions repair complete


Jul 21, 2012 5:53 PM in response to gujamin

Sorry, I misread that. Thought it said you didn't.


Can you list the permissions on your /Library/WebServer folder?

Use this command in Terminal

ls -ale /Library/WebServer


Post the output.


However, if you can't also enable the root user, something else is not quite right.


Try making another Admin user account and then try to change that folder icon.

How can I login as root?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.