Can you explain briefly the main concepts and command line tools used to manage file permissions?
Ubuntu – How do file permissions work
chmodcommand linepermissions
chmodcommand linepermissions
Can you explain briefly the main concepts and command line tools used to manage file permissions?
Best Answer
Each file has rights for three different categories:
Rights mean the right to read the file, the right to write to the file, or the right to execute the file in case of a script or program.
On the CLI, you may
chown
, e.g.chown guillermooo
chgrp
, e.g.chgrp root
chmod
, e.g.chmod u+w filename.ext
(Adds writing permission for the owner of the filefilename.ext
)If you'd like to know more about each of these tools, open a terminal and type
man [tool]
, e.g.man chmod
.