8

Wrong permissions sets sticky bit

view full story
linux-howto

http://stackoverflow.com – A few days ago, I happened to set the permissions wrongly when using the php-function mkdir like this: mkdir("foldername", 777, true); The correct way is, asuming you want those kind of permissions: mkdir("foldername", 0777, true); I know that I shouldn't use 777 on my files or folders but this is for a very closed system, so please don't get stuck on that. Because here comes the funny(weird) part, at least, for me. Because we noted that something was very strange when this script created folders. The persmissions that gets set is really strange, especially for a non-power-user of linux (HowTos)