delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <20030107010551.77153.qmail@web11202.mail.yahoo.com> |
Date: | Mon, 6 Jan 2003 17:05:51 -0800 (PST) |
From: | Jon Clegg <jonclegg AT yahoo DOT com> |
Subject: | adduser script for cygwin and NT/2000/XP |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Hello, I have created a adduser script for NT/2000/XP, it’s not general purpose as it assumes you are running a ssh server, however it shows that is is necessary to restart sshd once a user is added; This is not obvious, and has taken me a while to figure that out myself. I am posting this basically so that anyone else who had the same problem I did will have a drag and drop solution, I would have loved to have seen this when I was looking for an answer. Enjoy, -Jon ------ adduser.sh ----- !/bin/sh if [ $1 ]; then net user $1 /add passwd $1 mkpasswd -l > /etc/passwd net stop sshd net start sshd else echo "User name is required"; fi __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |