sumit vedi
sumit vedi

Reputation: 777

Permissions issue while creating the file in linux

Actually I am facing the issue while creating the file in particular directory. I have two environment and structure of both environment is same.

drwxr-xr-x  4 csaadm etl  24576 Apr 16 03:00 flag --------- env1
drwxr-xr-x  4 csaadm etl  24576 Apr 16 03:00 flag --------- env2

When one process create a file under this directory. file permission look like this. permission of file is not same.

-rwxrwxrwx 1 csaadm etl       0 Apr 16 01:00 schedule_5 --------- env1
-rwxr-xr-x 1 csaadm etl       0 Apr 16 04:00 schedule_6 --------- env2

Can anyone please explain why this is happening and how to resolve this?

Upvotes: 0

Views: 72

Answers (1)

deimus
deimus

Reputation: 9865

Basically it would be better if you provide more information on what process and how the files are being created.

But so far you can go over following checks

  1. Check the umask for the both environments
  2. Check if the files are created within the same user context
  3. Check the owner of the process which is creating the files.
  4. etc

Need more help ? Then provide more information !

Upvotes: 1

Related Questions