OIT Frequently Asked Questions


Problem: Let someone copy a file from my account?
Entry: 0177

Solution:

This example illustrates user gt1111a wanting to access a file named "foo-file" in gt2222b's account. The file "foo-file" is in a subdirectory in gt2222b's account called "foo-dir".

Tthe person who is giving access to the files (in our example gt2222b) needs to perform the following steps (explanations follow):

1) Log into ACME (via ssh)
2) Grant "execute" access to their home directory (You only have to do this once). Type in the command:

chmod ~ o+x
3) Grant "execute" access to any subdirectories involved in the location of the file (You only have to do this once if at all). Type in the command
chmod o+x directoryname
In our example we would type:
chmod o+x foo-dir
4) Grant "read" access to the actual file (You have to do this for EACH file we want the other person to be able to read). Type in the command:
chmod a+r filename
In our example we would type:
chmod a+r foo-file


One the above is completed, user of the account we want to copy the file into (in our example gt1111a) then  needs to perform the following steps:

1) Log into ACME (via ssh)
2) Copy the file into their account using the command:

If the file lies in the user's root directory:

cp ~account/sourcefile destinationfile
If the file lies in a subdirectory:
cp ~account/directory/sourcefile destinationfile
In our example we would type:
cp ~gt2222b/foo-dir/foo-file foo-file

Feel free to submit a request for help for any of the following reasons:

Main Menu