This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Accessing SMB share as wrong user?


A simpler case demonstrating this; X0 is a new share (created just for
testing this) with no prior history, nothing manually set.  (Server is
FreeNAS, current version).

>From the beginning, when it first sees it, it shows the file owners and
groups weirdly.

And then it's able to create a file and write to it *once*, but can't
then append to it???

David Dyer-Bennet@DDB4 //fsfs/x0
$ id
uid=197608(David Dyer-Bennet) gid=197121(None)
groups=197121(None),197609(Ssh
Users),545(Users),4(INTERACTIVE),66049(CONSOLE LOGON),11(Authenticated
Users),15(This Organization),113(Local account),66048(LOCAL),262154(NTLM
Authentication),401408(Medium Mandatory Level)

David Dyer-Bennet@DDB4 //fsfs/x0
$ ls -ld .
drwxrwxr-x+ 1 Unknown+User Unix_Group+1001 0 May 29 11:55 .

David Dyer-Bennet@DDB4 //fsfs/x0
$ getfacl .
# file: .
# owner: Unknown+User
# group: Unix_Group+1001
user::rwx
group::rwx
other:r-x
default:user::rwx
default:group::rwx
default:group:Unix_Group+1001:rwx
default:mask:rwx
default:other:r-x


David Dyer-Bennet@DDB4 //fsfs/x0
$

David Dyer-Bennet@DDB4 //fsfs/x0
$

David Dyer-Bennet@DDB4 //fsfs/x0
$ echo something > foobar

David Dyer-Bennet@DDB4 //fsfs/x0
$ ls -l foobar
----r--r-- 1 Unknown+User Unix_Group+1001 10 May 29 12:11 foobar

David Dyer-Bennet@DDB4 //fsfs/x0
$ getfacl foobar
# file: foobar
# owner: Unknown+User
# group: Unix_Group+1001
user::---
group::r--
other:r--


David Dyer-Bennet@DDB4 //fsfs/x0
$ echo more >> foobar
-bash: foobar: Permission denied

-- 
David Dyer-Bennet <dd-b@dd-b.net>
http://dd-b.net/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]