SUMMARY: user templates - 3 questions

From: Mike McGovern <mcgovern_at_tcd.ie>
Date: Fri, 20 Nov 1998 15:34:45 +0000

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 <spider_at_Orb.Nashua.NH.US>
        John Losey <JOHLOS_at_HBSI.COM>
-- 
Mike McGovern    Information Systems Services +353 1 608 1932
=============    http://www.tcd.ie/People/Michael.McGovern
Received on Fri Nov 20 1998 - 15:33:37 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT