News:

SMF - Just Installed!

Main Menu

All my files has all permissions except s

Started by kalpana, Nov 04, 2023, 03:14 AM

Previous topic - Next topic

kalpana

Hi,

I just noticed that whenever I create a new file, it always has 777 rights. I have no idea when I started to have this issue because ironically I just noticed this after taking the first lesson on Secure Programming. How can I revert this behaviour, or is it normal and I am panicking for nothing?

Code:
touch some.txt
ls -l

Outputs:
Code:
total 0
-rwxrwxrwx 1 user user 0 Mar  7 21:36 some.txt

I used touch here but the following commands also ended up in the same behaviour:
vim file.txt
echo "some text" > file.txt