This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: How to resolve 'Your group is currently "mkpasswd"' message


Hi David,

> Never mind.  The strategy of using "-ldu" on mkpasswd along with "-ld"
> on mkgroup is useful.  We have 8 zillion users, but a much smaller
> number of groups.  The "mkgroup -ld" completed in just a few minutes.

In a corporate environment (with domains), I run this:
mkpasswd -l -c > /etc/passwd; mkgroup -l -d > /etc/group

I haven't worked out a nice way to update /etc/passwd to reflect a
different home dir, so I make sure to set HOME environment variable
and the run this:
cat /etc/passwd | sed "s|:/home/$USERNAME:|:$HOME:|" > /etc/passwd

This gave me such a big headache recently, I wrote about it here:
http://bit.ly/t7qRK

Rob
:)

General Blog: http://robertmarkbram.blogspot.com/
Technical Blog: http://robertmarkbramprogrammer.blogspot.com/
Profile: http://www.google.com/profiles/robertmarkbram

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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