Cygwin group/passwd setting

February 17, 2008

In case anything goes wrong with user accounts, carry on the following steps:

mkpasswd -l -c > /etc/passwd

mkgroup -l -c > /etc/group

mkpasswd -d -u <username> /etc/passwd (optional)

mkgroup -d | grep <username> /etc/group (optional)

Entry Filed under: All, Tools. .

1 Comment Add your own

  • 1. Rojanu  |  July 29, 2008 at 4:50 am

    Commands should be
    mkpasswd -d -u “username” > /etc/passwd

    mkgroup -d -u | grep “username” >> /etc/group

    put your username where username appears in the command without the quotes, “u” option tells mkgroup to print user names.

    Reply

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

February 2008
M T W T F S S
« Sep   Mar »
 123
45678910
11121314151617
18192021222324
2526272829  

Most Recent Posts