The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2004-06-04 19:13:50

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Shell Access Policy

The default shell for everyone is scponly, a SSH wrapper that only allows SCP and SFTP access (rsync works over it) in your home directory. I'm very happy that we safely offer this to people.

I'm talking full shell access requests on a case-by-case basis. The first sign to me that someone actually needs it is that they take the time email me about it.

I'll need to know what shell you want (they are all there)? And what binaries are going to be using on my end (basically a "why")?

I don't want to sound stern here or that I'm talking down to you (because it'll sound like that if you really need shell access, and I'm sorry, entirely unintentional).

But I have to remind you that there is full system accounting, and logging of all binary executions and logins plus daily file integrity checks. It's understandable if you didn't realize "top" is restricted but attempting to run binaries like portscan, sockstat, killall, kill, mv (in somewhere other then your home directories) will, at best, get you a refund.

Offline

 

#2 2004-06-04 21:37:30

joshua
Member
From: New York, NY
Registered: 2004-06-03
Posts: 202
Website  Expertise

Re: Shell Access Policy

what about using cron job to backup the database via mysqldump?

Offline

 

#3 2004-06-04 23:33:25

cnladd
Member
From: Ohio
Registered: 2004-06-01
Posts: 1152
Website  Expertise

Re: Shell Access Policy

I just hope we don't get booted for accidentailly adding an extra "../" or two onto a path that we mv or cp to/from. I've mistakenly done that myself a few times while trying to recall the how deep in the tree. ;-)

Last edited by cnladd (2004-06-05 23:09:23)


VC178

Offline

 

#4 2004-06-05 03:11:19

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Re: Shell Access Policy

joshua wrote:

what about using cron job to backup the database via mysqldump?

You can do that now. I'll be doing it for everyone.

Offline

 

#5 2004-06-05 04:28:00

joshua
Member
From: New York, NY
Registered: 2004-06-03
Posts: 202
Website  Expertise

Re: Shell Access Policy

Great! Combined with rsync/scp, what a perfect solution!

Offline

 

#6 2004-06-05 07:49:17

wazdog
Just a guy. Oh, and VC131.
From: Los Angeles
Registered: 2004-06-01
Posts: 325
Website  Expertise

Re: Shell Access Policy

jason wrote:

joshua wrote:

what about using cron job to backup the database via mysqldump?

You can do that now. I'll be doing it for everyone.

What about using cron for other things? Like m2f uses cron to update phpBB with a mailing list. I know there are pseudocron utilities out there, but they can be flaky, and nothing beats good ole cron...


VC131. Not that I'm bragging.


(OK, yes I am.)

Offline

 

#7 2004-06-05 19:20:06

cnladd
Member
From: Ohio
Registered: 2004-06-01
Posts: 1152
Website  Expertise

Re: Shell Access Policy

If I remember right, there's full access to your crontab via Webmin.


VC178

Offline

 

#8 2004-06-05 19:51:26

Jez Nixon
Member
From: United Kingdom
Registered: 2004-06-01
Posts: 202
Website  Expertise

Re: Shell Access Policy

You've essentially got shell access from within webmin- click System > Running Processes > Run.

For example:

Code:

  1. whereis sockstat

    Output from whereis sockstat ..
    sockstat: /usr/bin/sockstat /usr/share/man/man1/sockstat.1.gz

Last edited by nixon (2004-06-05 19:52:18)


And I thank you for the items that you sent me: the monkey and the plywood violin

Offline

 

#9 2004-06-05 20:00:16

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Re: Shell Access Policy

You can run many commands from directly within webmin.

Offline

 

#10 2004-06-05 20:00:47

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Re: Shell Access Policy

Webmin honestly pretty much provides shell access via a web interface

Offline

 

#11 2004-06-05 20:03:09

Jez Nixon
Member
From: United Kingdom
Registered: 2004-06-01
Posts: 202
Website  Expertise

Re: Shell Access Policy

