We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Backup
Barracuda Backup

How to Set Up a Root Account to Back Up Macintosh OS X

  • Last updated on

The articles in this section refer to Barracuda Backup Legacy Release firmware or newer, and Macintosh OS X.

Barracuda Networks recommends ensuring the latest hotfixes, patches, and updates are installed on your data sources.

By default, the root account on Macintosh OS X Servers is disabled. If a user uses the admin account to back up content to Barracuda Backup, they may encounter a warning message stating that some files cannot be backed up. To resolve this issue, Barracuda Networks recommends using the root account for backups as the root account has full permission on the disk and is able to back up the server with limited warnings.

Create a Root Account

Set up a root account based on your software release.

El Capitan OS X (10.11 and Higher)
  1. From the Apple menu, click System Preferences > Sharing.
  2. Select Remote Login. For allow access for, select All users.
OS X Yosemite/El Capitan OS X (10.10 and Higher)
  1. From the Apple menu, click System Preferences.
  2. From the View menu, click Users & Groups.
  3. Select Remote Login. For allow access for, select All users.
Mac OS X v10.6.x
  1. From the Apple menu, click System Preferences.
  2. From the View menu, click Accounts.
  3. Click the lock and authenticate as an administrator account.
  4. Click Login Options, and click Edit at the bottom right of the screen.
  5. Click Open Directory Utility, and in the Directory Utility, click the lock.
  6. Enter the administrator account name and password, and click OK
  7. From the Edit menu, click Enable Root User.
  8. Enter the root password you wish to use in both the Password and Verify fields, and click OK.
Mac OS X v10.5.x
  1. From the Finder's Go menu, choose Utilities, and open Directory Utility.
  2. Click the lock in the Directory Utility window.
  3. Enter an administrator account name and password, and click OK.
  4. From the Edit menu, click Enable Root User.
  5. Enter the root password you wish to use in both the Password and Verify fields, and click OK.
Mac OS X v10.3.x through v10.4.x
  1. Click the Finder icon in the Dock.
  2. From the Go menu, click Applications.
  3. Open the Utilities folder.
  4. Open the NetInfo Manager utility.
  5. Click the lock in the NetInfo Manager window.
  6. Enter the administrator account name and password, and click OK
Mac OS X 10.2

For Mac OS X 10.2 and later, choose Enable Root User from the Security menu.

Mac OS X 10.0 and 10.1
  1. From the Domain menu, point to Security, and click Enable Root User.
  2. If you have not previously set a root password, an alert box displays the message NetInfo Error, indicating that the password is blank. Click OK.
  3. Enter the root password you wish to use, and click Set.
  4. Enter the password again, and click Verify.
  5. Click the lock to prevent changes.

Log in as the Root User

  1. Open the /etc/sshd_config file, and navigate to the line PermitRootLogin.
  2. Uncomment the line, and set the value to yes:
    PermitRootLogin yes 
  3. Run the following commands to stop and restart sshd:
    launchctl stop com.openssh.sshd
    launchctl start com.openssh.sshd  

You can now log in using the root account based on your software release.

Mac OS X v10.2 and Later
  1. If you are logged in, choose Log Out from the Apple menu.
  2. If you are logging in from a list of usernames with pictures, click Other.
  3. In the Name field, type: root
  4. In the Password field, type the password you defined earlier.
Mac OS X v10.0 to v10.1.5

After enabling the root user, you must log out from Mac OS X and log back in as the root user. Logging in to Mac OS X from a list of usernames is the default behavior for later versions of Mac OS X. Logging in by typing your username in a text entry field is the default behavior in earlier versions of Mac OS X. You can choose either method in Login preferences. The root user does not appear in the list, so you need the text entry option. If necessary, follow these steps to change the login method to text entry:

  1. From the Apple menu, click System Preferences.
  2. From the View menu, click Login.
  3. Click the Login Window tab.
  4. Select Name and password entry fields, and complete the steps in the next section to log in as root account.
  1. If you are logged in, choose Log Out from the Apple menu.
  2. In the Name field, type: root
  3. In the Password field, type the password you defined earlier.

Set up SSH Key for Mac

For each local Barracuda Backup appliance, identify the data sources that are to be backed up. There may be more than one data source on each server, and each can have unique backup characteristics.

  1. Log in to the Barracuda Backup web interface, and select the associated Barracuda Backup appliance in the left pane.
  2. Go to the Backup > Sources page, and click Add a Computer to identify the computer.
  3. Enter the IP address of the Mac Server.
  4. From the Computer Type drop-down menu, select Mac OS X.
  5. In the Mac OS X Information section, enter root in the Username field.
  6. Download the SSH Key installer, and run the setup.
  7. Once the key is installed, save the settings. Click Save.
  8. The Add Data Source page displays.
  9. In the Add to Schedule section, select an existing schedule from the drop-down menu, or click Add New to create a new schedule.
  10. Select whether to replicate data to Barracuda Cloud Storage.
  11. Select whether to replicate data to another Barracuda Backup appliance.
  12. Click Save.
  13. Go to the selected schedule on the Backup > Schedules page. In the Items to Back Up section, select the data source to back up all content, or click and expand the data source to select individual folders for backup.
  14. Click Save.
Last updated on