|
|
|
|
Joined: Jun 2002
Posts: 670
Code Monkey
|
|
Code Monkey
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?
|
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
|
Member
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
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.htmlThe 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
Joined: Apr 2001
Posts: 3,266 |
|
|
|
|
|
Joined: Feb 2004
Posts: 2
Lurker
|
|
Lurker
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.
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 443
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
|
|
|
|
|
|