Morning all, I was running some deployment scripts on Friday night that kept failing because it prompted for a password for a user I was already sudo'd in as when trying to scp a file onto itself.
e.g.
on server 51.123.123.123 as sudo dlam
typing: scp testfile dlam@51.123.123.123:/tmp
prompts for a password
Turned out that it was because the home directory for dlam had been set as permissions 777 instead of 755. When they are 755 there is no propt for a password and everything works fine.
So a simple question, is this a bug, or is there a good reason for this?
Cheers