Hey all -
Running Fedora Core 11 here. I'm editing my .bash_profile so it will execute the following:
alias "chmodWeb"="chmod ugo-rwx *.* | chmod u+rwx *.* | chmod o+rx *.*"
Theoretically, this should take all files and folders within a given directory and change the permissions as follows:
u: rwx
g: ---
o: r-x
However, when I run this, it's.... strange. I have yet to get anything consistent from this. Sometimes it changes the permissions of one out of four files to rwx------, sometimes it changes all of them to ------r-x. Can someone help me figure out what is going on and how to fix it? If you've got another idea for quickly changing permissions to rwx---r-x via command line without installing additional software, I'm all ears. Well, eyes, in this case.
Thanks!