Amazon AWS and WinSCP File transfer issue
I have setup an Amazon AWS EC2 instance running Ubuntu.
Now, I am trying to connect it with the WinSCP.
Connection part is completed using the public key and I can browse files as well as use PuTTY to perform commands. By default an user named
If, I just drag and drop files from my computer (WinSCP left side) to the remote machine (WinSCP right side) it shows an error,
https://stackoverflow.com/questions/28261503/get-permission-to-work-with-files-on-my-amazon-ec2-ubuntu-server-using-ftp-winsc
In a jest, I have to provide permissions to the concerned folders.
Here the problem starts, the moment I execute
https://askubuntu.com/questions/513523/sudo-doesnt-work-etc-sudoers-is-owned-by-uid-1000-should-be-0
Now, it asks me for the password,
Now, I am trying to connect it with the WinSCP.
Connection part is completed using the public key and I can browse files as well as use PuTTY to perform commands. By default an user named
ubuntu
is created. Problem starts when I try to perform file transferring.
If, I just drag and drop files from my computer (WinSCP left side) to the remote machine (WinSCP right side) it shows an error,
Now, there are certain resolutions available over the net to handle that,Permission denied.
Error code: 3
Error message from server: Permission denied
https://stackoverflow.com/questions/28261503/get-permission-to-work-with-files-on-my-amazon-ec2-ubuntu-server-using-ftp-winsc
In a jest, I have to provide permissions to the concerned folders.
sudo chown -R -v ubuntu /home/your_folder/ chmod 777 /home/your_folder/
sudo chown..
command, it shows me a different error,
This leads to the following resolution,sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
https://askubuntu.com/questions/513523/sudo-doesnt-work-etc-sudoers-is-owned-by-uid-1000-should-be-0
pkexec chown ubuntu:ubuntu /etc/sudoers /etc/sudoers.d -R
Probably, I am going too far and it is not the way to resolve the matter. Regarding the password, I have a public key file so, can't enter one when prompted. Can any one have any idea regarding the problem and solution ? If I try to make the current user a super user that too require root permission.==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/chown' as the super user
Authenticating as: Ubuntu (ubuntu)
Password: