I am Windows 7 remoting to Ubuntu 12.04.2 LTS
I am new to Ubuntu ( and *nix in general ) and need to understand how permissions are assigned to newly created dirs.
Via Putty ssh session :
$bash myaccount@mybox:/$ cd /etc/puppet myaccount@mybox:/etc/puppet$ sudo mkdir device myaccount@mybox:/etc/puppet/device$ myaccount@mybox:/etc/puppet/device$ ls -ld drwxr-xr-x 2 root root 4096 Jul 2 17:57
Then via WinSCP session ( SCP mode , also logged-in as myaccount@mybox ) I attempt to copy a file to /etc/puppet/device
However this operation fails with an error displayed in pop-up:
Error Copying file 'myfile' failed. scp: /etc/puppet/device/myfile: Permission denied
It seems logical to me that if my account is assigned sufficient rights to create a dir then it should also have rights to copy a file into that dir ?
Or do creating dirs and moving files fall under separate roles ?
NOTE: If you are going to down-tick my post, please explain why in a comment. Just anonymously down-ticking doesn't help me understand how these forums work. Seems like I'm playing by the rules, full details, following-up on comments, etc.