This is the mail archive of the cygwin-announce@sourceware.cygnus.com 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]

New package `login' in latest


I have uploaded a version of `login' ported to
Cygwin version 1.1.1 to sourceware.cygnus.com.
You will find it in latest/login, named

	login-1.2.tar.gz
	login-1.2-src.tar.gz

Description:
============

This is the actual port of `login(1)' to work under Cygwin 1.1.1
with eg. telnetd(8).

It's patched to allow login of domain users.
Setting CYGWIN=ntsec is mandatory for that feature.

/etc/passwd and /etc/group have to be created so that
they contain the SIDs of the users and groups. The
new mkpasswd and mkgroup tools since cygwin V1.1.0
create the files that way by default.

Change /etc/passwd either so:

    Change the pw_name field so that it contains the nt-domain
    and the nt-username separated by a backslash:

    domain\user::1104:513:John Doe,S-1-5-21-...

    Disadvantage: You can't see the username in calls to `ls -l'
    anymore because ls shortens the name to 8 characters. Moreover
    you will have to use this long form (domain\user) on the command
    line, eg. in calls to chown(1).

or so:

    The pw_gecos field may contain an additional field, that
    beginns with (upper case!) "U-", followed by the domain
    and the username separated by a backslash.
    CAUTION: The SID _must_ remain the _last_ field in pw_gecos!!!
    BTW: The field separator in pw_gecos is the comma.
    The username in pw_name itself may be any nice name:

    domuser::1104:513:John Doe,U-domain\user,S-1-5-21-...

    Now you may use `domuser' as your login name with telnet!!!
    This is possible additionally for local users, if you don't like
    your NT login name ;-) You only have to leave out the domain:

    locuser::1104:513:John Doe,U-user,S-1-5-21-...

    Disadvantage: No other field in pw_gecos may begin with "U-".


Corinna Vinschen <vinschen@cygnus.com>
Cygwin Developer
Cygnus Solutions, a Red Hat Company

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