Mail Archives: cygwin/2000/12/12/15:27:07
I'm not sure how NTSEC/noNTSEC permissions and SAMBA interact. My short
tests show that I can create and delete files and directories on a *SMB*
share (hosted on WinNT, not a SAMBA share hosted on linux/unix/etc).
However, even in my tests, these files and directories are created
read-only, and chmod fails. (Yet I can still delete the
files/directories).
$ cd //host/share
$ umask
002
# FILES
$ touch foo
$ ld -l foo
-r--r--r-- 1 1002 None 0 Dec 12 15:21 foo
$ chmod +w foo
chmod: foo: Permission denied
$ chmod 666 foo
chmod: foo: Permission denied
$ rm foo
$ ls -l foo
ls: foo: No such file or directory
# DIRECTORIES
$ mkdir foo
$ ls -ld foo
dr-xr-xr-x 1 1002 None 0 Dec 12 15:19 foo
$ chmod +w foo
chmod: foo: Permission denied
$ chmod 777 foo
chmod: foo: Permission denied
$ cd foo
$ touch bar
touch: bar: Permission denied
$ cd //host/share
$ rmdir foo
$ ls -l foo
ls: foo: No such file or directory
Since even in these simple cases, permissions and 'writeability' fails
on SMB shares, I am not surprised that CVS also fails on SMB shares.
Corinna, oh-expert-of-all-that-is-nt-security, can you shed some light
on this situation? I've hunted around in the docs but can't seem to
find anything related to SMB, other than the symlink issue.
--Chuck
mbresnahan1 AT mmm DOT com wrote:
>
> bash-2.04$ ls -ld /g/xapp/users/uscpw084/cvsroot
> 0 d--------- 1 1772 None 0 Dec 8 16:26
> /g/xapp/users/uscpw084/cvsroot/
> bash-2.04$ ls -ld /g/xapp/users/uscpw084/cvsroot/CVSROOT
> 0 d--------- 1 1772 None 0 Dec 8 16:11
> /g/xapp/users/uscpw084/cvsroot/CVSROOT/
> bash-2.04$ ls -ld /g/xapp/users/uscpw084/cvsroot/CVSROOT/
> 0 d--------- 1 1772 None 0 Dec 8 16:11
> /g/xapp/users/uscpw084/cvsroot/CVSROOT//
>
> Note that, using bash, I can cd to /g/xapp/users/uscpw084/cvsroot and
> create a directory there. Bash doesn't think there is a permissions
> problem. It's only CVS that has a problem as far as I've seen.
>
> "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu> on 12/08/2000 06:46:50 PM
>
> To: Mike J. Bresnahan/US-Corporate/3M/US AT 3M-Corporate
> cc: cygwin AT cygwin DOT com
> Subject: Re: CVS permissions problem with network drive
>
> Michael Bresnahan wrote:
> > bash-2.04$ /usr/bin/cvs.exe co OrderStatus
> > cvs.exe [checkout aborted]: /g/xapp/users/uscpw084/cvsroot/CVSROOT:
> > Permission denied
> >
> > I'm fairly sure I have the security setup correctly, because the direct
> > NT port of CVS does not have a problem accessing the repository.
>
> Actually, this means very little. There are differences in the way
> cygwin and NT(native) deal with SMB shares. Please show:
>
> ls -ld /g/xapp/users/uscpw084/cvsroot
> ls -ld /g/xapp/users/uscpw084/cvsroot/CVSROOT
> ls -ld /g/xapp/users/uscpw084/cvsroot/CVSROOT/
>
> > The repository is on a HPUX 11 box
>
> Oh, now hold on just a minute. So this isn't windows peer-to-peer file
> sharing. Now, you've thrown SAMBA into the mix, which is ALSO different
> from NT(native) SMB, w.r.t. file permissions.
>
> It looks to me as if your problem isn't CVS, but a misunderstanding as
> to how permissions on samba shares are dealt with from cygwin clients.
> Please search the archives..."samba" "permissions"
>
> --Chuck
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -