Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

chown a file

chown [OPTIONS] USER[:GROUP] FILE(s)

chown myUser file1.txt
chown -R myUser /var/www   #For recursive own
chown -hR www-data: /var/www      #For recursive including symbolic links
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #chown #file
ADD COMMENT
Topic
Name
4+1 =