Jump to content
Sign in to follow this  
znx

Understanding Access Rights

Recommended Posts

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:

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

Share this post


Link to post
Share on other sites
nice tutorial...

 

thank you.. :)

 

Good tutorials znx :D hope to see this on tutorials.linux-noob.com

 

Yeah, im going to expand it to include ACLs as I have to deal with these constantly at work, after which it will defn. be in with the tutorials B)

Share this post


Link to post
Share on other sites

topic pinned and moved

 

nice one znx, keep up the good work dude !

 

cheers

 

anyweb

Share this post


Link to post
Share on other sites

Wow .. took me long enough to add the stuff about ACLs :D

Share this post


Link to post
Share on other sites
Wow .. took me long enough to add the stuff about ACLs :D

 

heh, better late than never :) (that's one of my favorite mottos, and it's so true)

 

good work znx :)

 

cheers

anyweb

Share this post


Link to post
Share on other sites

Thanks so much Green Possum, how could I miss something so obvious hehe :D! Fixed

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...