Netsted,
You are correct, you don't have permissions. The higharchy of the bits for CHMOD are World / Group / Owner. When you set the value using CHMOD 400, you are doing this from root. That would be the only account that would have access to this file, as you have removed all other permissions. When you are on your Windows machine, you are allowed access via the World bits. You then turn this access off, via attrib, now you have no access to the file. You might want to set a Group for this file. Your Windows system would have to authenticate to the Linux system using an account that is a member of this Group.
|