import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunk
[metze/old/v3-2-winbind-ndr.git] / source / script / mknissmbpwdtbl.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 1998 Benny Holmgren
4 #
5 # Creates smbpasswd table and smb group in NIS+
6 #
7
8 nistbladm \
9     -D access=og=rmcd,nw= -c \
10     -s : smbpasswd_tbl \
11         name=S,nogw=r \
12         uid=S,nogw=r \
13                 user_rid=S,nogw=r \
14                 smb_grpid=,nw+r \
15                 group_rid=,nw+r \
16                 acb=,nw+r \
17                           \
18         lmpwd=C,nw=,g=r,o=rm \
19         ntpwd=C,nw=,g=r,o=rm \
20                                      \
21                 logon_t=,nw+r \
22                 logoff_t=,nw+r \
23                 kick_t=,nw+r \
24                 pwdlset_t=,nw+r \
25                 pwdlchg_t=,nw+r \
26                 pwdmchg_t=,nw+r \
27                                 \
28                 full_name=,nw+r \
29                 home_dir=,nw+r \
30                 dir_drive=,nw+r \
31                 logon_script=,nw+r \
32                 profile_path=,nw+r \
33                 acct_desc=,nw+r \
34                 workstations=,nw+r \
35                                    \
36                 hours=,nw+r \
37         smbpasswd.org_dir.`nisdefaults -d`
38
39 nisgrpadm -c smb.`nisdefaults -d`
40
41 nischgrp smb.`nisdefaults -d` smbpasswd.org_dir.`nisdefaults -d`
42