Larry Hall wrote:
At 10:25 AM 4/22/2004, you wrote:
Greetings all ,
I have been attempting to setup Cygwin to access my Samba Network shares
without a great deal of success.
Here is what I have done so far ...
1. The samba share is mapped to network Drive K:
2. Cygwin HOMEDRIVE is set to K:
3. Cygwin HOMEPATH is set to \
4. my Linux samba user has been entered into the Gygwin passwd file as
shown below
<>
dazza:unused_by_nt/2000/xp:11202:10512:
Daren Grant,U-WINDOWSDOMAIN\dazza,
S-1-5-21-283096454-457325280-1777090905-1208:
//banana/dareng:/bin/bash
<>
dazza:x:11202:10512:dazza,U-SAMBADOMAIN\\dazza,
S-1-5-21-1481719354-140387-400475-3300:
//banana/dareng:/bin/bash
This correctly reports the uid for files that i own
My default group on the linux side has been entered into the group file
under cygwin so that the group ids are picked up correctly on ls
<>
Domain Users:S-1-5-21-200030454-45000-100905-513:10512:
<>
games:S-1-5-21-148174-14007-403205-1041:10512:
Everything appears to be setup perfectly , if i ls -ln my homespace i get
the following .
drwxr-xr-x+ 4 1120210512 0 Apr 19 17:13 tmp
drwxr-xr-x+ 3 1120210512 0 Aug 27 2002 tmpDoc
drwxr-xr-x+ 2 1120210512 0 Feb 27 2003 tmpIcons
drwxr-x---+ 4 1120210512 0 Jan 17 2002 unix_source
-rw---1 1120210512 11387 Feb 23 16:21 weir.gPJ
drwxr-x---+ 3 1120210512 0 Jun 27 2003 win_regression
drwxr-x---+ 3 1120210512 0 Jun 19 2003 win_src
drwxr-xr--+ 10 1120210512 0 Feb 24 2003 workspace
drwxr-xr-x+ 2 1120210512 0 Apr 22 13:51 zebb
and id reveals my user as
uid=11202(dazza) gid=10512(Domain Users)
groups=0(root),544(Administrators),545(Users),10513(Domain Users)
However i cannot ls in a directory that has no global read attribute ,
I cannot read a file that is set to user read ie weir.gPJ above
I can access , and read these files via windows explorer , but
Cygwin fails to allow me access ... Can anyone help ?
I know a harp on this but:
Problem reports: http://cygwin.com/problems.html
While you've given some reasonable information about what you're trying
to do and the problems you see (with specific data to back it up), it's
really hard to evaluate problems without configuration information (cygcheck output). In it's absence, I'll simply ask if you have "smbntsec" set in
your Cygwin environment variable (and direct you to the User's Guide for
information about this setting)?
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
Sorry for not including the cygreport now enclosed. , and Yes I do have
the smbntsec setting set.
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Apr 22 17:56:17 2004
Windows XP Professional Ver 5.1 Build 2600 Service Pack 1
Path: S:\Cygwin\usr\local\bin
S:\Cygwin\bin
S:\Cygwin\bin
S:\Cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
s:\libraries\Jakarta-ant\bin
c:\Program Files\Hummingbird\Connectivity\7.10\Accessories\
c:\PROGRA~1\ULTRAE~1
c:\W32_gPROMS_INSTALLS\2.3 Release 06\gPROMS\bin
N:\gPROMS_Win_Installs\2.3.0\gPROMS\bin
Output from S:\Cygwin\bin\id.exe (nontsec)
UID: 11208(dareng) GID: 10513(Domain Users)
10513(Domain Users)
Output from S:\Cygwin\bin\id.exe (ntsec)
UID: 11208(dareng) GID: 10513(Domain Users)
0(root) 544(Administrators)
545(Users) 10513(Domain Users)
SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
CYGWIN = `smbntsec'
HOME = `\\banana\dareng'
MAKE_MODE = `unix'
PWD = `/cygdrive/c'
USER = `dareng'
!EXITCODE = `'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\dareng\Application Data'
CLIENTNAME = `SUMACK'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `WHITEASH'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
GPROMSHOME = `N:\gPROMS_Win_Installs\2.3.0\gPROMS'
HOMEDRIVE = `N:'
HOMEPATH = `\'
HOMESHARE = `\\banana\dareng'
HOSTNAME = `whiteash'
INFOPATH =
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
JAVA_HOME = `c:\java\j2sdk1.4.2\'
LOGONSERVER = `\\MAGNOLIAS'
MANPATH =
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/X11R6/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `//banana/dareng'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `:/usr/X11R6/lib/pkgconfig'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0806'
PROGRAMFILES = `C:\Program F