Line 87: |
Line 87: |
| read -p "set the password : " password | | read -p "set the password : " password |
| | | |
− | read -p "set the first group : " groupe1 | + | read -p "set the first group : " group1 |
| | | |
− | read -p "set the second group : " groupe2 | + | read -p "set the second group : " group2 |
| | | |
| read -p "set the Limit with grace period (M or G) : " quota1 | | read -p "set the Limit with grace period (M or G) : " quota1 |
Line 95: |
Line 95: |
| read -p "set the Absolute limit (M or G) : " quota2 | | read -p "set the Absolute limit (M or G) : " quota2 |
| | | |
− | lat-users -a -c "$login|$firstname|$lastname|$password|||||||||$groupe1|$groupe2" | + | lat-users -a -c "$login|$firstname|$lastname|$password|||||||||$group1|$group2" |
| lat-quota -c "$login|$quota1|$quota2" | | lat-quota -c "$login|$quota1|$quota2" |
| | | |
Line 101: |
Line 101: |
| | | |
| /usr/bin/script-lazy | | /usr/bin/script-lazy |
| + | |
| + | Or this one if you want to have some default values. |
| + | |
| + | #!/bin/bash |
| + | |
| + | read -p "set the login (mandatory field) : " login |
| + | |
| + | read -p "set the firstname (mandatory field) : " firstname |
| + | |
| + | read -p "set the lastname (mandatory field) : " lastname |
| + | |
| + | read -p "set the password : " password |
| + | |
| + | group1='bpa_tap_adultes' |
| + | group2='eleves' |
| + | quota1='150M' |
| + | quota2='152M' |
| + | |
| + | lat-users -a -c "$login|$firstname|$lastname|$password|||||||||$group1|$group2" |
| + | lat-quota -c "$login|$quota1|$quota2" |
| + | |
| + | read -p "Do you want to launch it again, then type enter, else ctrl+c: " |
| + | |
| + | /usr/bin/script-lazy |
| + | |
| + | Then |
| | | |
| chmod 755 script-lazy | | chmod 755 script-lazy |