Creating a Home Directory for a New User with Mac OS 10.3.8 and Samba (Hopefully things won't be so arcane or onerous in the future; we'll need to port a couple of libraries to make the following unnecessary) 1. Create a domain account for the user on the Domain-controller: i. Open "Active Directory Users and Computers" ii. Right-click on "_Default User", then left-click "Copy" iii. Provide necessary information by following on-screen instructions 2. On the Samba server 3. cd /usr/local/samba/lib 4. Edit "master.passwd", which is the same format as a typical UNIX master.passwd file: i. Copy the last entry of the file to the last line, which should be blank; e.g.: Last entry->tuser1:*:10023:10023::0:0:User:/Users/tuser1:/usr/bin/false Blank line-> Changes to: Formerly, last entry->tuser1:*:10023:10023::0:0:User:/Users/tuser1:/usr/bin/false Formerly, blank line->tuser1:*:10023:10023::0:0:User:/Users/tuser1:/usr/bin/false ii. Add a new blank line following the new last entry (failure to do so may cause logins to stop); e.g.: Formerly, last entry->tuser1:*:10023:10023::0:0:User:/Users/tuser1:/usr/bin/false Formerly, blank line->tuser1:*:10023:10023::0:0:User:/Users/tuser1:/usr/bin/false New blank line-> iii. Change the appropriate fields of the newly created entry: 1. The username (we'll assume that our new user has the username of ) 2. The user id (UID) (increment of one from the previous entry) 3. The group id (GID) (increment of one from the previous entry) 4. The home directory (of the form "/Users/") From the above we have: Formerly, last entry->tuser1:*:10023:10023::0:0:User:/Users/tuser1:/usr/bin/false Formerly, blank line->newuser:*:10024:10024::0:0:User:/Users/newuser:/usr/bin/false New blank line-> iv. Save the changes and exit the editor 5. Edit the file "group" i. Copy the last entry of the file to the last line, which should be blank; e.g.: Last entry->tuser1:*:10023: Blank line-> Changes to: Formerly, last entry->tuser1:*:10023: Formerly, blank line->tuser1:*:10023: ii. Add a new blank line following the new last entry (failure to do so may cause logins to stop); e.g.: Formerly, last entry->tuser1:*:10023: Formerly, blank line->tuser1:*:10023: New blank line-> iii. Change the appropriate fields of the newly created entry: 1. Group name (same as the username) 2. GID (same as the GID in "master.passwd") From the above we have: Formerly, last entry->tuser1:*:10023: Formerly, blank line->newuser:*:10024: New blank line-> iv. Save changes and exit the editor 6. Create the user's home directory, and set permissions: i. cd /Users ii. mkdir iii. chown : iv. chmod -R 700