Installing programs in a webserver with root privileges

Is it possible to log in as a root user in a shared webhosting. I want access in to it because the program I want to installed needs it.

Just like making directory needs root access.

No. You’ll have to upgrade to a VPS or dedicated server if you need root access.

What’s the program? There are usually ways to get around the root requirement as long as you aren’t trying to install a daemon or service of some sort. Even then, you might be able to request it via support if it’s something that others might find useful and it doesn’t violate the TOS