hallo
i am new to linux.
i would like help with a script.i want the script to create a file and give everyone permission to read ,write and excute it and after one minute i want the permission to be read only and to echo a message "you no longer have access ".

i have tried the following and it creates and gives the permissions but does to echo the message "you no longer have access "..

thanks


#!/bin/bash
echo "enter time"
read time

touch bin/jozat
echo chmod 777 bin/jozat | at now + 1 minutes
echo chmod 700 bin/jozat | at now + 2 minutes && echo "you no longer have access"