Tag Archives: AFP

Image Build – Mac – AFP location files for each graduating class

Students have network file space on our Achilles server based on their graduating year.  I presently provide links to these locations in a common area on the Mac image.

in /Library/Application Support/Williams/Network File Space/Achilles are a series of .afloc files based on student graduating year.  Each year when the image is created I have to add a file for the next class of students.

One way to do that is:

  • sudo -s
  • cd /Library/Application\ Support/Williams/Netowk\ File\ Space/Achilles
  • cp “2015 Students.afploc” “2016 Students.afploc”
  • vi  (or some other way edit) “2016 Students.afploc” to replace “15Students” with “16Students”

It is tempting to remove the older files but sometimes students start as in one class but then have to extend their stay so remove these with care.

Lion – AFP – Change secutiy setting to allow connections to legacy file servers

Lion has upped the anti on AFP security. To connect to older, legacy Novell servers one needs to do the following …

sudo chmod o+w /Library/Preferences
sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1
(creates the file)

Connect to an AFP server like MacSus to populate file created above

sudo defaults read /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams
(to see a list of the disabled login methods)
sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array
(to remove all from disabled list)
sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array “Cleartxt Passwrd” “MS2.0”
(to keep a few disabled – I don’t know which are the problem so I undisable all of them)
sudo defaults read /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams
(to confirm the change)
sudo chmod o-w /Library/Preferences
(to reset the directory prefs)

For details see:
http://support.apple.com/kb/HT4700