begin quoting Ralph Shumaker as of Thu, Feb 03, 2005 at 11:21:53AM -0800:
> >-Stewart "chmod a+x virus.sh ; mv virus.sh coolstuff.runme" Stremler
>
> :O (I followed the gist of it, but what does the "a+x" do? My man
> page is silent about it.)
Hm. Right in the first screen of my manpage, I read:
.
.
.
The format of a symbolic mode is `[ugoa...][[+-=][rwxXs?
tugo...]...][,...]'. Multiple symbolic operations can be
given, separated by commas.
A combination of the letters `ugoa' controls which users'
access to the file will be changed: the user who owns it
(u), other users in the file's group (g), other users not
in the file's group (o), or all users (a). If none of
these are given, the effect is as if `a' were given, but
bits that are set in the umask are not affected.
The operator `+' causes the permissions selected to be
added to the existing permissions of each file; `-' causes
them to be removed; and `=' causes them to be the only
permissions that the file has.
The letters `rwxXstugo' select the new permissions for the
affected users: read (r), write (w), execute (or access
for directories) (x), execute only if the file is a direc?
tory or already has execute permission for some user (X),
set user or group ID on execution (s), sticky (t), the
permissions that the user who owns the file currently has
for it (u), the permissions that other users in the file's
group have for it (g), and the permissions that other
users not in the file's group have for it (o).
.
.
.
In other words, "a" means "all", "+" means "add", and "x" means
"execute". That is, make the script runnable.
-Stewart "Tend to prefer the symbolic notation over octal" Stremler
--
KPLUG-List mailing list
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list