I don't think you've actually removed netstat, but a link to the executable. Try running:
find / -name netstat
Once found, make a link of it to your /usr/bin, like this:
ln -s /<whereever netstat is> /usr/bin/netstat
Permission 777 is a bad idea, because that gives full read. write and execute permissions for any user on the system. Usually, users should be able to read and execute, but not write to this kind of files (exactly to avoid deletion or modification).
In Unix, those 777 are actually octal numbers (base 2). as an example, let's suppose we have a file called "test" on your /export/home/markraem. Typing ls -l would say something like this (I'm not on Solaris right now, so I can't test this):
ls -l test
-rwxr-xr-x
Let's brake it into pieces. The first character, the dash (-) tells that this file, is actually a file. If it was a directory, it should be a "d" instead. The next three characters are permissions set to the owner (rwx), where r=read, w=write and x=execute. As I said, those numbers has a base two, so:
4 2 1
r w x
4 + 2 +1 = 7. That grants full read, write and execute permissions to the owner. Let's take the next three bits and analize them. The next three characters are values set for the group (r-x), where r=read, x=execute. With base 2, we have:
4 2 1
r - x
That would be
4 + 0 + 1 = 5. 5 grants read and execute permissions. To be able to execute a file, users must also be able to read them. The next three bits are permissions set to all other users. Since others, in this case, has the same symbolic permissions as the group, it's also 5. So this file has a permission of
755.
655 is a pretty common setting for a file. Directories are a bit different though, but still follow the same rules.
In Solaris, some files are read only
(r--r--r--), as example, we have the file /etc/passwd, which stores information for every user, including their preferred shell and default home directories. Since the root is the owner of that file, he is the only one capable of changing it's permission, in the case he needs to modify that file (say, remove an user password or change the default shell). Thus, a
r--r--r-- file has a permission of
444.
You can also use symbolic values instead of octal in Unix. For example,
chmod +x file would make a file, an executable file.
Sorry for the lecture, I got a little carried on
. Well, try finding the netstat path and link to your /usr/bin
Regards!