How to deal with a problem from the file /etc/jlumachine.id with wrong permission

book

Article ID: 100025717

calendar_today

Updated On:

Description

Error Message

 

[ ERROR MESSAGES ]
bash-3.00# ls -la /etc/jlumachine.id
-rw-rw-rw-   1 root     root           0 Jan 15 2011 /etc/jlumachine.id

Cause

 

[ Explanation ]
This error will only come when a root user installed JLU first time as at that time only JLU creates a file name as jlumachine.id under directory "\etc" with
the Read/Write permission to everyone. So after installation when we launch the Live update for first time with non-root user JLU tries to change the mode of jlumachine.id file by using chmod 666.
 
But since this file is created by root so only root or owner will be having the permission to change the mode of thid file and hence JLU ends up by throwing the error "Error while changing permissions of cache filechmod: /etc/jlumachine.id: Operation not permitted".
  

Resolution

 

[ SUGGESTION ]
as root:
cd /etc
touch jlumachine.id
chown symcscan:avdefs jlumachine.id
chmod 664 jlumachine.id
 
Note: The Veritas-provided file was owned by root:root with 666 permissions. 
This is to show how to change the file to be owned by the scanner (symcscan:avdefs) and 664 permissions for improved security.

Applies To

 

[ VERSION OF OS/PACKAGE ]
Solaris 10
SFHA5.1

Issue/Introduction

   
[ ISSUE ]
Inquiry on permission on file