www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/13/09:06:25

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 385122 DOT 19410 DOT bm AT omp104 DOT mail DOT in2 DOT yahoo DOT com
X-YMail-OSG: yfugQ.kVM1nFZt1NMFeexXMvQX7jrImsq57NeAeVF23XWC_2GAQ2KqXz6SALENAA.r2NUy5GlHbNMra8QdTmmK1E_GxXwLgDg3REJwEWPgZ9y0Rr2tR.wptOLPY-
X-Mailer: YahooMailWebService/0.7.185
Date: Tue, 13 May 2008 18:35:49 +0530 (IST)
From: Jaspreet Singh <jaspreet_online2000 AT yahoo DOT com>
Reply-To: jaspreet_online2000 AT yahoo DOT com
Subject: cygwin virtual user
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <385301.27083.qm@web94916.mail.in2.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 m4DD6NUg014539

just a qus?

can we create virtual user in /etc/passwd file

like for real user entry is

test:unused_by_nt/2000/xp:real_UID:real_GID:name,U-PC\test,real_SID:/home/test:/bin/bash

Now above is the real userstring for real user 'test'. can i create a virtual user in cygwin /etc/passwd with values of real user 'test'.

like for virtual user entry is

XXXX:unused_by_nt/2000/xp:real_UID:real_GID:name,U-PC\test,real_SID:/home/XXXX:/bin/false

you can see that only login name, home dir and shell is changed.

now i just want to know that how can XXXX login with /bin/bash, that doesn't matter. Real thing i want to know is that does this will work with ssh and telnet if i change shell to be /bin/bash and does it work with UW-IMAP, proftpd and UW-POP. like they recognize this user as a real user.

Anybody got any idea ?

Hey i got something else for cygwin users. I create perl script's for useradd, userdel, usermod, groupadd, groupmod and groupdel that works fine on windows XP sp2 (My System). It can also create user and group with same name. Code is really messy as i am newbi to perl. just started perl 4 days ago.

Anybody like to try it.  


      Best Jokes, Best Friends, Best Food and more. Go to http://in.promos.yahoo.com/groups/bestofyahoo/


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