From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078728412079.tru64-unix-managers.marc@archive.invalid> From: Mike McGovern Date: Fri, 20 Nov 1998 15:34:45 +0000 To: tru64-unix-managers Subject: SUMMARY: user templates - 3 questions X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078728412079 I asked: Question 1: How do I create a user template if I don't want to use dxaccounts? Answer: Set up a uid: useradd -u 65500 templx Set up the template: echo "templx:u_name=templx:u_id#65500:u_istemplate:chkent:" | edauth -s Question 2: What uid should templates get? Pre DU4.0D they seemed to get 65534, but DU4.0D seems to give them 65535 Answer: It doesn't seem to matter provided it's unique Question 3: edauth -g | grep u_istemplate should list all templates, but it doesn't list any; I can only see them by extracting each one in turn Answer: (Quoting directly from Spider:) The libsecurity routine getespwent() (which is what `edauth -g' uses) only lists things which have BSD-style accounts. Since the people who wrote usermod and dxaccounts decided, without getting buy-in from the people who do edauth and libsecurity, to suddenly stop putting template accounts in /etc/passwd or /var/yp/src/passwd (whichever's appropriate), that broke getting templates listed by `edauth -g'. Since `edauth -g user' uses getespwnam() rather than getespwent(), it does manage to find the entry. Thanks to: Spider Boardman John Losey -- Mike McGovern Information Systems Services +353 1 608 1932 ============= http://www.tcd.ie/People/Michael.McGovern