Author |
Message |
Altec Newbie
Joined: Jan 22 2006 Posts: 18 Offline
|
Posted: Thu Aug 24, 2006 1:02 pm Post subject: SSH security for ASSS |
 |
|
|
|
Got a few Q's for you as3 guru’s ïŠ
I plan to start hosting as3 for certain zones. I got as3 to work, but need help in other areas.
1) Does a zone owner need SSH or will FTP sifice?
If SSH is needed, how to does one properly give said user proper SSH access. I understand how to give a user SSH, but don’t know if I am doing it right to make sure the system is secure.
2) Are there any scripts out there where said user can start/stop a zone with/without SSH?
Thanks guys. _________________ Spyed>It wasn't me. Someone got my password and did it. OMGZ..
-------
SSB/SSCB Owner |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Aug 24, 2006 3:12 pm Post subject: |
 |
|
|
|
0.) It's called asss.
1.) Yes, they need SSH. Take a look at grel's adminsh program.
2.) No. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Altec Newbie
Joined: Jan 22 2006 Posts: 18 Offline
|
Posted: Thu Aug 24, 2006 4:07 pm Post subject: |
 |
|
|
|
mmk...where can i find this grel's program? |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Fri Aug 25, 2006 3:22 am Post subject: |
 |
|
|
|
In theory, you can do anything you need to with ?putfile and ?recycle, assuming you have processes in place to monitor the asss process and restart it when required. But in practice zones crash or deadlock, and you need an out-of-band way to kill and restart the zone. And administration with ?putfile is really painful, and if you want to have happy owners, you should give them SFTP/SCP access.
adminsh is an alternate login shell, plus a set of scripts that make it easy to set up zones in chroot environments. Chrooting increases security by making it impossible for one zone to affect others (assuming you set it up right, which isn't easy). Being an alternate login shell means that it gives owners the ability to do only very specific commands (start/stop their zone, send messages, view log files, and a few more), but _not_ full shell access. This is weak security, though, since if they can ?putfile, they can run arbitrary code on your server (this is where the chroot helps). adminsh also provides automatic restarting after crashes and ?recycle.
I would recommend setting up adminsh for basic tasks, and if you trust your owners and they are knowledgeable in basic unix usage, you can also give them full shell access, which comes in handy sometimes.
Fully securing a machine against users with shell access (or ?putfile/?insmod access) to a machine is difficult (or maybe impossible, depending on your requirements). The chroot that adminsh helps you set up is just a starting point. |
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Fri Aug 25, 2006 10:40 am Post subject: |
 |
|
|
|
I don't suppose someone would like to make a wiki detailing these things? I'm not officially hosting zones(yet), but since AS3 hosting at the moment is sparse and being very well, um... protected, I've offered to host a couple people's dev zones on my own Linux computer. And in the future, I may get space on a real server, so I'd REALLY have to worry about security then. Although, I'd be willing to bet this is more of a Unix thing than it is an AS3 thing, so I'm going to go see if I can find anything helpful, and if the rest of you have any good websites for this, just post them here. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Aug 25, 2006 4:57 pm Post subject: |
 |
|
|
|
There already is a wiki, go ahead and put the info there. (The link is near the top of this page.) _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Sat Aug 26, 2006 1:11 am Post subject: |
 |
|
|
|
I meant a specific wiki page on asss security. |
|
Back to top |
|
 |
Altec Newbie
Joined: Jan 22 2006 Posts: 18 Offline
|
Posted: Sat Aug 26, 2006 8:59 am Post subject: |
 |
|
|
|
Ok, I found a way to give someone SSH access. However the problem I'm running into know is what that person has access to.
Is there a way to lock them into there folder so they can only view there content and not the whole system?
Thanks. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sat Aug 26, 2006 9:12 am Post subject: |
 |
|
|
|
Yes, it's called chroot and is part of what grel was talking about. |
|
Back to top |
|
 |
|