Re: More questions about mkgroup and mkpasswd
--On 30 November 2007 10:54 -0500 Larry Hall (Cygwin) wrote: It gathers information from the domain controller and adds it to these files. This should include all domain users and groups. This can be overkill but the good thing is that if it doesn't complain in the process or take way too long to generate, it just works. If there are tens of thousands of users in the domain who are never going to use the machine and probably also tens of thousands of groups that will never need to be known on the system it does take a bit too long. I have found that the /etc/passwd created by the postinstall script is fine but the /etc/group needs to be fixed. I have found that this creates a group file that works for me. /bin/mkgroup -l group /bin/mkgroup -d -g Domain Users group Things may get a bit more complicated if your computer account and your user account are in different domains but since I am not in that situation any more, I can't provide and details based on current experience. -- Owen Rees; speaking personally, and not on behalf of HP. Hewlett-Packard Limited. Registered No: 690597 England Registered Office: Cain Road, Bracknell, Berks RG12 1HN -- 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/
Re: More questions about mkgroup and mkpasswd
Erik Weibust wrote: So yesterday when I installed cygwin I got an error about my group being mkgroup and that it should be rebuilt. It mentioned that if I am a network user I should use mkpasswd and mkgroup with the -d flag. What is this giving me over just saying mkpasswd -l? All I see is it creating massive passwd and group files. It gathers information from the domain controller and adds it to these files. This should include all domain users and groups. This can be overkill but the good thing is that if it doesn't complain in the process or take way too long to generate, it just works. Also, I saw that my home dir in my /etc/passwd is somewhere that doesn't exist on a network server. Can I safely just change it to a local /home/user dir? Assign it to whatever you like. See the '-p' flag on 'mkpasswd'. Or just edit the '/etc/passwd' file afterward. Be careful not to change you user's SID info though. Lastly, I see that some of my files have a group of Users and others have Domain Users, how can I easily set all my files to the same group? I literally just installed Cygwin, so I have no problem reinstalling to get it right from the beginning, if there is a better way to install Cygwin when you are on a domain. chgrp -R Domain Users ~ The above has not be tested. It's meant to be an example, not a directive of what to do literally. See the man page for 'chgrp' for more details. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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/
More questions about mkgroup and mkpasswd
So yesterday when I installed cygwin I got an error about my group being mkgroup and that it should be rebuilt. It mentioned that if I am a network user I should use mkpasswd and mkgroup with the -d flag. What is this giving me over just saying mkpasswd -l? All I see is it creating massive passwd and group files. Also, I saw that my home dir in my /etc/passwd is somewhere that doesn't exist on a network server. Can I safely just change it to a local /home/user dir? Lastly, I see that some of my files have a group of Users and others have Domain Users, how can I easily set all my files to the same group? I literally just installed Cygwin, so I have no problem reinstalling to get it right from the beginning, if there is a better way to install Cygwin when you are on a domain. [EMAIL PROTECTED] /home $ ls -la total 8 drwxrwxrwx+ 3 eweibust Domain Users0 Nov 29 17:58 . dr-xr-x---+ 12 eweibust Users4096 Nov 29 17:58 .. drwxrwxrwx+ 2 eweibust Domain Users 4096 Nov 29 18:00 eweibust -- Erik Weibust developer, blogger - http://erik.weibust.net leader Dallas Java User Group (JavaMUG) - http://javamug.org leader Dallas Spring User Group (SDUG) - http://SpringDallasUG.org Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ -- 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/