Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
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?

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Well since there is no 0777 I think not LOL typo no doubt.

777 is the highest you can set with that being all permissions for everyone. Come attack me !

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I've seen it several times, and when I actually used that command:
chmod 0777 directory
there weren't any problems. Go figure.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Actually chmod does technically have 4 digits.
I think if you leave any digits off, it's presumed to be a zero.

From: http://www.ss64.com/bash/chmod.html

The first digit is the user who owns it. (u)
The second is other users in the file's group (g)
The third is other users not in the file's group (o)
The fourth is All Users (a)

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
The hidden digit

Sponsored Links
Joined: Feb 2004
Posts: 2
zb Offline
Lurker
Lurker
Offline
Joined: Feb 2004
Posts: 2
Hi,
If you give chmod only three digits, then the highest bit is assumed to be zero. So, "chmod 077"=="chmod 777".
That highest bit means:
4=setUID
2=setGID
1=sticky
If you don't know what those mean, don't screw around with them.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)