Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

chmod chown

// chown: change owner
chown -R user:group /path/to/directory     //recursively
chown -R root:root /path/to/directory
chown -R www-data:www-data /path/to/directory

// chmod: change mode, edit read/write access
chmod u=rw,g=rw,o=r document.docx
chmod 755 /path/to/directory
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #chmod #chown
ADD COMMENT
Topic
Name
1+6 =