Загрузить файлы в «/»
This commit is contained in:
9
Import.txt
Normal file
9
Import.txt
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
csv_file="/opt/Users.csv"
|
||||
while IFS=";" read -r firstName lastName role phone ou street zip city country password; do
|
||||
if [ "$firstName" == "First Name" ]; then
|
||||
continuevim
|
||||
fi
|
||||
username=:"${firstName,,}.${lastName,,}"
|
||||
sudo samba-tool user add "$username" 123qweR%
|
||||
done < "$csv_file"
|
BIN
Гайд демо.docx
Normal file
BIN
Гайд демо.docx
Normal file
Binary file not shown.
Reference in New Issue
Block a user