[root@localhost]# chmod g,+w ./ -R
chmod: invalid mode: `g,+w'
Try `chmod --help' for more information.
You have new mail in /var/spool/mail/root
[root@localhost]# chmod g,+,w ./ -R
chmod: invalid mode: `g,+,w'
Try `chmod --help' for more information.
[root@localhost]# chown --help
Usage: chown [OPTION]... [OWNER][:[GROUP]] FILE...
or: chown [OPTION]... --reference=RFILE FILE...
Change the owner and/or group of each FILE to OWNER and/or GROUP.
With --reference, change the owner and group of each FILE to those of RFILE.
-c, --changes like verbose but report only when a change is made
....
Owner is unchanged if missing. Group is unchanged if missing, but changed
to login group if implied by a `:' following a symbolic OWNER.
OWNER and GROUP may be numeric as well as symbolic.
Examples:
chown root /u Change the owner of /u to "root".
chown root:staff /u Likewise, but also change its group to "staff".
chown -hR root /u Change the owner of /u and subfiles to "root".