Upgraded to Yosemite, mkdir now says "permission denied" I upgraded from OS 10.7.3 to 10.10.3. Now I get "permission denied" when I run mkdir on folders that I own and have full permission.

For example :
  I own a folder called "/library/webserver/documents". I try to make a subfolder and I get permission denied. I verified that I am logged in as the user that owns the folder. The permissions on it are 755.

A few days ago, when I was still on 10.7.3, I did not have this problem.

What is the solution? I don't want to simply type "sudo [command]" every time I want to make a folder. I just want to use the terminal like it worked before.
I mentioned I owned the directory. I just found out that I actually owned the symbolic link to the directory. The user 'root' owned the directory. I chowned the directory and it works ok now.

My guess is either the upgrade changed the owner of the directory or else it changed the permissions logic regarding symbolic links.