I'm trying to make it to where I can change the permissions of a file so that anyone can read sed file; however the file is being printed by the root & can only be changed via the root. I created a script but it still needs a password & I would like it to where a password is not required.
My Script
for file in /home/mmkmmk3/history/*.txt
do
chmod 777 $file >> results.out
done
Now is there anyway I can bypass having to enter in any password? I know the risk of an automated root password enter via a script so I don't need a lecture on that, mind you. A nice fix would be nice!
My Script
for file in /home/mmkmmk3/history/*.txt
do
chmod 777 $file >> results.out
done
Now is there anyway I can bypass having to enter in any password? I know the risk of an automated root password enter via a script so I don't need a lecture on that, mind you. A nice fix would be nice!
Comment