mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
JHT ==> Removed linefeed that caused problems.
This commit is contained in:
parent
ba28678e3f
commit
534b4c6d37
@ -55,8 +55,7 @@ foreach one ($argv)
|
||||
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
|
||||
printf( "%s:%s:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:%s:%s:%s\n", $1, $3, $5, $6, $7) }' USR=$unix >> $smbpasswd
|
||||
if ($unix != $ntid) then
|
||||
echo "Adding: {$unix = $ntid} to $user_map"
|
||||
echo "$unix = $ntid" >> $user_map
|
||||
@ -71,4 +70,4 @@ foreach one ($new)
|
||||
echo $line
|
||||
echo "ENTER password for $one"
|
||||
smbpasswd $one
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user