Results 1 to 1 of 1
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 ...
- 04-26-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 1
linux scripts
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"


Reply With Quote