Submit a ticketCall us

Don’t fall victim to a ransomware attack
Backups are helpful, but sometimes that’s not enough to protect your business against ransomware. At our live webcast we will discuss how to protect against ransomware attacks with SolarWinds® Patch Manager and how to leverage log data to detect ransomware. Register now for our live webcast.

Home > Success Center > Log & Event Manager (LEM) > LEM upgrade error: Cannot create directory '/tmp/smb' : Permission Denied

LEM upgrade error: Cannot create directory '/tmp/smb' : Permission Denied

Updated: September 13, 2016

Overview

This article provides steps on how to fix permissions issue on /var/tmp, as a result of a failed LEM upgrade.

Environment

Any LEM version could be affected.

Cause 

In the event that a failed upgrade did change the permissions on the /tmp directory, the directory permissions need to be changed. This could also cause an issue trying to bring in the upgrade from the network share (location of the upgrade files), which is mounted to /tmp/smb.

You can check the permissions using a root session to the LEM, and looking ar the root of the filesystem.

ls -al  /

drwxrwxrwx 15 root root  4096 Aug 31 16:36 tmp

 

or under the /tmp directory, it should look like this:

 ls -al  /tmp

total 72
drwxrwxrwx 15 root   root   4096 Aug 31 16:38 .
drwxr-xr-x 23 root   root   4096 May  4  2013 ..
drwxrwxr-x  4 trigeo trigeo 4096 Aug 19 16:32 0-ROOT
drwxrwxr-x  2 trigeo trigeo 4096 Aug 19 16:33 Console
-rw-r--r--  1 root   root      6 Aug 31 05:25 contego-archive.pid
-rw-r--r--  1 root   root      6 Aug 31 05:25 contego-backup.pid
-rw-r--r--  1 root   root      6 Aug 31 05:32 contego-logbackup.pid
drwxrwxr-x  2 trigeo trigeo 4096 Aug 19 15:32 GenericDefaultDBWriter
drwxr-xr-x  2 cmc    trigeo 4096 Aug 31 13:29 hsperfdata_cmc
drwxr-xr-x  2 root   root   4096 Aug 31 16:17 hsperfdata_root
drwxr-xr-x  2 trigeo trigeo 4096 Aug 31 16:17 hsperfdata_trigeo
drwxrwxr-x  2 trigeo trigeo 4096 Jun  2 06:41 InDepth
drwxrwxr-x  2 trigeo trigeo 4096 Aug 19 16:33 NewRules
drwx------  4 root   root   4096 Aug 19 15:32 par-root
drwxrwxr-x  2 trigeo trigeo 4096 Aug 19 16:33 Rules
drwxrwxr-x  2 trigeo trigeo 4096 Aug 16 18:14 Standard_Local_Database
drwx------  2 root   root   4096 Aug 19 15:31 vmware-root

 

For your information, permissions look like this:

d rwx rwx rwx  ............

The first character a "d" means directory, but could be a "-" to indicate a file.
The first set of "rwx" is the owner permissions to the file:  "r" read access, "w" write access, "x" execute access.
The second set of "rwx" is the group permissions to the file:  "r" read access, "w" write access, "x" execute access.
The third set of "rwx" is all others permissions to the file:  "r" read access, "w" write access, "x" execute access.

Resolution

  1. Verify the network share has full permission. Both local and domain account generate the same error when upgrading LEM. If you have the following error, try another network share.

Cannot create directory '/tmp/smb' : Permission Denied
ERROR: Problem mounting Windows Share. Details Couldn't chdir to /tmp/smb: No such file or directory

 

   2.  Log in as root in LEM. Check the permission within LEM directory /tmp/smb. The RWX for Owner, Groups, and Other tickbox should all be checked as indicated above.

 

 3. Change the permissions on /tmp.

login as root.
umount  /tmp/smb
cd  /
/etc/init.d/contego-manager  stop    (if LEM 6.3.x...  /etc/init.d/lem-manager  stop)
chmod  -R  777  /tmp
chown  -R  cmc:triego  /tmp
/etc/init.d/contego-manager  start    (if LEM 6.3.x...  /etc/init.d/lem-manager  start)

 

Re-run the upgrade.

 

 

 

Last modified
22:49, 12 Sep 2016

Tags

Classifications

Internal Use Only