Answer the question
In order to leave comments, you need to log in
Why doesn't it let me transfer the file with 777 permissions even with sudo?
The task is banal - transfer files to the server via scp. Everything is fine, but there is one file that fundamentally does not want to be transferred - even with permissions 777, even under sudo
Screenshot: Screenshot
explanation:
1. displaying file permissions
2. passing Daemon.php - transfer successful
3. passing DaemonModel.php the same rights as Daemon.php - no rights
4. trying to do the same operation under sudo - also no rights
How so?
PS
The problem can be solved by putting 777 on html, but that's wrong, right? And already with the rights 775 - does not allow to write down.
Answer the question
In order to leave comments, you need to log in
If you take a closer look at the path in the error message, it will be obvious that there are no rights on the remote host 192.168.1.27
That is, you look corny in the wrong place. sudo only works on the local host, of course, and the remote host doesn't care if you have root access on your local system or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question