Finding out who owns what

Your first step in changing ownership and permissions is to find out who owns which files. You'll need this information to find out whether you can make changes to the permissions.

To find out who owns what:

1.
cd
At the shell prompt, type cd to return to your home directory.
2.
ls -l
Enter ls -l to see the long listing of the files in the current directory (see Code Listing 5.1). The left column contains nine characters that specify permissions for each file:
Code Listing 5.1. Many systems use only a few group names to allow easy file sharing and collaboration.
 xmission> cd /home/users/e/ejray xmission> ls -l total 60 drwx--x--x 2 ejray users 512 Jul 21 13:32 Complete/ drwx--x--x 2 ejray users 512 Jun 24 09:23 Completed/ ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.