Let us consider that I have a file /home/base/alpha.txt
with permission 777 i.e. -rwxrwxrwx
in user@host
.
Now, from system host1
as user1
i.e. user1@host1
, I try to pull the file mentioned above using the following command:
scp user@host:/home/base/alpha.txt .
As per file permissions 777, everyone has read-write-execute permission i.e. anyone should be able to read, write and execute the mentioned file. Why does Unix ask for the user@host
password then?