<$BlogRSDURL$>
Apple Mac OS X FAQ
Tuesday, December 24, 2002
 
Static automount doesn't work!
Static automount doesn't work!

--> Console on client may show "servername:/path/to/automount - Permission denied"

--> 10.2 and 10.2.1 Server have a problem with static automounts that contain a trailing slash ("/"). Try changing "/Network/Applications/" to "/Network/Applications". (This is fixed in 10.2.2 Server.)

--> In Server Settings, Configure Apple File Services. Make sure "Enable guest access" is on, and if necessary, increase the allowed number of guest connections (or make it unlimited).
 
Change hostname after install?
Change hostname after install?

--> Safest way is to re-run Setup Assistant. Only way to re-run Setup Assistant is to fool it into thinking that it hasn't been run already.

1. Boot into single-user mode (command-S at startup chime)
# /sbin/mount -uw /
# cd /var/db
# rm .AppleSetupDone
# reboot
 
wheel group?
wheel group?

--> 10.1 put administrators in "admin" and "wheel" groups. 10.2 only puts administrators in "admin". If you upgrade from 10.1 to 10.2, all your old administrators will still be in "wheel", which is useless but harmless; new administrators you create after upgrading to 10.2 will only be in "admin".
 
SMB shares not showing up in "Connect to Server"?
SMB shares not showing up in "Connect to Server"?

--> Computers running SMB (Windows file sharing) can take up to 24 hours to become browseable. Real Windows machines behave the same way.

 
man -k not working?
man -k not working?

--> You need to manually create your whatis database once.

sudo /usr/libexec/makewhatis

(After that, it will be updated by the weekly cron script.)
 
Deleting the NetInfo database
deleting the NetInfo database

--> In 10.1, if you booted into single-user mode and completely deleted your NetInfo database (rm -rf /var/db/local.nidb) and rebooted, 10.1 would create a new NetInfo database with no users. 10.2 does this, then bumps you back into the Setup Assistant to create a new administrator account.
 
Network Image Utility crashes when ejecting disc!
Network Image Utility crashes when ejecting disc!

--> Known bug. Generally occurs when using eject key on newer keyboards.

--> Workaround: switch to Finder and drag disc to trash to eject.
 
No drives in "All" tab in Workgroup Manager!
No drives in "All" tab in Workgroup Manager!

--> This is related to NFS resharing. In Workgroup Manager, unshare your /inst share (from /nfs_reshares/inst), then log out, log in as root, and delete the actual /nfs_reshares directory. No need to reboot.
 
Setting up non-OSXS DHCP server to provide NetInfo configuration
Setting up non-OSXS DHCP server to provide NetInfo configuration

You will want to configure the DHCP server to provide options 112 (NI parent server addresses) and option 113 (NI parent server tag). The one change is that we support multiple parent server addresses (len==4 for one address, len==8 for two addresses, and so forth).

For more information on DHCP extensions, see http://www.iana.org/assignments/bootp-dhcp-parameters

The NetInfo Parent Server Address option is used by clients to obtain the address of the parent server for their local NetInfo domain. The tag of the NetInfo parent server may be obtained through the NetInfo Parent Server Tag option. If that option is not present, a default value of "network" will be used for binding the local domain to a parent server.

The length of this option is 4.

Code Len Address
+-----+-----+-----+-----+-----+-----+
| ?? | 4 | a1 | a2 | a3 | a4 |
+-----+-----+-----+-----+-----+-----+

The NetInfo Parent Server Tag option is used by clients to obtain the tag of the NetInfo parent server, if the tag is different from the default value "network".

The minimum length of this option is 1.

Code Len Tag
+-----+-----+-----+-----+---
| ?? | n | c1 | c2 | ...
+-----+-----+-----+-----+---

 
Seeing /NetInfo/DefaultLocalNode instead of /NetInfo/root on Automount tab!

Seeing /NetInfo/DefaultLocalNode instead of /NetInfo/root on Automount tab!

--> Open Directory Assistant failed, your network domain is corrupted.

--> Possible solution: delete the network domain in NetInfo Manager, reboot, re-run Open Directory Assistant.

--> Alternate solution: delete the network domain in single-user mode.

# rm -rf /var/db/netinfo/network.nidb
# reboot

--> Solution #3:
1. Create a new administrator in the local user list ("local", not "/NetInfo/root").
2. Log out, log in as the new administator.
3. Re-run Open Directory Assistant as the new administrator.
4. ODA will say that the new administrator will be the administrator for this domain.
5. Reboot when prompted.
Upon reboot, you should see /NetInfo/root in Automount tab again, and be able to create automounts in your domain.
 
Lock a file on the command line?
Lock a file on the command line?

--> Lock:

chflags -R uchg filename

--> Unlock:

chflags -R nouchg filename

--> man chflags for more details
 
Force DHCP renewal?
Force DHCP renewal?

--> Graphically:

1. Open Network pane of System Preferences
2. Choose ethernet port
3. Change from "Using DHCP" to "Manually"
4. Click "Apply now"
5. Change from "Manually" to "Using DHCP"
6. Click "Apply now"

--> From command line:

$ sudo ipconfig set en1 NONE
$ sudo ipconfig set en1 DHCP

(Change "en1" to the appropriate ethernet port.)
 
Accounts pane takes forever to open? • Applications bounce for long time when launching? •
Accounts pane takes forever to open?
Applications bounce for long time when launching?
Startup hangs for long time on "Initializing Directory Services"?

--> DHCP server is sending "127.0.0.1"/"local" as NetInfo parent. Bug in 10.2.1 thinks this means that the local machine is really a NetInfo parent, and spends lots of time trying to bind to itself before giving up.

--> Solution: Go to /Applications/Utilities/Directory Access and uncheck "NetInfo".

--> Technote: http://docs.info.apple.com/article.html?artnum=75425
 
Can't mount NFS share!
Can't mount NFS share!

--> Bug in 10.2.1 Workgroup Manager ignores last line in client list when exporting via NFS.

--> Workaround: add extra dummy "127.0.0.1" after all the IP addresses you care about.
 
Eject CD from command line?
Eject CD from command line?

--> diskutil eject /Volumes/WhateverTheNameIs
 
Create Group Folders from command line?
Create Group Folders from command line?

--> /usr/sbin/CreateGroupFolder
 
Default permissions on new files created by graphical applications?
Default permissions on new files created by graphical applications?

--> (unconfirmed) Add appropriate umask command in /etc/rc just before SystemStarter command
 
Set/Reset root password without install CD?
Set/Reset root password without install CD?

--> You can do this in single-user mode (command-S at startup chime)

# SystemStarter
...
... wait until you see "Starting NetInfo", then hit Ctrl-C
# passwd root
... enter new password twice
# reboot
 
NFS mount reshared over AFP going all wacky (files disappearing when you click on them)!
NFS mount reshared over AFP going all wacky (files disappearing when you click on them)!

--> Confirmed bug, allegedly fixed in 10.2.3.

--> Workaround: reshare over SMB instead of AFP.

--> Also, on the NFS server, make sure /inst is the only share exported to "world".
 
Can't log in to Server Settings ("Open Transport error")!
Can't log in to Server Settings ("Open Transport error")!

--> Can be caused by lack of network connection, or bad network connection. Make sure your server's network cable is firmly plugged into the hub, and that the port on the hub is good. Try switching ports.

--> Check in Network pane of System Preferences that the IP address given for the router is reachable. Once the uplink is disconnected, the router should be the student's server itself, not the instructor's server.
 
Can't log in to Server Settings ("badly formed DNS name")!
Can't log in to Server Settings ("badly formed DNS name")!

Make sure DNS is configured properly and running. You can log in to Server Settings at 127.0.0.1 to check DNS service status.
 
Can't log in to Workgroup Manager after setting up Password Server!
Can't log in to Workgroup Manager after setting up Password Server!

Open Directory Assistant is supposed to change the administrator's account to be using Password Server, but sometimes it doesn't. You can fix it with the undocumented NetInfo Setup Tool utility:

$ sudo NeST -hostpasswordserver shortname password

(Change "shortname" and "password" accordingly.)

Powered by Blogger