Lunarpages Web Hosting Forum

Author Topic: chmod languages??  (Read 918 times)

Offline tturiano

  • Spacescooter Operator
  • *****
  • Posts: 35
    • http://www.thomasturiano.com
chmod languages??
« on: March 14, 2005, 08:51:37 AM »
Hi,

I'm installing some software and the instructions say to set permissions on a file as follows:

"chmod a-w config.inc.php"

This is a different language than I am used to. I am used to using the numbers (ie., 644,755, etc.) Can someone tell me what number "a-w" is?

What about "a+w" ??

thanks,
tt

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11567
    • Thu Tu's Blog
chmod languages??
« Reply #1 on: March 14, 2005, 08:55:24 AM »
:whip: :love: :whip: :love: :whip: :love:

Offline tturiano

  • Spacescooter Operator
  • *****
  • Posts: 35
    • http://www.thomasturiano.com
plus versus minus
« Reply #2 on: March 14, 2005, 09:08:54 AM »
Thanks Thu,

That article helps alot, but doesn't tell me the difference between "a-w" and "a+w".

any ideas?

thanks, t

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11567
    • Thu Tu's Blog
chmod languages??
« Reply #3 on: March 14, 2005, 09:20:28 AM »
Doesn't seem like there is such a thing as a+w.

A google search for chmod presented this:
http://catcode.com/teachmod/
:whip: :love: :whip: :love: :whip: :love:

Offline GMTurner

  • Berserker Poster
  • *****
  • Posts: 7479
    • Turner's Lounge
chmod languages??
« Reply #4 on: March 14, 2005, 09:32:45 AM »
I'd say that a+w adds write permissions to all, while a-w removes write permissions from all... this is based on having used things like o-w, g+w, etc. from time to time...
The above information may or may not reflect current policy, opinions, or views since it was likely made almost 10 years ago.

Offline Ed

  • Berserker Poster
  • *****
  • Posts: 5156
    • Joke A Whenever
chmod languages??
« Reply #5 on: March 17, 2005, 12:23:44 PM »
Thats correct a+w would add write permissions to all.

Thats the chmod terminology from a command line.

CHMOD 644 will sufficiently protect that script.

755 would work as well though.

777 is never needed now though. As scripts run as user instead of nobody.

- Ed