Загрузить файлы в «/»

This commit is contained in:
2025-04-21 20:56:51 +07:00
parent 844375f09d
commit 894d0eafe2
2 changed files with 9 additions and 0 deletions

9
Import.txt Normal file
View 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

Binary file not shown.