File Rights Modification Leads to Database Backup Failures

WangYouzhen
WangYouzhen  Gold  (1)
6 years 10 months ago  View: 1218  Reply: 0
1F

Keywords

database backup, file rights

Version Mapping

NMS

OS

Database

NE

U2000 V100R006C00

Solaris

-

-

Symptom

The U2000 V100R006C00 cannot back up the database automatically one day.

Problem Identification

File rights have been modified.

Cause Analysis

The database backup logs contain the following information:

IOError: [Errno 13] Permission denied: '/opt/HWENGR/engineering/conf/datamodelDB/datamodel.properties'

Frontline engineers find that the rights for files in /opt/HWENGR/engineering/conf/datamodelDB have been modified to:

-rw-r-----

The rights should be -rwxr-xr-x (that is, 755).

The owners of the files are root, but the backup is performed by the nmsuser user. Therefore, the modification makes the nmsuser user unauthorized.

Solution

Restore the original file rights.

Suggestion and Summary

None