2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
1
Hello,
When you log in using a user, you can access only directories or files that are owned by or have access to that user. If you try to access any other folder like root "/", you will get a permission denied error. So if you want to access a folder, ensure that the folder already has access for the user you are trying to log in with.
respondido há um ano
0
Hello. You can download the file by copying it to a location accessible to the user who logged in then changing the permissions with the chmod command.
Conteúdo relevante
- feita há 3 meses

hi how to do that?
how to do that specifically?
Suppose you are logged in as an ec2-user and want to download /var/log/nginx/access.log. You can download the file in /home/ec2-user/access.log by typing the following command.
Or you can use chown to change the owner.