Operating System - HP-UX
1825801 Members
2878 Online
109687 Solutions
New Discussion

change the permission of /var/X11/Xserver/logs/X0.log

 
Gian Filippo
Advisor

change the permission of /var/X11/Xserver/logs/X0.log

Hi all,
I must change the permission of the file:
/var/X11/Xserver/logs/X0.log
After I run the command:
chmod o-w /var/X11/Xserver/logs/X0.logcommand:
the permission is set correctly, but after 2 minuts the permission became wrong.
Someone can indicate me which process re-write this file?
How can I evoid the behaviour above?

Thank you for any support,
Gian Filippo
2 REPLIES 2
Franky_1
Respected Contributor

Re: change the permission of /var/X11/Xserver/logs/X0.log

Hi Gian,

every time you restart the X Server (eg kill -HUP the /var/X11/server/logs/X0.log file will be overwritten and therefore your changes are lost

Regards

Franky
Don't worry be happy
ramkumar
Valued Contributor

Re: change the permission of /var/X11/Xserver/logs/X0.log

HI YOU HAVE YO TRY WITH UMASK COMMAND IN THE LOGIN PROFILE FOR THE PARTICULAR USER WITH APPROPRIATE MODE .

#UMASK 0022
0022 IS NORMAL NEW FILE PERMISSION . IF YOU SHOULD REMEMBER UMASK MASKS ARE JUST REVESE TO CHMOD MASKS .