944,196 Members | Top Members by Rank

Ad:
Jul 20th, 2005
0

samba deleted?!?

Expand Post »
hi guys,
strange problem, I discovered samba has been deleted at no fault of my own. Just deleted.....

I noticed the firewall was switched off too which is concerning. I must have switched the firewall off to test something and never turned it back on..

When linux loads it says it cannot load the smbclient and when i do rpm -q samba it says its not installed, but i have been using it for years....

could the firewall bieng off caused this problem by an external source or have i done something wrong.... any ideas?
Similar Threads
til
Reputation Points: 10
Solved Threads: 0
Newbie Poster
til is offline Offline
2 posts
since Jul 2005
Jul 21st, 2005
0

Re: samba deleted?!?

I guess your system could have been compromised if the firewall was off.. I
dont know if your network is behind a firewall or not. the first place I usually
look is at other priveleged users with access. accidental sabotage from within
is a frequent occurance.
if your system/network is wide open.. turn iptables back on.

I would check the history for root and grep for 'rm'
to attempt a culprit
then check out /var/log/messages
try 'rpm -qa | grep -i smb' or 'rpm -qa | grep -i samba'

check for the existance of the smb executable.
'which smb' (as root)
we know the init script exists and your system is attempting to start it at
runtime maybe the binary is in the wring place or the permissions are wrong
on /etc/samba/smb.conf

if this file/directory is missing you may be able to recreate the directory then
run system-config-samba to recreate smb.conf. (as root naturally)

you could try this:
'man smbd' and look for a debuglevel switch (usually like -d0 or -d6
sometimes is -v ) and a foreground switch (dontfork option)

tail /var/log/messages

start samba manually as a foreground process (in debug mode, dont fork if
you can) and check out the logs and the output

Hope this helps,
Cain
Reputation Points: 18
Solved Threads: 2
Posting Whiz in Training
Cain is offline Offline
298 posts
since Aug 2004
Jul 21st, 2005
0

Re: samba deleted?!?

thanks my friend. I have managed to reinstall samba and smb.
I noticed another problem, when i enter top into the shell it returns:

top:error while loading shared libraries:
bject file: No such file or directory..


I checked the log files, wiped no record of anything before I reset the server and turned the firewall back on.

The firewall I am using is firestarter..... can anyone recommend anything better that shows accepted connections too..


I am pretty sure the system was compromised - without a firewall the system was easier to hack than a hot knife through butter. My vnc password was probably the first possible password on any brute force password list. In addition I was running shared directories across the network. My only barrier was the firewall as it blocked these ports from the outside... so I thought not to worry... it wont happen.. but when I turned it off to test something..... bang

anyway.... I am going to reinstall red hat and firewall and any logging/activity viewing programs around.... can anyone recommend any... I have done some searches but I dont know whats best..


once again thanks
til
til
Reputation Points: 10
Solved Threads: 0
Newbie Poster
til is offline Offline
2 posts
since Jul 2005
Jul 21st, 2005
0

Re: samba deleted?!?

iptables is a nice option. You can log the connections or hand shakes which happen to your box. Try getting syslog to log to a remote server.

./thanks
ilaiy
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ilaiy is offline Offline
22 posts
since Jul 2005
Jul 22nd, 2005
0

Re: samba deleted?!?

Yeah iptables is probably the way to go.
I usually set them up in this order (i never use a deny statement with iptables
this way the hacker gets zero feedback and doesnt make it to a login prompt)

drop from all outside networks
log from all outside networks
drop ports from mysubdomaina (by ip e.g.)
log ports from mysubdoamina

allow my networks (by resolveable domainname e.g. *mydomain.com)
then

you can also use this with your hosts.allow and hosts.deny files
first deny anything not from your networks then allow only from your networks
by ip 10.1.1/24 or whatever the CIDR is .. you can also do it by subnetmask if im not
mistaken.
you can also set this to allow only from your resolveable networks
*.mydomain.com


enjoy
Cain
Reputation Points: 18
Solved Threads: 2
Posting Whiz in Training
Cain is offline Offline
298 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Kernel and Hardware Setup Forum Timeline: fedora core 3 modem
Next Thread in Linux Kernel and Hardware Setup Forum Timeline: SOUNDMAX ON VAIO laptop not working in FEDORA 3





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC