php forum
php mysql forum
php mysql smarty
 
Topic Options
#265620 - 12/29/03 07:52 PM Is there any difference between CHMOD 777 and CHMOD 0777?
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I see in some places that I need to chmod certain directories 777 and others 0777. I don't really see a difference. Is there one?
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#265621 - 12/29/03 09:04 PM Re: Is there any difference between CHMOD 777 and CHMOD 0777? [Re: luan]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Well since there is no 0777 I think not LOL typo no doubt.<br /><br />777 is the highest you can set with that being all permissions for everyone. Come attack me !
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#265622 - 12/29/03 09:32 PM Re: Is there any difference between CHMOD 777 and CHMOD 0777? [Re: sf49rminer]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I've seen it several times, and when I actually used that command:<br />chmod 0777 directory<br />there weren't any problems. Go figure.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#265623 - 12/29/03 11:28 PM Re: Is there any difference between CHMOD 777 and CHMOD 0777? [Re: luan]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Actually chmod does technically have 4 digits.<br />I think if you leave any digits off, it's presumed to be a zero.<br /><br />From: http://www.ss64.com/bash/chmod.html<br /><br />The first digit is the user who owns it. (u)<br />The second is other users in the file's group (g)<br />The third is other users not in the file's group (o)<br />The fourth is All Users (a)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#265624 - 12/30/03 07:45 AM Re: Is there any difference between CHMOD 777 and CHMOD 0777? [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
The hidden digit
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#265625 - 02/16/04 02:10 PM Re: Is there any difference between CHMOD 777 and CHMOD 0777? [Re: sf49rminer]
zb Offline
Lurker

Registered: 02/15/04
Posts: 2
Hi,<br />If you give chmod only three digits, then the highest bit is assumed to be zero. So, "chmod 077"=="chmod 777".<br />That highest bit means:<br />4=setUID<br />2=setGID<br />1=sticky<br />If you don't know what those mean, don't screw around with them.

Top


Who's Online
0 registered (), 20 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks