defaults write com.apple.doc ...

zerorex

Registered
Just a quick question, I havent been able to get:

defaults write com.apple.dock orientation Right

to work. I am working from PB, and I was under the impression that this term hack worked on PB. Any ideas?
 
It dont work in pb, only in newr builds. But I think that is removed for now in the later build to.
 
I haven't been able to get the "defaults write com.apple.dock orientation Right" command to work either; I am running build 4k78.

A few notes about the command (starting from the manual. Type "man defaults" at the terminal to get the whole thing.)

"DESCRIPTION
defaults allows users to read, write, and delete Mac OS X user defaults from a command-line shell."

You can also "defaults read" before you write. This will tell you if the default already exists (from the creator or wherever) if you haven't already tried to write over or create it. Since I discovered this AFTER I tried to reoreint the dock, I don't know if this build supports it or not.

 
Just found this elswhere on the site:
http://www.macosx.com/forums/showthread.php?threadid=2174

Basically what it says is:
"Try this (from http://www.macplus.fr)
$> su
type the root password.
$> open -e /System/Library/CoreServices/Dock.app/Contents/Resources/French.lproj/DockMenus.plist
The file opens with TextEdit, find in the text "1013", then replace "command" with "menu" above the selected line, do the same by finding "1014", save. "

Make sure and replace the "French.lproj"with your language, I.E. "English.lproj".

---------------------------------------

Some-Other-Else-where on the site

http://www.macosx.com/forums/showthread.php?threadid=2135

you can find info on the root password, there are some issues. Here again is what it says:


"When [a user] says that root is disabled, he means that there's by default no usable password for root, so that you can't su. What you need to do is add your own password to the root entry in NetInfo Manager.

Here's what to do:

1. Open up NetInfo Manager in Utilities. Find the users group, and within that, the root entry. You'll see a table of properties and values in the bottom half of the window. You'll see "*" entered for passwd. You need to replace this with an ENCRYPTED (not plaintext) version of the root password you want to assign.

2. In a shell, use htpasswd to generate an encrypted password for you. You can use the flag -n to force htpasswd to output the results to the screen. You can also use the flag -b to simplify the process by including the password on the command line:

% htpasswd -nb anylogin mypassword
anylogin:fu9fRgdzVSRB2

3. Copy the string that follows the colon: this is your encrypted password.

4. Back in NetInfo Manager, click the lock and login as an admin-level user to make changes. Then double-click on the "*" entry for the root password. You'll be able to paste your new encrypted password. Now save your changes and quit NetInfo Manager.

5. Test your new password by su-ing in the shell.

Hope this works for you"

----------------------------------------

Me too, worked nicely for me.

[Edited by glowurm@mac.com on 03-19-2001 at 10:12 PM]
 
Originally posted by glowurm@mac.com
Just found this elswhere on the site:
http://www.macosx.com/forums/showthread.php?threadid=2174

Basically what it says is:
"Try this (from http://www.macplus.fr)
$> su
type the root password.
$> open -e /System/Library/CoreServices/Dock.app/Contents/Resources/French.lproj/DockMenus.plist
The file opens with TextEdit, find in the text "1013", then replace "command" with "menu" above the selected line, do the same by finding "1014", save. "

Make sure and replace the "French.lproj"with your language, I.E. "English.lproj".

---------------------------------------

Some-Other-Else-where on the site

http://www.macosx.com/forums/showthread.php?threadid=2135

you can find info on the root password, there are some issues. Here again is what it says:


"When [a user] says that root is disabled, he means that there's by default no usable password for root, so that you can't su. What you need to do is add your own password to the root entry in NetInfo Manager.

Here's what to do:

*snipp*



GAAAH. that was the hardest way I ever seen..

just do this.

login as your normal user when you installed X.

open terminal

type in "sudo passwd root" w/o the ""

then you'll be prompted to first type in your password then the roots.. Then your all done!

/glemme
 
Originally posted by glowurm@mac.com
This will take the place of the procedure above and have the same result?


Yes, but it is a heck of a lot easier. And you don't have to have the same pass as your default user..
 
And I followed APPLE's instruction in the manual to boot from the OS X Cd and select reset password from the menu of the installer and rebooted. It worked but now i know some new tricks!! Thanks all!!

-Erik
 
The easy hack is temporary, and does not enable the actual root user. There are some things you have to really enable root in order to do.
 
Well you guys may mess around with the terminal, but there is another way; a simpler way and problably also the way that Apple wants you to do it:

Launch NetInfo Manager under one of the menus (file I belive) there is a submenu with the option "Authenticate", choose it. Type password. Check the same submenu for "Enable root user" select it. Type in a new password. You're done.


t
 
Back
Top