2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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 hace un año
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.
Contenido relevante
- preguntada hace 2 meses
- preguntada hace 5 meses
- preguntada hace 17 días
- preguntada hace 8 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.