unix - what is meaning of /bin/chown -Rf ownername:groupname path -


i checking configuration , found this. can 1 me in explaining meaning of /bin/chown -rf ownername:groupname folderpath?

ex;

sample files , folder;

user@user:/tmp/1$ ls -arlt -rw-rw-r--  1 user user     0 tem 28 14:29 test1 -rw-rw-r--  1 user user     0 tem 28 14:29 test2 drwxrwxr-x  2 user user  4096 tem 28 14:30 folder   user@user:/tmp/1$ ls -arlt folder/ ---------- 1 user user    0 tem 28 14:30 test1 

without parameter; error messages show below;

user@user:/tmp/1$ find . -type f -name "*" | xargs chown bin.bin chown: changing ownership of ‘./folder/test1’: operation not permitted chown: changing ownership of ‘./test2’: operation not permitted chown: changing ownership of ‘./test1’: operation not permitted 

-f suppressing mesage, and
-r change test1 file in folder.

user@user:/tmp/1$ find . -type f -name "*" | xargs sudo chown -rf bin.bin [sudo] password user:  user@user:/tmp/1$ ls -lart total 80 -rw-rw-r--  1 bin    bin        0 tem 28 14:29 test1 -rw-rw-r--  1 bin    bin        0 tem 28 14:29 test2 drwxrwxr-x  2 user user  4096 tem 28 14:30 folder  user@user:/tmp/1/folder$ ls -arlt total 8 ---------- 1 bin    bin       0 tem 28 14:30 test1 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -