Running bash but common bash commands not working
Hi there, below are the details of my system. I have bash as my current shell, some really common commands aren't working. Please see below.
Do I need to do a re-installation of bash? Or how do I install a selection of bash commands which I need? (for example a subset of http://ss64.com/bash/) Code:
root@sdptfw:~ # uname -a michelle |
Those are not bash commands but seperate programs. You are just missing the /usr/bin/man and /usr/bin/clear binaries. How you install them depends on your distribution.
|
I see no problems with any of the commands issued.
The fact that some return an error message, which all appear to be fairly obvious, does not mean they do not work. |
Quote:
Quote:
You are correct as this is all I have in my bin. Perhaps do I have to somehow install 'wget' and then use that to install man, clear etc? ...I really would have thought these tools would have been part of a core tool package? Any hints as to how I can install stuff? Code:
root@sdptfw:~ # ls -l /usr/bin/ |
Quote:
http://www.linuxquestions.org/questi...8/#post4036207 |
To find out which GNU/Linux distribution you are using, look at file /etc/issue (or it may be named /etc/issue.net or something similar).
|
thanks, I found out I'm running an IPCOP distribution.
Code:
root@sdptfw:~ # cat /etc/issue For anyone else with the same question, when I find out I will post the steps in this thread. |
Well ... if this box should really be a firewall, it's probably not the best idea to install all that stuff, why would you want it on a firewall?
And -- if you DON'T use this box as a firewall, I'd rather install a "normal" distribution. |
Just in case you did not read the links provided in your other thread, ipcop is a linux distribution designed for a specific purpose i.e. an appliance firewall computer. It is not a desktop distribution and since your new to the linux world it would be helpful to know some background information. Did you installed ipcop and what you are trying to accomplish.
|
Quote:
Yes, this is a firwall. Yes that makes sense - I don't want to install all that stuff if it breaches any kind of security. Where it started is that I wanted to install an additional IPCOP addon and I didn't quite know where to do that. I posted on the IPCOP forum here but didn't get an answer. I thought I would find out what distribution I was running so that I could google the filesystem and find out about it's structure. So then I came across uname and wanted to know the availble options which lead me to discover that I don't have man (or wget or clear) installed. What am I trying to accomplish? It's rather embarrasing, I've lost myself down the garden path. Thanks. I'm walking back over to the flowers now. I really should be setting up an additional person on IPCOP's logging. That's it. :redface: |
The general lesson here being to read before you post... regardless, here's the information I've been looking for obtained from IPCOP'S FAQ: Customising IPCop
Can I customise my IPCop box? Because your IPCop box is based on Linux, many of the features used in Linux can be made available by your firewall. IPCop is made to be easy to use, and the web interface reflects that. There are many features that are not made accesible by the web interface in order to keep it simple. The important thing to remember is that the IPCop box is primarily a firewall and a router. All the other features are "nice to have". Anything you do to your IPCop box could reduce it's effectiveness, and the programmers won't be looking out for security holes in programs you have added, so they won't be making patches either. If you want something more general purpose than a dedicated firewall you can have a look at the Gateway/Servers at this comparision list. Where do I start? First of all, IPCop is missing many of the programs usually found in a Linux distribution. This is deliberate, as the lower number of applications means the system is simpler, and easier to keep secure Because of this, our way in and out of the IP-Cop box is via a program called SSH. SSH is a secure command line interface which allows remote access. Normally, SSH uses port 22, but in order to allow port 22 to be forwarded elsewhere, port 222 is used on the IP-Cop box. Most Linux distributions now include the SSH suite of programs, and there is a freeware Windows client called PuTTY. SSH includes a file transfer client called SCP, and there is also a freeware Windows version called WinSCP. Between these two programs, you should have all the tools you need to customise IP-Cop. How can I add a new program to IPCop? Using SCP, you can download new files into the IPCop box. This way you can add additional programs that may help you faultfind your network, or add additional functionality. For example, IP-Cop does not have "traceroute" (It has tracepath, which has similar functionality). Using SCP (or WinSCP), simply move the file from another Linux box into the appropriate folder (/usr/sbin, in this case), check the file permisions, and now you have an new tool on your IPCop box. |
It's a flavor of linux so yes. And no. Since it's firewall orientated, it probably lacks basic tools. Like a compiler and development environment. That way even if it is breached, the breacher lacks the ability to do anything useful. At least with the methods that they assumed that they would have available.
As far as the other thing. If those commands are available, but you just can't use them. It might be a security thing. But I've hosed libc6 at least once in my life which disabled pretty much every bash command (extended application) known to man. Including ls. Not saying that that is your issue, but it could be. |
All times are GMT -5. The time now is 08:00 PM. |