Would you terminate my account if I ran "top" through webmin? :P

Last edited by nixon (2004-06-05 20:03:20)


And I thank you for the items that you sent me: the monkey and the plywood violin

Offline

 

#12 2004-06-05 22:17:06

pwg
Member
From: Melbourne, Australia.
Registered: 2004-06-02
Posts: 133
Website  Expertise

Re: Shell Access Policy

jason wrote:

Webmin honestly pretty much provides shell access via a web interface

Um...not sure I agree with this, Jason :-)

I can't use the Webmin interface to run a simple (un)tar because, apparently, Webmin doesn't have permissions to create files and directories in my public_html folder.

I guess I could CHMOD the folder to 0777, but that means hacking the permissions every time I run a local command that creates a file etc.


peter gallagher -- VC132 --- www.petergallagher.com.au

Offline

 

#13 2004-06-05 23:17:12

cnladd
Member
From: Ohio
Registered: 2004-06-01
Posts: 1152
Website  Expertise

Re: Shell Access Policy

Is there any status on shell access for those of us that have requested it?

I tried doing a bit of work on my local box and uploading it via SFTP, but that's just a sick way to work... Now that I finally have access to my account, I was hoping to be able to really get down and do some work on getting my sites up and running this weekend.


VC178

Offline

 

#14 2004-06-08 19:26:21

kevin
Member
From: Toledo, Ohio, USA
Registered: 2004-06-01
Posts: 53
Website  Expertise

Re: Shell Access Policy

I e-mailed you through the web form, Jason, in regards to this, but have not heard back. Does the web form work? :) -k

Offline

 

#15 2004-06-08 21:26:30

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Re: Shell Access Policy

coming in the next day to those who emailed me (including kevin)

Offline

 

#16 2004-06-09 17:07:27

kevin
Member
From: Toledo, Ohio, USA
Registered: 2004-06-01
Posts: 53
Website  Expertise

Re: Shell Access Policy

Thanks Jason, you have no idea how much better this'll make my hosting experience.

Kevin

Offline

 

#17 2004-06-09 18:30:35

ideoplex
New member
From: Connecticut
Registered: 2004-06-02
Posts: 10
Website  Expertise

Re: Shell Access Policy

I'm still getting a handle on rsync. Is scponly the default for rsync, or is it necesssary to specify it on the command line (and if so, then what's the path)?

Offline

 

#18 2004-06-11 22:19:32

theflow
New member
Registered: 2004-06-11
Posts: 4
Expertise

Re: Shell Access Policy

jason wrote:

I'll need to know what shell you want (they are all there)? And what binaries are going to be using on my end (basically a "why")?

So, is the shell access jailed/chrooted and you only copy the needed binaries, or is this full access and you just want to know what I will do with it (like using wget to fetch scripts and using vim to edit the config-files)?

thanks
theflow

Last edited by theflow (2004-06-11 22:19:59)

Offline

 

#19 2004-06-11 22:33:35

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Re: Shell Access Policy

theflow wrote:

So, is the shell access jailed/chrooted and you only copy the needed binaries, or is this full access and you just want to know what I will do with it (like using wget to fetch scripts and using vim to edit the config-files)?

thanks
theflow

No, it's not jailed. I do want to know what you are planning on doing and to let you know that I'm always watching.

Offline

 

#20 2004-06-12 04:03:15

cczona
Member
From: California, US
Registered: 2004-06-02
Posts: 88
Expertise

Re: Shell Access Policy

Jason, does chroot affect server performance or security? I'm curious why you'd rather not go that route.

Offline

 

#21 2004-06-12 08:43:09

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8821
Website  Expertise

Re: Shell Access Policy

it just not practical to chroot each person because then everyone would have to have their libraries, tmp etc. Mail would get through ....

Jailing is even better but that would require each person to have their own IP and their own FreeBSD install, their own web server, their own mail server .... Jailing is how people accomplish these "Virtual Dedicated Servers" you see on the market.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson