Operating System - HP-UX
1833787 Members
2575 Online
110063 Solutions
New Discussion

Re: : file permission set to ----------+

 
WOLF Charles
New Member

: file permission set to ----------+

On a HP-UX 11.0 server, I have a filesystem with many files and using JFS-ACL. We are creating the files with a batch program (cat >file). The user is root and umask = 02.

But some files are created with this permissions :
----------+ 1 root sys 1818 26 sept 02:27 /mnt/arch/ddz/com/edit/KE1/KE1085.arc

AS Simone Danzo did it,I tried to umount and mount the filesystem. It is alaways the same thing.

Have some one more explanation ?
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: : file permission set to ----------+

Hi

You can see file permission of this type during a copy and not until the copy is finished do the correct permission get placed upon the file.

I would therefore suggest these are created due to a truncated copy/ create command.

Recheck your batch program and test the cat > file routine manually.

HTH

Paula
If you can spell SysAdmin then you is one - anon
Todd Lehr
Frequent Advisor

Re: : file permission set to ----------+

This can happen during a mv command that is either in progress or has been terminated before it had completed. At the end of the move command it sets the permissions properly.

It might also be possible that after the move completed it didn't have sufficient authority to set the permissions, although I think then they will get set based on your umask.

During a cp or when using redirection the permissions get set immediately based on you umask, not at the end.



Todd Lehr
Frequent Advisor

Re: : file permission set to ----------+

Also, I should mention I did my tests on HP-UX 10.20, so it is possible 11.x handles redirection or cp permissioning in a differnt way.
Sean OB_1
Honored Contributor

Re: : file permission set to ----------+

Charles,

This can happen when a mv or cp command is in progess and terminates before it finishes.

The permissions are set at the end of the file process, and if it terminates before it finishes then the permissions will not be set.

Sean
benoit Bruckert
Honored Contributor

Re: : file permission set to ----------+

Hi,
I already have this kind of pb.
It was during creation of file on an nfs server.
For big files transfers between host A to B (nfs server), The file was created with this ACL before the end of the transfer. At the end, the transfer was OK. If you cut the transfer (stop nfs server for example). THe ACL stay the same : ---------,
This is not an explanation, but a notification !!!
I don't know why it's like that !!!
I'm not sure (don't remember) but ftp may be did the same !!

regards
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)