Results 1 to 10 of 11
How could I ensure myself that any of my disks is not share to others on network?
I use shares on other machines using samba and wondering if others might ...
- 11-28-2005 #1Just Joined!
- Join Date
- Sep 2004
- Posts
- 50
check shares on my machine
How could I ensure myself that any of my disks is not share to others on network?
I use shares on other machines using samba and wondering if others might get access to my files without my knowledge. Sorry for so basic question.
- 11-28-2005 #2
Re: check shares on my machine
Run
Originally Posted by pksa
smbclient -L 127.0.0.1 -U yourusername
on your box to see what shares are available to user yourusername, or simply
smbclient -L 127.0.0.1
to see shares avalable for guests.
- 11-29-2005 #3Just Joined!
- Join Date
- Sep 2004
- Posts
- 50
Re: check shares on my machine
Hm
Look:
Does that mean that there no shares on my mashines or I'm doing that wrong.Code:linux:/home/pksa # hostname -i 10.0.0.119 [quote] [/quote]linux:/home/pksa # smbclient -L 10.0.0.119 Error connecting to 10.0.0.119 (No route to host) Connection to 10.0.0.119 failed
- 11-29-2005 #4No, it doesn't ...This means that your box is unable to connect to itself .. try smbclient with loopback address 127.0.0.1 ...Does that mean that there no shares on my mashines or I'm doing that wrong.
linux:/home/pksa # hostname -i
10.0.0.119Hmm, it lookx bit strangelinux:/home/pksa # smbclient -L 10.0.0.119
Error connecting to 10.0.0.119 (No route to host)
Connection to 10.0.0.119 failed
... do you have some firewall set-up ? Or don't you have inproperly set network mask or routing ? Try to run smblient -L 10.0.0.119 from another machine on your network, what does it say ?
- 11-30-2005 #5Just Joined!
- Join Date
- Sep 2004
- Posts
- 50
I have firewall set on.
I tried smbclient -L 127.0.0.1 but it gives the same message.
There might be something with network mask or routing. I guess that during system boot the ip is set to 10.0.0.111.
How could I check it?
- 11-30-2005 #6
Try to shut down the fw temprarily and check the smbclient ...
The command
orCode:ip addr show
will show you your IPCode:ifconfig
- 11-30-2005 #7Just Joined!
- Join Date
- Sep 2004
- Posts
- 50
Wright:
linux:/home/pksa # ip addr show
linux:/home/pksa # ifconfigCode:1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: sit0: <NOARP> mtu 1480 qdisc noqueue link/sit 0.0.0.0 brd 0.0.0.0 3: eth0: <BROADCAST,MULTICAST,NOTRAILERS,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:c0:f0:3c:5b:18 brd ff:ff:ff:ff:ff:ff inet 10.0.0.111/24 brd 10.0.0.255 scope global eth0 inet6 fe80::2c0:f0ff:fe3c:5b18/64 scope link valid_lft forever preferred_lft forever
ButCode:eth0 Link encap:Ethernet HWaddr 00:C0:F0:3C:5B:18 inet addr:10.0.0.111 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::2c0:f0ff:fe3c:5b18/64 Scope:Link UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:603 errors:1 dropped:0 overruns:0 frame:0 TX packets:493 errors:4 dropped:0 overruns:0 carrier:4 collisions:0 txqueuelen:1000 RX bytes:208580 (203.6 Kb) TX bytes:94836 (92.6 Kb) Interrupt:11 Base address:0xe800
linux:/home/pksa # hostname -i
Code:10.0.0.119
And finaly:
linux:/home/pksa # smbclient -L 10.0.0.111
[/quote]Error connecting to 10.0.0.111 (Connection refused)
Connection to 10.0.0.111 failed
- 11-30-2005 #8
Well done,
after all it seems you don't have samba (smbd) running and nobody from local network cannot acces your files using it ...
- 12-01-2005 #9Just Joined!
- Join Date
- Sep 2004
- Posts
- 50
First of all thank you v.much for help.
I need to read sth about smb client. I don't have it installed but I can mount other shares (mount -smbfs). Does that mean that to share disk smb client should be installed but to mount them there is no such need?
What about the other ip which is reported by hostname -i. Is there something wrong?
- 12-01-2005 #10Not exactly. To share your files you nedd smbd (smba daemon, from package samba). To acces files ahred by others you need smblient (samba client, package samba-clent). This clients allows you to mount the shares from others machines.
Originally Posted by pksa
I'm not sure about this ... maybe some misconfiguration ... but the ip (of ifconfig) are reliable sourcesWhat about the other ip which is reported by hostname -i. Is there something wrong?


Reply With Quote
