Web Hosting Forums

Page 5 of 6 FirstFirst ... 4 5 6 LastLast
Results 61 to 75 of 87

This is a discussion on Merged: Shell access/ Jailed in the Hosting Talk & Chit-chat forum
Ah , command aliases. Couldnt figure out exactly what you mean since each client likes to make up their own terminology, or so Ive found ...

  1. #61
    QA Manager JPC-Greg's Avatar
    Join Date
    Sep 1998
    Posts
    5,443
    Ah , command aliases. Couldnt figure out exactly what you mean since each client likes to make up their own terminology, or so Ive found over the years, I wasnt sure. Im on the same page now though.
    Greg Landis | Founder
    JaguarPC | World leader in webhosting since 1998.
    How are we doing? Tell us at [email protected].

    Need a Manager?

    (pm) | (email) Les, Chief Operations Officer
    (pm) | (email) Larry, Customer Service Manager

  2. #62
    Loyal Client Jacksdad's Avatar
    Join Date
    Jul 2002
    Posts
    239
    Yep, it is a command in the .profile file.

    Now that you know what we are referring to, thoughts on getting .profile to work with jailshell or something like it?

    Thanks Greg!!

  3. #63
    QA Manager JPC-Greg's Avatar
    Join Date
    Sep 1998
    Posts
    5,443
    No, wish I had some. Thats not really my arena . Id love to help, but I dont have the skills for that. Back to my nerd cubicle from whence I came. .....
    Greg Landis | Founder
    JaguarPC | World leader in webhosting since 1998.
    How are we doing? Tell us at [email protected].

    Need a Manager?

    (pm) | (email) Les, Chief Operations Officer
    (pm) | (email) Larry, Customer Service Manager

  4. #64
    Loyal Client
    Join Date
    Dec 2001
    Posts
    14
    Originally posted by Jacksdad
    I am not trying to insult you, are you sure you have the command correct.
    No insult taken. I'm not sure what command you're talking about, but yes.

    The mysqldump and mysql connect strings are the same ones I always use. They are in my history and hence, I never type them in.

    If you're talking about the commands I mentioned to get to your Bash profile, it's correct for me, but others may be using different filenames for their config files (e.g. .bash_profile)

    As for who and ps, that is for security reasons and there should be not reason for us to use it.
    Perhaps, but I use who (with flags) to get my own IP address. They're probably another way, but that's how I was doing it.

    And what about the lack of direct shell access to our access logs? What about the 'find' command, what about mysql?

    Let's wait until they tell us all is done and then we can check for issues/problems.
    That would be great, except I've been waiting for things to be normal for a week or so. I have clients I need to work with and my website is the main collaboration tool. MySQL is essential. As it is right now, I'm getting connection errors to PHPMyAdmin. I can't even TOUCH my databases in any way shape or form.

  5. #65
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    5,884
    Originally posted by fooljay
    Perhaps, but I use who (with flags) to get my own IP address. They're probably another way, but that's how I was doing it.
    Are you referring to the IP address of your local system? There are many ways to do this:

    Win 95/98/Me: Start>Run and type in 'winipcfg'
    Win NT/2k/XP: Start>Run and type in 'cmd.' At the command prompt, type 'ipconfig'
    Mac OS 9.x: Just open your TCP/IP control panel and your IP address should appear there. I think this is similar on OS X as well, but I'd need to check first.

    Hope this helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  6. #66
    Rogue Developer
    Join Date
    Oct 2002
    Posts
    191

  7. #67
    Loyal Client
    Join Date
    Dec 2001
    Posts
    14
    Originally posted by jason

    Are you referring to the IP address of your local system? There are many ways to do this:

    Win 95/98/Me: Start>Run and type in 'winipcfg'
    Win NT/2k/XP: Start>Run and type in 'cmd.' At the command prompt, type 'ipconfig'
    Mac OS 9.x: Just open your TCP/IP control panel and your IP address should appear there. I think this is similar on OS X as well, but I'd need to check first.

    Hope this helps.
    Yes, thanks. I'm quite familiar with all of those, but you see,

    1) I am behind a firewall with a dynamic IP and hence there's no way of knowing my IP to the outside world. My internal one of course is 192.168.1.x.

    and more importantly

    2) This is not an interactive process. It's a cron script. It looks for my last logins ('last]) and checks them against whether I'm still logged in (who) and if so, what the IP address is...

    Anyway, the only other way I can think of off the top of my head is to have my login script create a lockfile of sorts with the date and IP address (taken perhaps from the environment settings) and then a logout script that removes it when it's done.

    Of course NONE of that will work currently with jailshell, so in the meantime, I'm screwed anyhow.

  8. #68
    Loyal Client
    Join Date
    Sep 2001
    Posts
    13
    It doesn't look like we have access to sendmail under jailshell, making reading mail with pine significantly less functional. Is this deliberate, or just an oversight?

  9. #69
    O_o CeleronXL's Avatar
    Join Date
    Dec 2001
    Posts
    566
    Originally posted by fooljay


    Yes, thanks. I'm quite familiar with all of those, but you see,

    1) I am behind a firewall with a dynamic IP and hence there's no way of knowing my IP to the outside world. My internal one of course is 192.168.1.x.

    and more importantly

    2) This is not an interactive process. It's a cron script. It looks for my last logins ('last]) and checks them against whether I'm still logged in (who) and if so, what the IP address is...

    Anyway, the only other way I can think of off the top of my head is to have my login script create a lockfile of sorts with the date and IP address (taken perhaps from the environment settings) and then a logout script that removes it when it's done.

    Of course NONE of that will work currently with jailshell, so in the meantime, I'm screwed anyhow.
    Take a look at this then: http://www.whatismyip.com/
    "Before you critisize someone, walk a mile in their shoes. That way, when you critisize them, you're a mile away and you have their shoes."
    My Site: StarCraft Sector | My vB Forums: Forum Sector
    E-Mail: [email protected] | AIM: CeleronXL | ICQ: 118648739 | MSNM: [email protected] | YIM: celeronxl

  10. #70
    Loyal Client
    Join Date
    Apr 2002
    Posts
    11

    Angry seeing httpd ?



    How are we going to be able to see if httpd is running in order to report an outage ? When ever there was a problem with my site, I could always ssh in and run ps to check if httpd is running since the network status page isn't always accurate. How are we going to be able to do that now ?


    As an admin (network and systems) its always much nicer to be able to tell tech support exact what's wrong, rather than stumbling around like an idiot saying "My site is down, help !"

  11. #71
    Loyal Client
    Join Date
    Dec 2001
    Posts
    14
    Originally posted by CeleronXL

    Take a look at this then: http://www.whatismyip.com/
    Thanks, I already know about the site. Read my second point above: It's a non-interactive process that needs the IP address on-the-fly.

    It doesn't matter much anyway. As SOON as I can get my data out of MySQL, I'm leaving. Everything else is already transferred to my new host and the DNS is propagated...

  12. #72
    Loyal Client
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    2

    Question jailshell

    I logged in this morning and found my shell was now /usr/local/cpanel/bin/jailshell. Since there is not even a /usr/local available to me, I assume I'm in a chroot()ed environment, which is fine. The problem is that I am initially logged into / when my home directory is /home/username. I had some scp batch processes which failed because it depended on a correct $HOME being interpreted. I don't know if this problem is your sshd or the jailshell.

    For these reasons, ~/.bash_profile and ~/.bashrc are not being read; moreover, I can't copy them to / (my chroot()ed /) because of permissions. If you're going to chroot() me, at least give me permissions in my own little sandbox.

    Any suggestions how to resolve this?

    Thanks,
    --e

  13. #73
    Loyal Client Jacksdad's Avatar
    Join Date
    Jul 2002
    Posts
    239
    I also posted a question kinda of like yours:

    http://forum.jaguarpc.com/showthread...&threadid=9160

    I also opend a tt about 3-4 days ago with no response.

  14. #74
    Loyal Client
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    2
    Originally posted by fooljay


    Perhaps, but I use who (with flags) to get my own IP address. They're probably another way, but that's how I was doing it.
    look at the environment variable SSH_CLIENT. The value is 'originating_ip remote_port local_port'

    --e

  15. #75
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    1,916

    Re: seeing httpd ?

    Originally posted by bad-magic-number


    How are we going to be able to see if httpd is running in order to report an outage ? When ever there was a problem with my site, I could always ssh in and run ps to check if httpd is running since the network status page isn't always accurate. How are we going to be able to do that now ?


    As an admin (network and systems) its always much nicer to be able to tell tech support exact what's wrong, rather than stumbling around like an idiot saying "My site is down, help !"
    Telnet your_ip_here 80

    should let you know if httpd is really running or not. You can do this from anywhere, not necessarily from jailshell.

    here's my way of doing it in jailshell:

    jailshell-2.05a$ telnet localhost 80
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    get / http/1.1

    HTTP/1.1 400 Bad Request
    Date: Sat, 12 Apr 2003 19:02:30 GMT
    Server: Apache/1.3.27 (Unix) mod_gzip/1.3.26.1a DAV/1.0.3 mod_log_bytes/1.2 mod_bwlimited/1.0 PHP/4.2.2 FrontPage/5.0.2.2510 mod_ssl/2.8.12 OpenSSL/0.9.6b

    [COLOR="DarkRed"]Masood N. [/COLOR] | [COLOR="Red"]Chief Technical Officer[/COLOR][SIZE="3"] JaguarPC.com[/SIZE]

Page 5 of 6 FirstFirst ... 4 5 6 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •