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: How to correctly setup passwd and group to access mounted drives?


Hi Eric,

Thanks for the response. 
----- Original Message ----
> From: Eric Berge <emberge@yahoo.com>
> To: cygwin@cygwin.com
> Sent: Thursday, June 5, 2008 10:35:46 PM
> Subject: Re: How to correctly setup passwd and group to access mounted  drives?
> 
> 
> A nice way to check for being the "right" user is to use
> the "whoami" utility - the windows version out in \windows\system32,
> not the cygwin one.  If it displays that you are "sshd_server" things
> are not well.

I installed windows whoami and tried it and see the following result.
uday_p@uday-xp ~
$ /cygdrive/c/Program\ Files/Resource\ Kit/whoami
MYDOM\uday_p

I am in the domain MYDOM.

I hear from other users in my group that this works with older versions of cygwin. I guess I will try that tomorrow.
In the meanwhile, if someone can point out either my / sysad issue, I can fix them.

Thanks and Regards
Uday

> 
> I still do not fully understand the need to do this, but on some
> recent systems I've installed it was necessary to generate the
> groups file with the -u flag to place the user names in the groups
> they belong to.  Perhaps that might help (and perhaps someone with
> more knowledge can comment on the correctness of this suggestion...):
> 
>     mkgroup -l -d -u > /etc/group
> 
> (you can leave off the -d if you're not in a domain)
> 
> -- Eric
> 
> 
> ----- Original Message ----
> From: Spiro Trikaliotis 
> To: cygwin@cygwin.com
> Sent: Thursday, June 5, 2008 11:46:59 AM
> Subject: Re: How to correctly setup passwd and group to access mounted  drives?
> 
> Hello,
> 
> * On Thu, Jun 05, 2008 at 12:59:37PM +0000 uday wrote:
> 
> > 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@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@uday-xp /cygdrive 
> > $ ls y 
> > ls: reading directory y: Permission denied 
> 
> I know this behaviour in case when you log on via ssh, and you are using
> the passwordless authentication (i.e., public key authentication). In
> this case, Windows does not know about your passwords, and you get the
> permission denied. This is already known - at least, it was when I
> investigated this some years before.
> 
> Unfortunately, running "net use \\\\myserver\\myshare /user:myuser" to
> enter the password does not work either when you connect via ssh.
> 
> Workaround: Use passwords instead of public keys.
> 
> So: Are you using these commands "directly" from bash, or are you
> remotely connected via ssh?
> 
> Best regards,
> Spiro.
> 
> -- 
> Spiro R. Trikaliotis                              http://opencbm.sf.net/
> http://www.trikaliotis.net/                    http://www.viceteam.org/
> 
> --
> 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/
> 
> 
>       
> 
> --
> 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/



      

--
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/


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