additional_2

additional_2 - Chapter 3 Some additional notes File...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 3 Some additional notes… File permissions A file has three types of permissions (read, write and execute). Available to three categories of users (user, group and others). Can see the permission settings using ls –l {cs1:~/public_html/teaching/3375/file_permissions} ls -l total 4 -r-x------ 1 kcooper cs 24 Sep 7 10:41 testfile1 -r-x------ 1 kcooper cs 24 Sep 7 10:48 testfile2 - r-x - - - - - - Directory, followed by three sets of 3 bits indicating permissions First set? Owner Second set? Group Third set? Others r stands for read, w stands for write, x stands for execute Owner can read and execute this file
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Need to be able to change the file permissions Why? Protect files from accidental deletion or modification (archive) Allow team members to read, modify, execute, possibly even delete a file without having to send them a copy Setting up your webpage on unix – have to make the html files accessible or no one will be able to see it! Unix command is chmod Command allows us to change the permission settings Examples (can use relative or absolute permissions): chmod o+rwx testfile1 -r-x---rwx 1 kcooper cs 24 Sep 7 10:41 testfile1 // “o” is for “other”, “+” means add permission
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 10

additional_2 - Chapter 3 Some additional notes File...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online