/tmp/mongodb-27017.sock file premission changed when run mongod command

If it is working with sysctl why you are running mongod as root again?
If you try to run it as root alk permissions on dirs,tmp files will change
You have to use sudo chmod commands to change it back to mongod owner