7 lines
200 B
Bash
Executable file
7 lines
200 B
Bash
Executable file
#!/bin/bash
|
||
_hata(){
|
||
echo "mps yetkili kullanıcı ismini giriniz. ör: mps_yetkilendir ali"
|
||
exit 1
|
||
}
|
||
[ $1 ] && user=$1 || _hata
|
||
sudo echo "${user} ALL=(ALL) NOPASSWD:/root/bin/mps" >> /etc/sudoers
|