delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/09/11:10:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 76551 DOT 8536 DOT bm AT omp109 DOT mail DOT in2 DOT yahoo DOT com
X-YMail-OSG: PptcpnAVM1nnzv_DumIPZ8jJoH29O7hVfGGX7TPDtQr67b2NKbwGUHAfN5Akii2fTuZ3.t8fOKlLefzEKsyEKFjhX3uL.kwIRUUIYeew.QN7xsybQ70qFCB.vvw-
X-Mailer: YahooMailWebService/0.7.185
Date: Fri, 9 May 2008 20:39:26 +0530 (IST)
From: Jaspreet Singh <jaspreet_online2000 AT yahoo DOT com>
Reply-To: jaspreet_online2000 AT yahoo DOT com
Subject: Re: cygwin perl useradd command
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.64.0805091314490.5627@brains.eng.cse.dmu.ac.uk>
MIME-Version: 1.0
Message-ID: <787560.80682.qm@web94913.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-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 m49FA6jm028282

ok Hugh Sasse

as you have saw what i have done. i understand everything you wrote as i am a programer like about using functions and grep. But, the problem is that i am a windows programer and do programing in Visual Basic, I have already compleated this useradd, usermod , userdel, etc Commands in VB.
VB programs cant be distributed as it need licence from Microsoft. So, i was tring to do open source kinda thing.

Believe me i dont know anything about Perl. I was just tring to write a script for these commands and still tring as i have ported webmin and virtualmin to cygwin with all of the required modules for virtual server and administartion of system, the only command it requre is now thease useradd, userdel and so on, And quotaon, quotadel and so on. Even quota can work on cygwin as on windows with NTFS partition it has command "fsutil quota" to manupulate user quota on command line.

so as i am tring if you can do what you just wrote to my sample perl script it will be really a great.

The big problem is user and group with same name with virtualization in passwd and group file. How to calculate that

The easiest way is create real user with "_usr" and real group with "_grp" at the end of the username and groupname in windows, then input in passwd and group file on cygwin without "_usr" and "_grp", with real UID and GID.


      Meet people who discuss and share your passions. 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