#[SOLVED]how do I give -rw-r--r-- to a directory?

20 messages · Page 1 of 1 (latest)

restive flame
#

@versed rover chmod ug-x /path/to/directory

visual kiln
#

644 trollface

restive flame
#

@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

quartz glade
#

you also need x for directories

restive flame
#

oh

quartz glade
#

otherwise you cant cd into it nor know what it contains or do anything inside it

restive flame
#

744 then

quartz glade
#

755

#

which is what the old perms was

#

hmm
what is this?

#

accessing files on browser?

#

try adding execute for the html file

restive flame
quartz glade
#

yeah idk why it's not letting you