Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Create a bash script that asks users to change permission

#!/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"
 
PREVIOUS NEXT
Tagged: #Create #bash #script #asks #users #change #permission
ADD COMMENT
Topic
Name
6+2 =