delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/05/09:00:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Mailer: YahooMailRC/975.45 YahooMailWebService/0.7.199
Date: Thu, 5 Jun 2008 12:59:37 +0000 (GMT)
From: uday <uday_p AT yahoo DOT co DOT uk>
Subject: How to correctly setup passwd and group to access mounted drives?
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <23482.73101.qm@web25002.mail.ukl.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m55D055P006769

 Hi, 

I am trying this route after failing to find a relevant topic on web or with local gurus. 

Problem in short: 
================= 

I have a folder on a unix server mapped as a windows drive z(y is another drive from 
another unix server). 
I am able to browse through the folders from windows explorer and read/write there. 

I am running into an issue when I access those mapped network drives from cygwin. 
When I try I get the following error message " 
uday_p AT uday-xp /cygdrive 
$ ls -l 
total 4 
drwxrwxr-x+ 30 ???????? SYSTEM 0 Jun 3 09:35 c 
drwxr-xr-x 37 uday_p Domain Users 1536 Mar 12 23:34 y 
drwxr-xr-x 36 uday_p Domain Users 1536 May 31 23:58 z 

uday_p AT uday-xp /cygdrive 
$ ls y 
ls: reading directory y: Permission denied 

uday_p AT uday-xp /cygdrive 
$ ls z 
ls: reading directory z: Function not implemented 

uday_p AT uday-xp /cygdrive 
$ 
uday_p AT uday-xp ~ 
$ mount 
C:\cygwin\bin on /usr/bin type system (binmode) 
C:\cygwin\lib on /usr/lib type system (binmode) 
C:\cygwin on / type system (binmode) 
c: on /cygdrive/c type system (binmode,noumount) 
y: on /cygdrive/y type system (binmode,noumount) 
z: on /cygdrive/z type system (binmode,noumount) 

uday_p AT uday-xp ~ 
$ 
" 

My windows domain is MYDOM 

I did do the mkgroup -l -d MYDOM > /etc/group and 
mkpasswd -u uday_p -p /home -d MYDOM >> /etc/passwd 

I am able to navigate the directories though which means that I do not have the 
group/user id set properly from cygwin. I do not know how to fix that. 

The id on UNIX server is 
" 
unix2 /users/udayb > id -a 
uid=1066(uday_p) gid=2(eng) groups=2(eng),15(crypto) " 

and on cygwin it is 

" 
uday_p AT uday-xp /cygdrive 
$ id -a 
uid=264583(uday_p) gid=10513(Domain Users) groups=544(Administrators),545(Users), 
160957(ArchBaseDataGroup),10513(Domain Users),13521(eng),13522(Engineering),29064(LEX.MFG-SUITE.M) 

uday_p AT uday-xp /cygdrive 
$ 
" 

I am a developer on unix environment and I have a project where my code from unix server has to 
be compiled from windows (intel ixp stuff). 
Will appreciate any help in getting the access issue fixed. 

I am guessing that it is because of the difference in the gid between unix and on cygwin. I did 
manually modify the entry on cygwin to mirror the value in unix, but that did not help. 

Thanks in advance, 
Uday




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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019