My shared host offers me "limited" SSH access...while tinkering around the other day I realized how limiting they are when I tried to carry out some actions...none worked really.
I can't remember whaat I tried to do but the only thing I got working was untar-files, etc...
Once they have given me shell access...how do they prevent me from executing certain actions like...apt-get or others? Do they remove those tools completely? Do they creat proxy shell scripts to filter allowable input and execute the command that way?
Obviously I was unable to rm -R any files which were not mine (user: hockey) and everything inside my docroot was mine so only that was deleted. The root directory itself was 'root'.
How can you assign permissions for the various binaries on a typical web server? What are some of the ways of offering limited shell access to a system, short of removing the binary completely or setting execute permissions for only "some" binaries?
Would that proxy shell script actually work? That was just an idea that popped into my head I have no idea if it's effective or not.
I'm trying to mostly figure out why shared hosting would be so limited and virtual so much more flexible and of course dedicated allowing entire control of the system, even reboot, which I dought VPS would allow.
Shared hosting with SSH -- how to?
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Shared hosting with SSH -- how to?
I know that VPS allows complete control - restart and everything.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Shared hosting with SSH -- how to?
VPS allows for a complete reboot? How does that not affect other users on the same physical machine? Unless they are running separate instances of Apache OR they use graceful restart. I can't see a VPS letting you reboot the entire system though...one person could ruin it for everyone by constantly rebooting the system.
So how does a VPS company prevent users from executing shutdown or reboot, while still giving root or possibly others the ability to do so incase of maintenance?
So how does a VPS company prevent users from executing shutdown or reboot, while still giving root or possibly others the ability to do so incase of maintenance?
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Shared hosting with SSH -- how to?
VPS is a virtual server!
No client has access to the main server, but the main server hosts many different (or the same) OS as a virtual machine on the same computer. Its affectively having a dedicated server but without the resources. So you would have complete control over it and you can upgrade as you require with no need for any changes on your side, they just increase the resources allocated to your VPS.
Check out...
http://www.webhosting.uk.com
I use to use OneandOne but they are useless for tech support! Webhosting uk is great! I am very impressed with service, price.
No client has access to the main server, but the main server hosts many different (or the same) OS as a virtual machine on the same computer. Its affectively having a dedicated server but without the resources. So you would have complete control over it and you can upgrade as you require with no need for any changes on your side, they just increase the resources allocated to your VPS.
Check out...
http://www.webhosting.uk.com
I use to use OneandOne but they are useless for tech support! Webhosting uk is great! I am very impressed with service, price.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Shared hosting with SSH -- how to?
Ahhh...is that how they do itbut the main server hosts many different (or the same) OS as a virtual machine on the same computer
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Shared hosting with SSH -- how to?
This is more of a note to myself but I figured I would share:
http://user-mode-linux.sourceforge.net/
http://user-mode-linux.sourceforge.net/