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 check the permission settings on files in my UNIX account?

How do I check the permission settings on files in my UNIX account?

Comment on the article
Views: 154371
Votes: 2
Comments: 0

It is always important to check the permissions on files in your UNIX account. If permissions are set incorrectly, other users may be able to view files that you did not mean to share publicly.

To check your file permissions:

In PuTTY and Terminal:

After connecting to your UNIX account, in either of these clients, type the following command to view information on files in your current directory, including the file permissions:

ls –l

In WinSCP:

After connecting to your UNIX account, look at your listing of your target directory (usually your root user folder or your public_html folder). This is by default the frame on the right side of the program window. Your permissions are listed under the “Rights” column.

In CyberDuck:

After connecting to your UNIX account, ctrl+click the file whose permissions you want to view. Choose ‘Info’ in the menu that appears to see the permissions. You can also select the file and press Command+I to see the information about the file.

Permissions are listed as a set of 10 (sometimes 9) flags:

Position 1: Specifies the type of file. This position will have the character ‘d’ if the file is a directory or a ‘-‘ if it is not. In some programs, the first position isn’t displayed at all if there is a ‘-‘ in the field.

Position 2-4: Specifies the permissions for the user.

Position 5-7: Specifies the permissions for groups.

Positions 8-10: Specifies permissions for the world.

Positions 2-10 will have either a r,w,x for Read, Write, or Execute permissions. If a flag for a particular permission is not set, there will by a ‘-‘ in that field.

Examples:

-rwxr--r-- : This file would have Read, Write, and Execute permissions for the user, but only read privileges for groups and world users.

drwx------ : This file is a directory in which only the owner can read, change, or execute.

Also read
document How do I change UNIX file permissions using PuTTy or Terminal?
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 change UNIX file permissions using PuTTy or Terminal?
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