November 24, 2024, 07:57:17 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Linux File permission  (Read 4342 times)

Offline anil_garg5

  • Linux Learner
  • ***
  • Posts: 71
Linux File permission
« on: March 18, 2005, 10:29:50 AM »
Hi All,

A simple clarification

A file having the file permssion 220 have the read and write permsion for owner and grp users.

It means
# chmod 220 testfile
#chmod 660 testfile

Both command has the same impact practically. means it has read and write permission. I just want to know is there ant impact technically between these 2 command.
read (4) has more weightage than write(2).
Is there any significance for it???

Thanks

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Linux File permission
« Reply #1 on: March 18, 2005, 11:13:43 AM »
HI Dear,
No the effect of both are not same.....

I think u tried this commnads from root user ................

Try to use these command from another user but not root....., because if u give these permissions using root,, then  also root can read as well as write as the root is the Superuser account......

Try these commnds by logging from another local user....., u will see the difference...


Gaurav