Reset Mac OS X Admin Password

Forgotten the admin password on your Mac? You can reset the welcome system that you usually get immediately after installing OS X (the welcome video followed by the lengthy, intrusive set of forms) to create a new admin account using the following steps:

  1. Reboot
  2. Hold command + s as soon as you hear the chime
  3. You will be presented with a super user prompt, enter the following:
mount -uw /
rm /var/db/.AppleSetupDone
reboot

After rebooting and following the welcome process, you will have a new admin account. Login as the new admin and reset the old admin’s password, you can then log in as the old admin and delete the new admin account.

Create Your Own Local Mirror of the Ubuntu Repositories

If you have several Ubuntu machines on a network, you might like to mirror the Ubuntu repositories locally so that you’re not wasting bandwidth downloading the same packages from the internet for every single machine. If you’ve already got an Ubuntu server up and running for some other task (such as ldap+kerberos+nfs type server, or a local web server) it’s very easy to add mirroring repository functionality to it. All you need is a spare ten minutes and ~35GB of free space for main, universe and multiverse and ~70GB if you also want the source packages (deb-src). Continue reading Create Your Own Local Mirror of the Ubuntu Repositories

Ubuntu 10.10 SBS (Small Business Server) Setup: Part 7 – Setting Up Clients

This is part of a guide to setting up an Ubuntu server for a small/medium business. The server will provide DHCP, DNS, LDAP, Kerberos and NFS services such that users can login to any machine on the network and all their files and settings will be the same across the entire network.

The clients are going to be configured so that they mount home directories from the server and verify usernames/password using ldap and kerberos. Continue reading Ubuntu 10.10 SBS (Small Business Server) Setup: Part 7 – Setting Up Clients

Ubuntu 10.10 SBS (Small Business Server) Setup: Part 6 – NFS

This is part of a guide to setting up an Ubuntu server for a small/medium business. The server will provide DHCP, DNS, LDAP, Kerberos and NFS services such that users can login to any machine on the network and all their files and settings will be the same across the entire network.

This section will help you configure NFS using Kerberos to secure it. Continue reading Ubuntu 10.10 SBS (Small Business Server) Setup: Part 6 – NFS

Ubuntu 10.10 SBS (Small Business Server) Setup: Part 5 – Kerberos

This is part of a guide to setting up an Ubuntu server for a small/medium business. The server will provide DHCP, DNS, LDAP, Kerberos and NFS services such that users can login to any machine on the network and all their files and settings will be the same across the entire network.

It’s time to install and configure Kerberos. Continue reading Ubuntu 10.10 SBS (Small Business Server) Setup: Part 5 – Kerberos

Ubuntu 10.10 SBS (Small Business Server) Setup: Part 4 – OpenLDAP Account Management

This is part of a guide to setting up an Ubuntu server for a small/medium business. The server will provide DHCP, DNS, LDAP, Kerberos and NFS services such that users can login to any machine on the network and all their files and settings will be the same across the entire network.

Now you have OpenLDAP up and running, it’s time to learn how to manage your users and groups. Continue reading Ubuntu 10.10 SBS (Small Business Server) Setup: Part 4 – OpenLDAP Account Management

Ubuntu 10.10 SBS (Small Business Server) Setup: Part 3 – OpenLDAP

This is part of a guide to setting up an Ubuntu server for a small/medium business. The server will provide DHCP, DNS, LDAP, Kerberos and NFS services such that users can login to any machine on the network and all their files and settings will be the same across the entire network.

OpenLDAP is a directory service. Think of it as a database for storing all your users, their passwords and groups. In time you can use it to store much more, but initially we’re going to use it as a centralised authorisation system. Clients will check usernames and permissions against those stored in the directory on the server. Though it is also possible to store passwords in LDAP and use it for authorisation, we’ll be using Kerberos for this purpose. Continue reading Ubuntu 10.10 SBS (Small Business Server) Setup: Part 3 – OpenLDAP

Ubuntu 10.10 SBS (Small Business Server) Setup: Part 2 – NTP

This is part of a guide to setting up an Ubuntu server for a small/medium business. The server will provide DHCP, DNS, LDAP, Kerberos and NFS services such that users can login to any machine on the network and all their files and settings will be the same across the entire network.

Your server will automatically request the time from the Ubuntu NTP servers on every boot… but hopefully you’re not going to reboot it very often. It is useful for the server time to be correct when debugging and it is ESSENTIAL for the server and all the clients on the network to have the same time (+-5mins by default) for Kerberos to work. Continue reading Ubuntu 10.10 SBS (Small Business Server) Setup: Part 2 – NTP

Ubuntu 10.10 SBS (Small Business Server) Setup: Part 1 – DHCP and DNS

This is part of a guide to setting up an Ubuntu server for a small/medium business. The server will provide DHCP, DNS, LDAP, Kerberos and NFS services such that users can login to any machine on the network and all their files and settings will be the same across the entire network.

The first thing to get your server to do is act as a DHCP and DNS server. This will allow you to map hostnames to IP addresses (and vice versa!) automatically. This means all network clients will know that neo.danbishop.org and 192.168.0.2 are one and the same. This is ESSENTIAL if you plan to use Kerberos later on. Continue reading Ubuntu 10.10 SBS (Small Business Server) Setup: Part 1 – DHCP and DNS