Sharing data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 20: Line 20:
You can alter these permissions using the command <tt>chmod</tt> in conjunction with the octal notation discussed above, so for example  
You can alter these permissions using the command <tt>chmod</tt> in conjunction with the octal notation discussed above, so for example  
{{Command|chmod 777 name_of_file}}  
{{Command|chmod 777 name_of_file}}  
means that everyone on the machine now has the right to read, write and execute this file. Naturally you can only modify the permissions of a file or directory you own. You can also alter the owner and group by means of the commands <tt>chown</tt> and <tt>chgrp</tt> respectively.   
means that everyone on the machine now has the right to read, write and execute this file. Naturally you can only modify the permissions of a file or directory you own. You can also alter the group by means of the command <tt>chgrp</tt>.   


The file permissions discussed above have been available in Unix-like operating systems for decades now but they are very coarse-grained. The whole set of users is divided into just three categories: the owner, the group, and everyone else. What if I want to allow a single user who isn't in my group to read a file? Do I really need to make the file readable by everyone in that case? No. The Compute Canada's national systems offer "access control lists" (ACLs) to enable permissions to be set on a user-by-user basis if desired. The two commands needed to manipulate these extended permissions are  
The file permissions discussed above have been available in Unix-like operating systems for decades now but they are very coarse-grained. The whole set of users is divided into just three categories: the owner, the group, and everyone else. What if I want to allow a single user who isn't in my group to read a file? Do I really need to make the file readable by everyone in that case? No. The Compute Canada's national systems offer "access control lists" (ACLs) to enable permissions to be set on a user-by-user basis if desired. The two commands needed to manipulate these extended permissions are  
Bureaucrats, cc_docs_admin, cc_staff
2,306

edits

Navigation menu