diff options
author | John Terpstra <jht@samba.org> | 2002-12-18 21:19:24 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 2002-12-18 21:19:24 +0000 |
commit | 8191e7aa156744f74750d7f61474cd8798f1e823 (patch) | |
tree | 75b80319566c0434cc6212ebfcb820d2a014d50d /source3/smbadduser | |
parent | aa3e8c598e4b1b3b15282b37e3aebf107cadfd0e (diff) | |
download | samba-8191e7aa156744f74750d7f61474cd8798f1e823.tar.gz samba-8191e7aa156744f74750d7f61474cd8798f1e823.tar.bz2 samba-8191e7aa156744f74750d7f61474cd8798f1e823.zip |
Updated from Samba-2.2.7 code tree.
(This used to be commit 316321308108dcb7b06acac5dccecd18e9b46dd3)
Diffstat (limited to 'source3/smbadduser')
-rwxr-xr-x | source3/smbadduser | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbadduser b/source3/smbadduser index e4e1b273d1..9837413aeb 100755 --- a/source3/smbadduser +++ b/source3/smbadduser @@ -6,13 +6,15 @@ unalias * set path = ($path /usr/local/samba/bin) set smbpasswd = /usr/local/samba/private/smbpasswd +#set smbpasswd = /etc/samba/smbpasswd set user_map = /usr/local/samba/lib/users.map +#set user_map = /etc/samba/smbusers # # Set to site specific passwd command # -#set passwd = "cat /etc/passwd" +set passwd = "cat /etc/passwd" #set passwd = "niscat passwd.org_dir" -set passwd = "ypcat passwd" +#set passwd = "ypcat passwd" set line = "----------------------------------------------------------" if ($#argv == 0) then @@ -53,9 +55,7 @@ foreach one ($argv) endif echo "Adding: $unix to $smbpasswd" - eval $passwd | \ - awk -F: '$1==USR { \ - printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd + /usr/bin/smbpasswd -a -n $unix if ($unix != $ntid) then echo "Adding: {$unix = $ntid} to $user_map" echo "$unix = $ntid" >> $user_map |