Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Understanding Access Rights
#1

Understanding Access Permissions

Using file/directory permissions can be a little bit tricky when you come from the Microsoft world. At some points I will say "root" or more correctly UID 0, these things are the same.

 

Main Utilities:

chmod - Change access permissions of files

chown - Change file owner and group

 

And for more experienced users:

stat - Display file or filesystem status

 

The access rights determine if a process can access a file in a particular method. These rights specify read, write and execute and are further controlled by user, group and other.

 

Quick glance at how file permissions look:



Code:
znx@loud $ ls -l file
-rw-r-----  1 znx users 0 Aug 28 01:37 file




 

Taking each bit as it goes:

 

-

This represents the file type, file (-) and directory (d) are all you need right now,

there are more but it will just confuse matters.

 

rw-

The first three indicate the permissions for the file owner (znx), read

Reply


Messages In This Thread
Understanding Access Rights - by znx - 2005-08-28, 01:23 AM
Understanding Access Rights - by Condor - 2005-08-29, 11:01 AM
Understanding Access Rights - by xDamox - 2005-08-29, 04:07 PM
Understanding Access Rights - by znx - 2005-08-29, 06:28 PM
Understanding Access Rights - by anyweb - 2005-08-29, 09:19 PM
Understanding Access Rights - by znx - 2006-09-02, 09:19 PM
Understanding Access Rights - by anyweb - 2006-09-03, 04:52 PM
Understanding Access Rights - by Green Possum - 2008-01-20, 12:45 AM
Understanding Access Rights - by znx - 2008-01-20, 11:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)