GeorgeC
04-09-2004, 05:49 PM
Just wondering, what's chmod a+w is numeric terms? 666?
Thanks,
Thanks,
![]() | View Full Version : Simple q: What's chmod a+w? GeorgeC 04-09-2004, 05:49 PM Just wondering, what's chmod a+w is numeric terms? 666? Thanks, Pheaton 04-09-2004, 05:53 PM I believe it gives the admin group write access to the file you are chmoding. Therefor, it just adds writing capablities for the first number if you will. You can really tell what the numeric term is because it could be a combination of permissions such as read+write, or execute+write, etc. GeorgeC 04-09-2004, 05:57 PM Hmm thanks, though do you know the exact numeric equivilant if I try and do this using FTP? I don't want to get it wrong, since it could be a security hazzard. probonic 04-09-2004, 06:14 PM Originally posted by cMark I believe it gives the admin group write access to the file you are chmoding. Actually the "a" is for "all". So it gives everyone (user, group, others) write access to the file. The numeric value for this (which would mean no-one could read the file, only write, so it's not that useful) would be 222. However, remember "a+w" adds the permissions to the existing permissions. GeorgeC 04-09-2004, 06:16 PM Thanks Phil! Pheaton 04-09-2004, 08:03 PM Originally posted by probonic Actually the "a" is for "all". So it gives everyone (user, group, others) write access to the file. The numeric value for this (which would mean no-one could read the file, only write, so it's not that useful) would be 222. However, remember "a+w" adds the permissions to the existing permissions. Oops. Im still learning. :) wheimeng 04-09-2004, 08:10 PM +r = read +x execute Steven 04-09-2004, 09:31 PM r = read w = write u = permissions for file owner g = permissions for file group t = sticky bit x = execute or access s = suid probably forgot one or two |