Welcome to WebmasterWorld Guest from 54.147.189.54

Forum Moderators: bakedjake

Message Too Old, No Replies

chmod

quick question

     
3:24 pm on Oct 12, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 4, 2002
posts:187
votes: 0


Does chmod a+w = 777
and chmod a-w = 666
?

I understand that 666 is -rw-rw-rw- but is it also a-w? I don't understand that part.

I'm just trying to change the chmod in ftp instead of the command line.

4:25 pm on Oct 12, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 18, 2003
posts:827
votes: 0


No.

a+w adds write ability to user, group, and other.

a-w removes write ablility from user, group and other.

"alphabet" format modifies permissions of existing files, while the "numeric" format overwrites permissions.

See chmod(1):
[hmug.org...]

8:43 pm on Oct 12, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 4, 2002
posts:187
votes: 0


This is for a file in a script and the instructions for it said to do it from the command line but if you don't have access you can do it from ftp, so I figured a-w or 644 was pretty much the same thing. Seemed to work the same.