Setting Up a Public Shared Directory

A public directory will help in sharing files with other users of the Mosaic System. The public directory can be setup in various ways but in general the idea is to allow other people to have access to your HOME directory and then also some level of write access to your public directory.

By default Mosaic accounts are setup with very restricted access, that is only you may read or write files in your directory. Others will not be able to even look in your directory - they will get a "Permission denied" message if they try.

To change this Mosaic uses Access Control Lists, ACL. Please see the page on ACL for more information on how to set permissions.


  1. Setting up a shared public directory in Windows.
  2. Setting up a shared public directory in Unix/Linux.

Windows Setup

  • Start --> My Computer --> Right click on AFS Unix Drive --> Select AFS --> Select Access Control Lists

    3
  • Select "Add" when the Set AFS ACL Window appears

    4
  • Enter the user login (Mosaic) ID --> Select "l - Lookup" for permissions --> Leave entry type as normal entry --> Click OK

    5
  • Now enter your AFS Unix Drive --> Create a new folder --> Re-name the folder "public"

    6
  • Right click on "public" folder --> Select AFS --> Select Access Control Lists --> Select Add

  • Enter the same user (Mosaic) ID in which you have entered above --> Select "w - Write" for permissions --> Leave entry type as normal entry --> Click OK

    7
  • The user you specified now has access to your "public" directory

Unix/Linux Setup

Note: To access your home directory under Unix, type 'cd' in the Terminal window, and for Linux, type 'cd ..' in the Terminal window.

  • To setup a public directory so that one person has write access to your public directory you would issue these commands: (replacing the loginid-of-friend with their actual login (Mosaic) ID)

             % cd
             % fs setacl . loginid-of-friend l
             % mkdir public
             % fs setacl public loginid-of-friend write
                    
    Example
    1

    2
    The user, dsglenn, now has access to the public directory.
  • To setup a public directory so that a small group of people have write access to your public directory you would issue these commands: (replacing the loginid-of-friend with their login ID)

             % cd
             % fs setacl . loginid-of-friend l
             % fs setacl . loginid-of-anotherfriend l
             % fs setacl . loginid-of-anotherfriend l
             % fs setacl . loginid-of-anotherfriend l
             % mkdir public
             % fs setacl public loginid-of-friend write
             % fs setacl public loginid-of-anotherfriend write
             % fs setacl public loginid-of-anotherfriend write
             % fs setacl public loginid-of-anotherfriend write
                
  • To setup a public directory so that everyone will have write access to your public directory you would issue these commands:

             % cd
             % fs setacl . system:anyuser l
             % mkdir public
             % fs setacl public system:anyuser write
                

    In these cases the people you have granted ACL access to will be able to copy and delete files in your public directory.