1 / 10

File System Security ls -l

File System Security ls -l. First Columm. d = directory l = symbolic link b = block special file c = character special file p = fifo (or named pipe) special file - = ordinary file s = named socket special file. Second Column. rwx --- --- user “owner” permissions:

Download Presentation

File System Security ls -l

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. File System Security ls -l

  2. First Columm • d = directory • l = symbolic link • b = block special file • c = character special file • p = fifo (or named pipe) special file • - = ordinary file • s = named socket special file

  3. Second Column • rwx--- --- • user “owner” permissions: • if you created it, you own it • --- rwx --- • group “owner” permissions: • you and other people in the owner’s group • --- --- rwx • other “world” permissions: • everyone else

  4. Three types of file access: • Read – List the contents of a file • Write – Update the contents of the file • Execute – If the file is a program, run it Three types of directory access: • Read – List the files in the directory • Write – Rename or delete files in the directory, or copy files to the directory • Execute – cd to the directory

  5. chmod • chmod u (user) • chmod g (group) • chmod a (all) • chmodu+w ./quarters = add write permission to user • chmodg+rwx ./quarters = add all permssions to all • chmod a-wx ./quarters = remove write and execute for all

  6. chmod chmod 744 ./quarters chmod 774 ./quarters chmod 544 ./quarters

  7. umask • Change the system-wide default permission • Default permissions for all files created in the future until umask is changed • umask 077

  8. chown • chown = change file ownership • chownhoffmann ./quarters

  9. chgrp • chgrp = change group owner • chgrpthegame ./quarters

  10. newgrp • switching groups • newgrpthegame

More Related