1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3/script/mknissmbpwdtbl.sh
Andreas Schneider cb10b8704e s3:script: Reformat shell scripts
shfmt -f source3/script/ | xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Mar  3 01:53:16 UTC 2022 on sn-devel-184
2022-03-03 01:53:16 +00:00

42 lines
733 B
Bash
Executable File

#!/bin/sh
#
# Copyright (C) 1998 Benny Holmgren
#
# Creates smbpasswd table and smb group in NIS+
#
nistbladm \
-D access=og=rmcd,nw= -c \
-s : smbpasswd_tbl \
name=S,nogw=r \
uid=S,nogw=r \
user_rid=S,nogw=r \
smb_grpid=,nw+r \
group_rid=,nw+r \
acb=,nw+r \
\
lmpwd=C,nw=,g=r,o=rm \
ntpwd=C,nw=,g=r,o=rm \
\
logon_t=,nw+r \
logoff_t=,nw+r \
kick_t=,nw+r \
pwdlset_t=,nw+r \
pwdlchg_t=,nw+r \
pwdmchg_t=,nw+r \
\
full_name=,nw+r \
home_dir=,nw+r \
dir_drive=,nw+r \
logon_script=,nw+r \
profile_path=,nw+r \
acct_desc=,nw+r \
workstations=,nw+r \
\
hours=,nw+r \
smbpasswd.org_dir.$(nisdefaults -d)
nisgrpadm -c smb.$(nisdefaults -d)
nischgrp smb.$(nisdefaults -d) smbpasswd.org_dir.$(nisdefaults -d)