Operating System - HP-UX
1834149 Members
2168 Online
110064 Solutions
New Discussion

World writable file permission

 
Ngoh Chean Siung
Super Advisor

World writable file permission

Hi,

I hv some questions about file permission as below:

1) What is the 's' stands for?
Example : srwxrwxrwx /var/spool/sockets/pwgr/client27041

2) If we took out the 'w' permission from these files on 'others' segment (world writable), especially with prefix 'c','p'
and 's', what is the side effect ? Means that all the 'others' writable file permission will become only "Read" or no permission at all.
Example:
c : means character/binary file (example : crw--w--w- /dev/telnet/d58)
p : printer file (example : prw-rw-rw- /dev/log)

3) Why the file size of file permission with prefix 's' is always 0 (zero) ?

I have attached the file list that we going to modify the file permission to disallow the "other" has not writable permission.

regards.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: World writable file permission

1) 's' means a socket.

2) In all cases, removal of the other's write bit would simply mean that 'other' would not be able to write to the file or device node.

3) These are sockets they have no size as such.

Many of the files in your list are temporary files are temporary and should have been removed. The process probably died before the removal was invoked. Also, leave the man page persissions alone. These are formatted versions of the unformatted man pages.
If it ain't broke, I can fix that.
Ngoh Chean Siung
Super Advisor

Re: World writable file permission

Hi,

Thanks for your reply.

Q1) Thru the file list, what is the temporary file? As I know is /dev/tty/??. Any others file?

Q2) Any impact that I modify all the file permission listed inside the file to "other" no write & execute permission?

regards
Sunil Sharma_1
Honored Contributor

Re: World writable file permission

most of the files under tmp directory are temp files like /tmp, /var/tmp etc.

/dev/tty are not temp files.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***