30.5 Changing the Location of the Temporary Location on a Linux Server

You can store your data on a local mount or on a network share such as NFS, SMB, or CIFS and mount the share in your temporary directory to access your data.

You can also create a symbolic link on your local hard drive if you want to store your data elsewhere on your local device. However, the existing temporary location directory must be deleted.

  1. Run the following command to create the symbolic link to the new directory where you want to store the data:

    ln -s another-temporary-directory-on-device /var/temp/

    See the ln(1) man page for more information about how to symbolically link directories.

  2. ZENworks requires that the ZENworks user has complete ownership rights on the directory to which you have created the symbolic link. Run the following command to make the ZENworks user the owner of this directory:

    chown zenworks:zenworks -R /var/temp/

    See the chown(1) man page for more information about how to change ownership of directories.

The following sections provide information on managing content repository locations on Linux.

30.5.1 Mounting a Share

After configuring a share on a remote machine, you can mount it from /var/temp/. Stop all ZENworks Services before mounting the share

Use the following command to mount the share:

mount -t cifs -o username=username //example.machine.com/share_name /var/temp/

In the command, //example.machine.com/share-name is the share to mount and /var/temp/ is the mount point.

Start all ZENworks Services after the share is mounted.

30.5.2 Unmounting a Share

The mount that you created in Mounting a Share is temporary; the share is unmounted when the operating system is shut down or rebooted. You can also use the following command to manually unmount the share:

umount /var/temp/

Stop all ZENworks Services before unmounting the share and start all ZENworks Service after the share is unmounted.

30.5.3 Creating a Permanent Mount

Stop all ZENworks Services before creating a permanent mount and start all ZENworks Service after the permanent mount is created.

To ensure that the mount occurs each time the Linux server starts, you must add the following entry to your /etc/fstab configuration file:

//example.machine.com/share_name /var/temp/ cifs credentials=path_to_credentials_file 0 0

The credentials file listed in the command contains a username and password. For more information, see the mount.cifs(8) man page. The format of the credentials file is:

username=value
password=value