Viewing and Modifying Permissions with SFTP
UNIX allows you to designate, on a file-by-file basis, who has permission to read the file and and/or write to the file. This is known as setting file permissions. When you upload a file, you become the owner of that file and it is assigned (usually) to the default permissions group that you are in. But, unless you say that other group members have permission to write to the file, they cannot make modifications, they’ll only be able to read the file.
You can use your Secure File Transfer Protocol (SFTP) program to change permissions on a file.
Using WinSCP for PC
- Select the file for which you wish to change permissions and right-click to bring up the contextual menu.
- Choose the option for Properties. You'll see a panel displaying the active permissions for the selected file.
When you upload a file to the Web server, the permissions are set by default so that the owner of the file can read and write to the file, the group and world can only read it (-rw-r--r--). If you’re working with a Web permissions group, then your default permissions should be set so that both you as the owner of the file and the group with whom you’re working will be able to write to the file (-rw-rw-r-).
- In the section called Permissions, make sure to enable the correct group file permissions by putting a check mark in the box next to the "W" on the line marked Group.
- Click the "OK" button to put the changes into place.
Using Fugu for Macintosh
- Select the file for which you wish to change permissions and click the Info button. The file's info window will open displaying the active permissions for the selected file.
When you upload a file to the Web server, the permissions are set by default so that the owner of the file can read and write to the file, the group and world can only read it (-rw-r--r--). If you’re working with a Web permissions group, then your default permissions should be set so that both you as the owner of the file and the group with whom you’re working will be able to write to the file (-rw-rw-r-).
- In the section called Permissions, make sure to enable the correct group file permissions by putting a check mark in the box next to "Write" on the line marked Group.
- Click the "Apply" button to put the changes into place.
Using Fetch for Macintosh
- Select the file for which you wish to change permissions and click the Info button. The file's info window will open displaying the active permissions for the selected file.
When you upload a file to the Web server, the permissions are set by default so that the owner of the file can read and write to the file, the group and world can only read it (-rw-r--r--). If you’re working with a Web permissions group, then your default permissions should be set so that both you as the owner of the file and the group with whom you’re working will be able to write to the file (-rw-rw-r-).
- In the section called Ownership and Permissions:, make sure to enable the correct group file permissions by putting a check mark in the box next to "Write" on the line marked Group.
- Click the "Apply" button to put the changes into place.
|
To download secure file transfer protocol software, log into your NYUHome account, click on the "Ask ITS" link in the "Help, FAQs, Contact ITS" channel, then click the "Browse All" link. Or, you may visit the ITS Software Page directly.
ITS provides WinSCP for PC and Fugu for Macintosh.
|