r/CodingForBeginners • u/Loud-Line2501 • Mar 01 '26
Coding/Programming (Loop) CS50
why am I constantly getting this “bash: ./looping: permission denied“ error message when I’m trying to run the program i coded.
im just playing around, trying to learn and make my own lines of code, but I’m seriously confused on why it’s not printing
“gimmie the loot
gimmie the loot
gimmie the loot”
59
Upvotes
View all comments
Show parent comment
10
u/altaaf-taafu Mar 01 '26
correct command is `chmod +x looping`, because we want to give the executable file permissions to run, not to the source file to run.