|
|
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: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|