This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: profile - mkpasswd, mkgroup
John,
On Sun, Jul 28, 2002 at 12:47:47PM +0100, John Morrison wrote:
> if $USERDOMAIN == `hostname` ; then
> # running locally
> /bin/mkgroup -l > /etc/group
> /bin/mkpasswd -l > /etc/passwd
> else
> # running as part of a domain
> /bin/mkgroup -d > /etc/group
> /bin/mkpasswd -d > /etc/passwd
> fi
I caution against blind use of the -d option above. In large domain
environments, the mkgroup and mkpasswd commands could take hours to
complete! We use something like the following procedure:
mkpasswd -l >/etc/passwd
mkpasswd -d -u $USERNAME >>/etc/passwd
mkgroup -l >/etc/group
# add needed domain groups (e.g., "Domain Users") to /etc/group
Unfortunately, I have *not* figured out how to automate the domain
groups step.
Jason
--
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/