home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / sysv386 / 13092 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.6 KB  |  37 lines

  1. Newsgroups: comp.unix.sysv386
  2. Path: sparky!uunet!mcsun!fuug!funic!saha.fmi.fi!ptuomola
  3. From: ptuomola@saha.fmi.fi (Petri Tuomola)
  4. Subject: Re: MASTER cshrc/login file?
  5. Message-ID: <1992Aug13.062656.4532@nic.funet.fi>
  6. Sender: usenet@nic.funet.fi
  7. Nntp-Posting-Host: saha.fmi.fi
  8. Organization: Finnish Meteorological Institute
  9. References: <3420@huedv.sta.sub.org> <1992Aug10.174339.21463@spillman.uucp> <0HZ5QAH@mailgzrz.tu-berlin.de>
  10. Date: Thu, 13 Aug 92 06:26:56 GMT
  11. Lines: 24
  12.  
  13. >|> I think that means that the "adduser" function copies /etc/defaults/.cshrc
  14. >|> to $HOME/.cshrc for the new user (perhaps only if you have selected csh
  15. >|> as that user's login shell).  That would be consistant with several other
  16. >|> Unix flavors.
  17. >
  18. >Adduser copies not the file in /etc/default, is copies
  19. >/etc/stdcshrc and /etc/stdlogin.
  20.  
  21. After all, adduser is just a shell script, so why not edit it to copy
  22. whatever you want to wherever you want it. For an example, my adduser
  23. asks sysadm what shell will be assigned to user, assigns it, copies
  24. the appropriate .login, .cshrc and .logout-files (different for tcsh,
  25. csh and sh, of course), automaticly determines first free uid and asks 
  26. for gid, sends welcome mail to user and creates a home directory (location
  27. specified by gid) and adds his/her name to full name database (used by
  28. the mail system...)
  29.  
  30. Petri
  31.  
  32. -- 
  33. Petri Tuomola    - ptuomola@saha.fmi.fi       - ptuomola@clinet.fi
  34. Ylipalontie 10AC - Voice: +358 0 754 2881  - Data: +358 0 749 094
  35. 00670 Helsinki   - HAM: OH2LJY           - IRC: ptuomola
  36.  ** Hi! I'm a signature virus. Copy me to your .sig to join in ** 
  37.