mps-yetkilendir
This commit is contained in:
parent
5e44b3bbc5
commit
a8e83c7e16
|
@ -1,2 +1,7 @@
|
|||
#!/bin/bash
|
||||
sudo echo "`whoami` ALL=(ALL) NOPASSWD:/root/bin/mps" >> /etc/sudoers
|
||||
_hata(){
|
||||
echo "mps yetkili kullanıcı ismini giriniz. ör: mps_yetkilendir ali"
|
||||
exit 1
|
||||
}
|
||||
[ $1 ] && user=$1 || _hata
|
||||
sudo echo "${userx} ALL=(ALL) NOPASSWD:/root/bin/mps" >> /etc/sudoers
|
||||
|
|
Loading…
Reference in New Issue