Linux file permissions - zacharylongo/Tech-Journals GitHub Wiki


Useful commands


chmod: Changes permissions. g = group o = everyone


groupadd (group name) : Adds group


useradd (username) : Adds User


passwd (user) : sets password


usermod -AG (directory) (user):


cat (filename): shows directory location of file


File permissions in linux can be managed as follows: First, one must set up users and groups by using groupadd and useradd. Second, one must add the users to the groups/directories using usermod. Thirdly, one must use chmod to manage permissions on a given file or directory. As a note: its necessary to navigate to the correct directory in order to modify files. Use command "ls - l" to view current files in directory.