- chmod does not copy write permissions to others
- Posted by BigMan on July 1st, 2005
Why doesn't "chmod o=u" copy write permissions on a file?
- Posted by Dave Hinz on July 1st, 2005
On 1 Jul 2005 12:46:09 -0700, BigMan <BigMan@abv.bg> wrote:
You need to give a whole lot more information than that so a meaningful
answer can be given. Show us the file's current permissions and owner,
who you're doing it as, what you expect to happen, etc.
If you're asking what I think you're asking, it does (or rather should).
The above details will help to describe what's going on more clearly.
- Posted by BigMan on July 1st, 2005
Here's some more info:
/home/angel/chmod_tests:ls -al; chmod o=u a; ls -al
total 12
drwx------ 2 angel angel 4096 Jul 1 21:31 .
drwxr-xr-x 7 angel angel 4096 Jul 1 23:31 ..
-rwx------ 1 angel angel 6 Jul 1 21:31 a
total 12
drwx------ 2 angel angel 4096 Jul 1 21:31 .
drwxr-xr-x 7 angel angel 4096 Jul 1 23:31 ..
-rwx---r-x 1 angel angel 6 Jul 1 21:31 a
I issue the above commands as "angel" (the owner). What other info
could be helpful?
- Posted by Barry Margolin on July 2nd, 2005
In article <1120250596.156642.180730@z14g2000cwz.googlegroups .com>,
"BigMan" <BigMan@abv.bg> wrote:
It works properly for me on OS X 10.3.9:
barmar $ chmod 700 foo
barmar $ ls -l foo
-rwx------ 1 barmar barmar 0 1 Jul 20:12 foo
barmar $ chmod o=u foo
barmar $ ls -l foo
-rwx---rwx 1 barmar barmar 0 1 Jul 20:12 foo
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
- Posted by Chris F.A. Johnson on July 2nd, 2005
On 2005-07-01, BigMan wrote:
What system are you using?
It works for me on Linux (Debian 3.1):
$ ls -l Teams; chmod o=u Teams; ls -l Teams
-rwxrwx--- 1 chris chris 586 Oct 29 2004 Teams
-rwxrwxrwx 1 chris chris 586 Oct 29 2004 Teams
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== ================
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
<http://www.torfree.net/~chris/books/cfaj/ssr.html>
- Posted by BigMan on July 2nd, 2005
I'm using a yellowdog Linux.
- Posted by Wayne Dernoncourt on July 2nd, 2005
BigMan <BigMan@abv.bg> wrote:
I think you have a typo! Try chmod o+a filename.txt instead
of chmod o=a filename.txt (substitute + for =) Doesn't +
add the ability and - take it away? No system available
right now or I'd test it.
--
Take care | This clown speaks for himself, his job doesn't
Wayne D. | pay for this, etc. (directly anyway)
- Posted by BigMan on July 2nd, 2005
Same result if you mean chmod o+u filename. Otherwise explain the
meaning of chmod o+a filename.
- Posted by Timothy J. Bogart on July 3rd, 2005
BigMan wrote:
Perhaps an old bug? How old is this yellowdog? Is it even pre-coreutils?
rpm -q --whatprovides /bin/chmod
might be even more pertinent.
- Posted by Eric on July 20th, 2005
Wayne Dernoncourt wrote:
Not a typo, o=u means set perms for "other" the same as what is currently
set for "user"
Eric
- Posted by Barry Margolin on July 20th, 2005
In article <rbWdneyN_oHuIkDfRVn-ug@comcast.com>,
Eric <BorgMotherShip@AliensR_US.org> wrote:
Do you realize you're replying to something over 2 weeks old? I'm
pretty sure someone pointed this out way back then.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***