View Single Post
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#5
Originally Posted by abhishek View Post
now i am not sure if it did change anything...it showed that operation not permitted for certain files..but not for all...
so i am sure some operation was performed on the remaining files..and it seemed like a recursive call for all the files / folders..within $...
Given you started the command in /home/user (which is the home directory of the normal user) then
  1. only files within this directory tree are affected (i.e. no files in / or /usr/bin or elsewhere)
  2. only files where you had the right permissions to change ownership and mod are affected
  3. no files in directory /home/user/MyDocs are affected as this directory contains a vfat partition where no ownership or modus can be set.

now when I do $ ls -l it shows that
certain files have
user users
user root
root root

so what exactly are these against the files / folders.. one is the owner/group? and how does this affect..

i can see all diff permissions on these entries .. like r w x ..values..
A usual line looks like this:
Code:
-rwxr--r--  1 user games 123 Nov  1 12:34 somefile
which means:
  1. this is a file and no directory (-)
  2. owner may read and write this file and also may execute it (rwx)
  3. groupmembers and all other users may read this file but may not write to it or execute it (r--r--)
  4. there is one link to this file (1)
  5. the owner is "user"
  6. the group is "games"
  7. the size is 123 bytes
  8. the file was last changed on Nov, 1st at 12:34
  9. the files name is "somefile"
 

The Following User Says Thank You to x-lette For This Useful Post: