Results 1 to 25 of 25

Thread: tmp secure ????

  1. #1

    tmp secure ????

    Can anybody tell me now how to unsecure /tmp because when i install DigiChat it's give me this error root@server [/home]# sh ./Install_DigiChat.bin -i console /home Preparing to install... Extracting the JRE from the installer archive... Unpacking the JRE... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... Launching installer... ./Install_DigiChat.bin: /tmp/install.dir.9155/Linux/resource/jre/bin/java: /bin/sh: bad interpreter: Permission denied

    Hope to get help ...

    Regards

  2. #2
    /tmp is probably mounted -noexec, therefore you'd need to remount it without that option. It's tough to tell without more information though.

  3. #3

    thnx

    thnx alot man

    but really iam just a beginner
    and dont know how to do that

    mean : what shall i do ??
    thnx for you fast help

  4. #4
    Join Date
    Sep 2004
    Location
    20 00 N, 77 00 E
    Posts
    51
    Hola
    remount tmp using..

    mount -o remount,rw /tmp

    Once you have installed the digichat server ...
    remount it as follows..

    mount -o remount,rw,nosuid,noexec /tmp

  5. #5

    thnx

    thnx alot Mr.TOXIC

    you are a very greatful man
    i will try that and reply you

  6. #6

    Unhappy :(

    Dear :Mr.TOXIC

    it is the same problem !!!

    it still syas :
    Install_DigiChat.bin: /tmp/install.dir.9155/Linux/resource/jre/bin/java: /bin/sh: bad interpreter: Permission denied

    ??? what shall i do ??
    really i dont know ...plz any one help me !!

    can i remove tmp dir. then create it again ? and how to do that if it will slove the problem ??

    plz i need anybody to help me ??

  7. #7
    Join Date
    Mar 2002
    Location
    Philadelphia, PA
    Posts
    2,517
    Try to use the desired install path by using i.e --/home/Iwant/ithere

  8. #8
    Join Date
    Apr 2004
    Location
    Australia
    Posts
    419
    I don't think it is a problem with the tmp directory. Usually when it says that it is a bad interpreter it means the shell command is wrong.

    You can try a few different things, firstly, post the top of your script here so that we can see if the scripts is asking sh to do funny things.

    Secondly, try moving the file to /root/ and run it from there, also make sure you've su ~ to root.

  9. #9

    thnx

    thnx vigor ,
    Matt -Seeksadmin

    here you are :

    root@server1 [~]# sh ./Install_DigiChat.bin
    Preparing to install...
    tail: `-1' option is obsolete; use `-n 1'
    Try `tail --help' for more information.
    ./Install_DigiChat.bin: line 329: [: `)' expected, found -z
    WARNING! The amount of /tmp disk space required and/or available
    could not be determined. The installation will be attempted anyway.
    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...

    Launching installer...

    ./Install_DigiChat.bin: /tmp/install.dir.24210/Linux/resource/jre/bin/java: /bin/sh: bad interpreter: Permission denied

    this is my problem

    thnx alottttttttttt for you help
    how can i solve it ?

  10. #10
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    how big is your /tmp partition?
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  11. #11

    Talking


    sorry but iam begginer ....i typed ls -l ....then i saw its size is 2048 ...
    and i dont know how to resize it
    sorry but i look for help
    thnx for your fast reply

  12. #12
    Join Date
    Nov 2001
    Location
    The South
    Posts
    5,408
    I bet there's gotta be a way to tell this installer to use something other than /tmp for it's tmp files.
    Gary Harris - the artist formerly known as Dixiesys
    resident grumpy redneck

  13. #13
    Join Date
    Apr 2004
    Location
    Australia
    Posts
    419
    Type this in, i think it will work, not too sure...

    pico Install_DigiChat.bin

    Then copy the first 8 lines or so.

    Also, why can't you run it without the sh in front? if ./Install_DigiChat.bin doesn't work chmod a+x it. Which will make it executable.

  14. #14

    Dixiesys .... How can i do that ??

    Matt -Seeksadmin ... thnx for your help .... i tried to do it as you said ...
    but it appears the same prob.

    i tried to pico it and copy the lines .....its not work at all !
    then i try to use this :
    ./Install_DigiChat.bin

    also the same ....

    plz help

    thnx for your patiant

  15. #15
    Join Date
    Apr 2004
    Location
    Australia
    Posts
    419
    Dixiesys, i don't believe its a problem with /tmp being secured, i haven't run into this problem before because of tmp being non exec... I think that its not understanding the command.

    mero160 perhaps it is best for someone to look at it for you?

  16. #16
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    Originally posted by Matt -Seeksadmin
    Dixiesys, i don't believe its a problem with /tmp being secured, i haven't run into this problem before because of tmp being non exec... I think that its not understanding the command.

    mero160 perhaps it is best for someone to look at it for you?
    Matt, I have seen this many times with /tmp being secured. I also belive this is a known issue.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  17. #17
    Join Date
    Dec 2002
    Location
    chica go go
    Posts
    11,876
    This problem is kinda common, read the attached url: http://www.webhostgear.com/34.html

  18. #18
    Join Date
    Apr 2004
    Location
    Australia
    Posts
    419
    Hmm ok if you've seen them around then yer ok... Everytime ive had problems with tmp i get permission denied =|

  19. #19
    Join Date
    Mar 2004
    Location
    Odessa, Ukraine
    Posts
    610
    ls -la /bin/sh

  20. #20
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,681
    Originally posted by andreyka
    ls -la /bin/sh
    Its not a problem with sh, its a known problem with noexec /tmp.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  21. #21
    thnx to all who want to help me

    hi andryka :

    lrwxrwxrwx 1 root root 4 Aug 18 18:16 /bin/sh -> bash*

    this is the result

  22. #22
    Join Date
    Sep 2004
    Location
    20 00 N, 77 00 E
    Posts
    51
    Hola
    Paste the results of the following..

    Code:
    mount
    Now remount /tmp ..refer this
    HOW TO

    Once you have remounted the tmp dir without noexec , paste the following results..
    Code:
    mount | grep /tmp

  23. #23
    Bottom line: Your program wants to use /tmp to unpack and run its installer from. Most programs have a commandline flag to use a different folder, or can be picked apart (Makefile or install script) to use something other than /tmp.

    Its not really an issue.. its unfortunate that digichat's creators did not think to simply have a commandline flag to use another folder, or perhaps there IS one and you havent looked / tried it.
    "The only difference between a poor person and a rich person is what they do in their spare time."
    "If youth is wasted on the young, then retirement is wasted on the old"

  24. #24
    i have the same problem and read all your replay and didnt understand the solution

  25. #25
    please tell me what is the solution ?

    or MSN messenger at foreverman2002@hotmail.com
    thanx

Posting Permissions

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