[prev in list] [next in list] [prev in thread] [next in thread]
List: samba-vms
Subject: create mode
From: system manager <system () niuhep ! physics ! niu ! edu>
Date: 2003-07-28 18:08:13
[Download RAW message or body]
Hello,
Maybe I missed this in the documentation, but I thought somebody
might find the results of my experimentation interesting
This was done under user security, going to a directory share and
"putting" a file using the smbclient that comes with the linux samba.
Running Samba 2.2.8.
create mode = 0xyz
x applies to both System and Owner
y applies to Group
z applies to World
value of | permissions
x or y or z |
-------------------------
7 or 6 | RWD
5 or 4 | R
3 or 2 | WD
1 or 0 | no access
Putting all zeros uses default protection for the directory
Not including the command defaults to the global value (as expected)
and last, curiousity got the better of me, 9 and 8 and all numbers
to the right of them are ignored so 0378 = 0037 and 493 = 004
Hmmm, Okay I was somewhat confused but guess that makes sense.
In unix 4 is r, 2 is w and 1 is x. Ignoring the concept of executing
directories, you don't execute programs via samba, and in the context
of windows/unix writing to a file is the same as deleting it.
What I hadn't realized is that when you write over a file in samba
you are modifying the file, not deleting it and rewriting it.
Oh well, I hope somebody found this interesting.
Robert
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:
http://www.catb.org/~esr/faqs/smart-questions.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic