Operating System - HP-UX
1756534 Members
2025 Online
108848 Solutions
New Discussion юеВ

what does it mean file permission 721?

 
restrospec
Contributor

what does it mean file permission 721?

what does it mean file permission 721?
I see some document. it define that
owner rwx
group wx
other x

but as I understand
owner rwx
group w
other x

Do I understand or document correctly?

Please suggest me.
5 REPLIES 5
Ivan Krastev
Honored Contributor

Re: what does it mean file permission 721?

721 is rwx -w- --x

See this for more info - http://en.wikipedia.org/wiki/File_system_permissions#Octal_notation


regards,
ivan
Oviwan
Honored Contributor

Re: what does it mean file permission 721?

Hey

rwx-wx--x is 731

$ touch blah
$ chmod 721 blah
$ ll blah
-rwx-w---x 1 maint dba 164 Jun 21 16:55 blah


check man chmod for more information

Regards

MarkSyder
Honored Contributor

Re: what does it mean file permission 721?

Your understanding is right - 721 would mean group has write permission, not write and execute. Why you would give someone write permission but not read is a mystery to me.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Mohammad Sanaullah
Frequent Advisor

Re: what does it mean file permission 721?

Dear
As all of the answer are more relative to your Question specially above one. in short the answer to your Question is as follows:

7 = rwx = Permission for Owner
2 = -w- =Permission for Group
1 = --x =Permission for others

the Equivalent Permission would be

rwx-w---x, for the permission 721 to file.
hence what you understand is correct. for better understanding of the Octal equivalent of file permission look at manual page for chmod
hope will Work.
bye

Alive
Steve Post
Trusted Contributor

Re: what does it mean file permission 721?

I just love converting to binary.
000 0 ---
001 1 --x
010 2 -w-
011 3 -wx
100 4 r--
101 5 r-x
110 6 rw-
111 7 rwx

721 ... 7 is for user
the 2 is for group
the 1 is for other
So for a file, 721 would be

7 2 1 myfile
uuu ggg ooo myfile
rwx -w- --x myfile