1752777 Members
6109 Online
108789 Solutions
New Discussion юеВ

file permission

 
System Dude_1
Frequent Advisor

file permission

If one of my file is having below permission :
-r-------- other other test and if would try to view it from rest id should it be possible :
log=`cat /disk1/app1/test`
Performance Issue on HP-UX 10.20
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: file permission


Nope, only the owner of the file can read it.
To allow anyone to read it do;

chmod 444 /disk1/app1/test
Im from Palmerston North, New Zealand, but somehow ended up in London...
Peter Kloetgen
Esteemed Contributor

Re: file permission

Hi,

no, should not be possible, if other is owner of the file. Only owner of the file is able to execute the cat- command, no matter if executed via command substitution or not!

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Rafael M. Ferreira
Occasional Advisor

Re: file permission

System Dude

If you're the owner of the file so you can change this file with chmod

But if you aren't the owner of this file so you don't have permission to change the file

Regards

Rafael
Martin Johnson
Honored Contributor

Re: file permission

only the owner and root will be able to read the file.

HTH
Marty