The University of Tennessee, Knoxville

Office of Information Technology


About OIT  |  Contact Us  |  Employment  |  Policies   
Search:     Advanced search
Browse by category:
Glossary

OIT HelpDesk - Knowledge Base / Account Admin/Access Control / Unix / How do I change UNIX file permissions using PuTTy or Terminal?

How do I change UNIX file permissions using PuTTy or Terminal?

Comment on the article
Views: 160680
Votes: 12
Comments: 0

In PuTTy or Terminal, you must change permissions using the ‘chmod’ command. The syntax for the command is as follows:

chmod ### filename

In this command, each number specifies the permissions for one of three groups. The first number sets permissions for the owner of the file, the second sets permissions for groups of other users, and the third sets permission for the rest of the world.

When you set permissions for a group, you will set it to a number 0-7:

0=No Permissions Whatsoever

1=Execute Only

2=Write Only

3=Write and Execute

4=Read Only

5=Read and Execute

6=Read and Write

7=Read, Write, and Execute

Examples:

If you would like to make a file in your UNIX account only readable by other users and the world, your chmod command might look something like this:

chmod 744 test.doc

If you would like the file to be fully readable and modifiable by everyone, your chmod command would look like this:

chmod 777 test.doc

Be careful when setting permissions on files, as setting the wrong permissions may prevent other users from viewing your websites or may make it impossible for you to modify a file until permissions are corrected.

Also read
document Whenever I try to view my website, I get a Permission Denied or Forbidden (403) error.
document How do I check the permission settings on files in my UNIX account?
document How do I change UNIX file permissions using WinSCP?
document How do I change UNIX file permissions using Cyberduck?

Others in this Category
document I'd like to give my friends/family access to my account, is that okay?
document How do I setup a UNIX account?
document I went to the webpage and tried to register for a UNIX account but it said that I wasn't in the directory. I am a registered student for the next semester, or I'm a newly hired faculty or staff member - why can't I register?
document My UNIX account is now set up. Now what do I do?
document How do I transfer files from my PC to my UNIX account and vice versa?
document How do I get UNIX to show me my current working directory at the prompt?
document Once I get my UNIX account, how long can I keep it?
document Do I have to use my personal account for my department or organization's Web page?
document What if I need more space on my Unix account than 50 MB?
document How long will my Unix account be available after graduation?
document When I log in to my Unix account, I don't get my normal prompt and nothing seems to be working correctly. What's wrong?
document I reset my UNIX password but I still can't get into my account to read my mail or anything else, what do I do?
document I log into my UNIX account and use Pine to check my mail. I can login just fine but when I try to use Pine it complains about my terminal emulation. What does that mean?
document My prompt has a lot of stuff in it but it ends with a $. How do I fix the emulation problem?
document My prompt has a bunch of stuff in it but it ends with a %. How do I fix the emulation problem?
document What is TELNET, and is it supported?
document Why do I need to worry about security? Can it be that easy for someone to get my password?
document Where can I download an SSH/SFTP client?
document Will the HelpDesk help me build my website?
document What is SFTP?
document What information do I need (server name, etc.) if I want to upload files to my UNIX account?
document I'm logged into a UNIX machine. How do I change my password from the command prompt?
document How do I configure Dreamweaver to securely connect to my Unix account?
document What is SSH?
document How do I download and configure Fetch (for Mac OS) to connect to my Unix account?
document How do I configure Cyberduck (for Mac OS) to connect to my Unix account?
document What SSH/SFTP clients does the OIT HelpDesk support?
document How do I configure PuTTY (for Windows) to connect to my Unix account?
document How do I configure WinSCP (for Windows) to connect to my Unix account?
document Is .rhost authentication available?
document What are ssh keys?
document I use unix.cas.utk.edu as an email storage location. What do I need to do to make sure I'm using a secure IMAP connection?
document Will the unencrypted connection to VolSpace continue to be available?
document I use an X server to run X sessions on UT's Unix servers. What connection methods are available to me?
document I use pine to connect to unix.cas.utk.edu. What should my folder collection settings be?
document How do you change the responsible account for a Departmental UNIX accounts space?
document How do I change the ownership of a departmental account (NetID, Tmail, or UNIX account)?
document How much disk space do I have with a UNIX account?
document What is UNIX?
document What is my default UNIX password?
document I've Forgotten One of My Passwords! Help!
document What is a Virtual Host?
document How Do I Request a Virtual Host?
document What is the cost for setting up a virtual host?
document How do I check the permission settings on files in my UNIX account?
document How do I change UNIX file permissions using WinSCP?
document How do I change UNIX file permissions using Cyberduck?
document How do I check my UNIX quota?
document How do I password protect a directory on my UNIX account?
document What is the difference between the new Linux/Volweb service and the previous UNIX/Volspace service?



RSS

 

The University of Tennessee, Knoxville. Big Orange. Big Ideas.

Knoxville, Tennessee 37996 | 865-974-1000
The flagship campus of the University of Tennessee System