OK, so I think the script as stands is... case "`id -ng`" in mkpasswd ) echo "Your group is currently \"mkpasswd\". This indicates that" echo "the /etc/passwd (and possibly /etc/group) files should be rebuilt." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l [-d] > /etc/passwd" echo "mkgroup -l [-d] > /etc/group" echo "as appropriate. Note that the -d switch is necessary for" echo "domain users." ;;
mkgroup ) echo "Your group is currently \"mkgroup \". This indicates that" echo "the /etc/group (and possibly /etc/passwd) files should be rebuilt." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l [-d] > /etc/passwd" echo "mkgroup -l [-d] > /etc/group" echo "as appropriate. Note that the -d switch is necessary for" echo "domain users." ;; mkgroup_l_d ) echo "Your group name is currently \"mkpasswd_l_d\". This indicates that not all" echo "domain users and groups are listed in the "/etc/passwd and /etc/group files." echo "See the man pages for mkpasswd and mkgroup then, for example, run" echo "mkpasswd -l -d [-u yourUser] >> /etc/passwd" echo "mkgroup -l -d > /etc/group" echo echo "This message is only displayed once and can be safely ignored." # only display the above once cp -p /etc/group /etc/group.mkgroup_l_d \ && chmod a+w /etc/group \ && sed -e 's/^mkgroup_l_d/mkgroup-l-d/' group.mkgroup_l_d > /etc/group \ && chmod --reference=group.mkgroup_l_d /etc/group \ && chown --reference=group.mkgroup_l_d /etc/group rm -f group.mkgroup_l_d ;; esac It doesn't matter _overly_ if this doesn't work in all cases, I'd like to aim for an engineers 100% (99.9999999%), but I'll settle for it working for at least most typical installations. Its not the advanced users I'm so bothered about (since they will already have a /etc/profile installed), its improving the OOTB experience for those who are just 'playing' with cygwin. Thanks for the help guys; anything else? :) J. ========================================================================== Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other binding commitment through the use of this electronic communication unless it is issued in accordance with the Experian Limited standard terms and conditions of purchase or other express written agreement between Experian Limited and the recipient Experian Limited (registration number 653331) Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
