milis/bin/mps_yetkilendir

8 lines
200 B
Plaintext
Raw Permalink Normal View History

2018-11-25 17:52:45 +01:00
#!/bin/bash
2018-11-25 18:08:08 +01:00
_hata(){
echo "mps yetkili kullanıcı ismini giriniz. ör: mps_yetkilendir ali"
exit 1
}
[ $1 ] && user=$1 || _hata
2018-11-25 18:09:26 +01:00
sudo echo "${user} ALL=(ALL) NOPASSWD:/root/bin/mps" >> /etc/sudoers