Questions and chat, Day 12...

So I got a little excited once I was connected with SFTP and wanted to upload a file into /usr/Documents, which it would not let me do because I was in the root directory. So I ran chmod g+w but I still couldn't upload it, so I ran chmod o+w, uploaded the file, and then chmod o-w Documents. In retrospect I suppose from a security standpoint this is probably not a good idea. Is my user not in wheel group? I expected g+w to work. Or would that not have worked regardless of the group my user was in? Would there be anything wrong with having my user in a group and giving it permission to access that folder? Would that be bad practice? Uploading the file to the user's folder and moving it later with sudo makes sense (I didn't read that till after), but just out of interest.

/r/linuxupskillchallenge Thread