Operating System - HP-UX
1830350 Members
1807 Online
110001 Solutions
New Discussion

Some files get written with 000 permissions randomly, can't delete them

 
douteiful
Regular Visitor

Some files get written with 000 permissions randomly, can't delete them

Hi community,

I've been updating OpenSSL and SecureShell in a cluster of HP-UX 11i v3 machines but in some of them I've noticed that when making a backup, randomly some files would get written with 000 permissions and there's no way to delete them, even as root.

This is one example:

[dbm:/opt/ssh.old/etc]$ ll sshd_config
----------   1 root       sys           4726 Jun 10 14:16 sshd_config
[dbm:/opt/ssh.old/etc]$ chmod 644 sshd_config
chmod: can't change sshd_config: Permission denied
[dbm:/opt/ssh.old/etc]$ rm -f sshd_config
rm: sshd_config not removed.  Permission denied
[dbm:/opt/ssh.old/etc]$ id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
[dbm:/opt/ssh.old/etc]$

 

And in another machine, when updating OpenSSL it had trouble in one fileset in the same way:

ERROR:   utime of file "/opt/openssl/1.1/doc/man1/passwd.pod" failed.
         Permission denied (13).
ERROR:   chown "bin.bin" "/opt/openssl/1.1/doc/man1/passwd.pod" failed.
         Permission denied (13).
ERROR:   Failed installing fileset

 

Could it be a storage problem? It seems to happen randomly. Any help to pinpoint the issue is appreciated.

1 REPLY 1
georgek_1
HPE Pro

Re: Some files get written with 000 permissions randomly, can't delete them

Hello douteiful,

Please check the permission of the directories involved , such as /opt .
Also you may check if there is any permission issue with directory /usr/ , /usr/sbin or with /sbin where the binaries are located .

You may try change the permission of the file using /sbin/chmod or remove the file using /sbin/rm and see if that helps .
Also check if you have any third party Kernel Security module active in server , if so deactivate it and see if that helps .

 

I work for HPE/ I am an HPE Employee (HPE Community)



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo