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: Cygwin username


Please do not commandeer an unrelated thread for a new topic.  Changing
the subject is not enough -- you have to post a new message altogether if
you want to break the thread.

On Thu, 3 May 2007, Boffin, Stephane (GE Infra, Aviation, Non-GE) wrote:

> Hello all,
>
> When you log into cygwin using a shell the username used is the windows
> user name. I have a setup where I would like 10 users from 10 diffrent
> PC  to have one username and 10 other using 10 other pc have an other.
>
> This is because I only want to manage 2 user name in the passwd file.
>
> Is this possible ?
> And if yes how do I do that

I don't believe it's possible.  First off, entries in /etc/passwd contain
an SID that identifies the associated Windows user, so you'd need to have
one entry per Windows user anyway, or they will be unrecognized by Cygwin.

You can have multiple entries in /etc/passwd with the same username, but
when Cygwin looks up a username, it stops at the first one, so anyone
trying to log in with that username will be treated as the first matching
user (and will need to enter the password for that user).

On the other hand, you can use the mkpasswd tool to manage your
/etc/passwd file instead of doing it by hand.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

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