#[SOLVED]how do I give -rw-r--r-- to a directory?
20 messages · Page 1 of 1 (latest)
644 
@versed rover so take 000
first digit users’ permissions, second the rest of the group, and third anyone else
add 4 to the number for read permissions
add 2 to the number for write permissions
add 1 for execute permissions
then chmod [the number] /path/to/directory
no 644
note that it only changes the permissions of the directory itself and not anything inside it
if you want to affect everything inside it then do chmod -R
d stands for directory
thats how i knew it was a directory
so i mean to get rid of the r youd have to make it a non directory
you also need x for directories
oh
otherwise you cant cd into it nor know what it contains or do anything inside it
744 then
755
which is what the old perms was
hmm
what is this?
accessing files on browser?
try adding execute for the html file
oh right
yeah idk why it's not letting you