📌  相关文章
📜  创建一个要求用户更改权限的 bash 脚本 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:43.591000             🧑  作者: Mango

代码示例2
#!/bin/bash
until ["$input"= 'no']
do
    echo "Enter the name of file to change permissions"
    read filename
    chmod 777 $filename
    echo "$filename permissions has been changed"
    echo "Would you like to change the permissions of another file?(yes or no)"
    read input
done
    echo "You typed: $input"