World Writable files

Hello to the forum.

I' was searching my system for world writable files and i found some files with write permission to "others" in the /proc directory and in the /system/contract/process directory

For example here are some of these files:

/proc/1/fd/254

/proc/1/fd/255

/proc/286/fd/11

/system/contract/process/template

/system/contract/process/1/ctl

/system/contract/process/1/status

/system/contract/process/4/ctl

/system/contract/process/4/status

What are these files? Is it safe to remove the write permission from the "others" category using the #chmod o-w command or not?

[653 byte] By [Billyyo] at [2007-11-26 11:26:03]
# 1

Hello.

>> /proc/1/fd/254

>> /proc/1/fd/255

>> /proc/286/fd/11

This means that the process with PID=1 (I think this is "init") opened two files that have o+w permission while PID=286 opened one of these files.

For example the process with PID=286 opened the file "/system/contract/process/1/ctl".

>> /system/contract/process/*

These files are used in the "contract subsystem".

This feature is new to Solaris 10 so I cannot say much about it because I'm familiar with Solaris 9.

You should better not modify anything in this directory because some C library functions may not work any more in this case.

Martin

Martin_Rosenau at 2007-7-7 3:41:36 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
... by the way:The permissions of the files in /proc/.../fd/... are typically only informational.You cannot simply access the files in this directory.Martin
Martin_Rosenau at 2007-7-7 3:41:36 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Thanks a lot Martin_Rosenau. You were very helpful!
Billyyo at 2007-7-7 3:41:36 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...