Operating System - HP-UX
1826592 Members
3872 Online
109695 Solutions
New Discussion

Display those are not a system world writable files in UNIX

 
DharmaRao G
Advisor

Display those are not a system world writable files in UNIX

Please suggest what are the not a system world writable filrs in UNIX?
9 REPLIES 9
V. Nyga
Honored Contributor

Re: Display those are not a system world writable files in UNIX

Hi,

if you do a ls -l to a directory you'll see the permissions:
-rwxrwxrwx is a file who has r(ead)/w(rite)/(e)x(ecute) permissions for user (the first three rwx), group (the second group rwx) and all users (i.e. 'world', the last three rwx).

Seee also 'man chmod' for the explanations.
A '-' shows that the specific group don't have the specific right.
So 'not a system world writable files' have:
-rwxrwxr-x

HTH
Volkmar

*** Say 'Thanks' with Kudos ***
avizen9
Esteemed Contributor

Re: Display those are not a system world writable files in UNIX

Hello Dharma,
V.Nyga has good explanation for your query, you can also refer below help page for chmod, thanks,

http://docs.hp.com/en/B2355-90680/chmod.1.html
V. Nyga
Honored Contributor

Re: Display those are not a system world writable files in UNIX

Hi again,

please go to your last questions (about system world writable files):
http://forums13.itrc.hp.com/service/forums/pageList.do?userId=WW240663&listType=unassigned&forumId=1

and assign points like mentioned here:
http://forums13.itrc.hp.com/service/forums/helptips.do?#28

V.
*** Say 'Thanks' with Kudos ***
Steven E. Protter
Exalted Contributor

Re: Display those are not a system world writable files in UNIX

Shalom,

The link inside this link:
http://www.hpux.ws/?p=12

Includes a document by Bill Hassell.

This document includes the code for finding such files in HP-UX

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Laurent Menase
Honored Contributor

Re: Display those are not a system world writable files in UNIX

you mean :
find the world writable files on a system
find . -perm -02 -exec ls -ld {} \;

find the none world writable files in a directory
find . ! -perm -02 -exec ls -ld {} \;

writable files are those which have a
"w" at the following position looking at
# ls -l toto
--------w- 1 root bin 0 May 28 11:32 toto

you have
owner group world
rwx rwx rwx

it also be converted in octal each letter set corresponding to a 1.
So 02 is world writeonly
754 eq rwxr-xr--
is rwx for owner
rx for group
r for world


DharmaRao G
Advisor

Re: Display those are not a system world writable files in UNIX

Hi Laurent Menase,

I want to know that those are not a world system files in a system other than user files.

Example:- Is there any OS files by default world writable files.
Laurent Menase
Honored Contributor

Re: Display those are not a system world writable files in UNIX

I am sorry can you explain more what you are trying to achieve, I am not sure I understand.
DharmaRao G
Advisor

Re: Display those are not a system world writable files in UNIX

Hi Laurent Menase

I would like to know more information on UNIX, what are the OS world writeble files by default. I will appriciate your quick response.
V. Nyga
Honored Contributor

Re: Display those are not a system world writable files in UNIX

Hi again,

please re-read what Bill has answered to you:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1340325

By default there's no need in HP-UX for world writable files.
With some applications installed this could change ...

HTH
Volkmar
*** Say 'Thanks' with Kudos ***