LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2001, 11:12 PM   #1
Sully
LQ Newbie
 
Registered: Aug 2001
Location: Milwaukee
Distribution: Red Hat Linux 7.1 (Canned Caldera e2,4)
Posts: 10

Rep: Reputation: 0
Unable to ping out from RH7.1/Network Disabled


I just installed RH7.1, and have a small workgroup network (no PDC), all other machines running Windows2K/Win98. I am using a Linksys LNE 100TX card on linux box, and the tulip driver module IS installed, (shows up after lsmod command). I use a Linksys BEFSR41 router/switch/firewall to connect all machines to the cable modem. I can surf the web from all machines, incl. linux. I can ping into the linux box from everywhere using the IP address or netbios name. However, I can't ping out from linux to any other machine on my network. The appropriate hosts file resides on all machines, incl. on RH7.1. I can ping myself using linux netbios name. At boot, the eth0 loads 'OK.' No obvious error messages anywhere.
All windows machines have user accounts on the linux box, using the exact same login/password in each case.
Questions: how can I get the network to work? This seems like a permissions problem. For example, I had to edit the appropriate samba files to activate it (ie, change kill file to start file, and edit line that originally read: disable=yes to disable=no). Likewise, I had to activate SWAT in a similar manner. Is there another activation I need to do?
Could this be a problem with the tulip driver? How can I tune the tulip module--I looked and can't even find it.
Needless to say, Samba does not work at all. That's the next challenge, I guess.
Could any of this be related to using shadow passwords (I am using them)?
Any Ideas Appreciated.
Sully
 
Old 08-08-2001, 01:51 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
do ifconfig and see if your ip address is on the same network. Same netmask etc...

[root@cc784984-a /root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:xx:xD:x3:3x:1x
inet addr:xx.xx.xx.222 Bcast:xx.xx.xx.255 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:100132 errors:0 dropped:0 overruns:0 frame:0
TX packets:4865 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xd800

eth1 Link encap:Ethernet HWaddr 0x:xx:7x:1x:xx:xx
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1172 errors:0 dropped:0 overruns:0 frame:0
TX packets:1078 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:5 Base address:0xdc00

eth2 Link encap:Ethernet HWaddr 00:xx:7x:1x:xx:5x
inet addr:11.0.0.1 Bcast:11.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2188 errors:0 dropped:0 overruns:0 frame:0
TX packets:1970 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:619 errors:0 dropped:0 overruns:0 frame:0
TX packets:619 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

and route -n should have the matching routes for the interaces

[root@xxxxxxx /root]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xx.xx.xx.222 0.0.0.0 255.255.255.128 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 xx.xx.xx.129 0.0.0.0 UG 0 0 0 eth0

When you say ping do you mean with an address like

ping 10.0.0.2

or computer name like this

ping slowpoke

does your /etc/hosts file contain

10.0.0.2 slowpoke

also try

smbclient -L slowpoke

[root@xxxxxxxx /root]# smbclient -L winme
added interface ip=10.0.0.1 bcast=10.0.0.255 nmask=255.255.255.0
added interface ip=11.0.0.1 bcast=11.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.2 ( 10.0.0.2 )
Password:

Sharename Type Comment
--------- ---- -------
PRINTER$ Disk
HP DESKJET 5 Printer
PWRCHUTE Disk POWERCHUTE SHARED DIRECTORY
IPC$ IPC Remote Inter Process Communication

Server Comment
--------- -------
ALPHA Samba Server
WINME Windows ME

Workgroup Master
--------- -------
HOME WINME

 
Old 08-08-2001, 11:36 PM   #3
Sully
LQ Newbie
 
Registered: Aug 2001
Location: Milwaukee
Distribution: Red Hat Linux 7.1 (Canned Caldera e2,4)
Posts: 10

Original Poster
Rep: Reputation: 0
Dear David Phillips,
Thanks for your detailed response to my questions. I appreciate it. I have tried the commands you suggested, and hopefully this will shed some
light on the problem.
Here's what I get when I run ifconfig and pipe it to gedit:
eth0 Link encap:Ethernet HWaddr 00:A0:CC:37:6C:46
inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:666 errors:0 dropped:0 overruns:0 frame:0
TX packets:636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:9 Base address:0xd000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

Here's what I get with route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

Here's a weird thing: when i do a smbclient -L thinkpad, it says adding interface 192.168.1.104 (the linux machine, NOT thinkpad), then asks for a
password. If I simply press enter, it generates access denied errors, and none of the shares appear under the headings. If I try using a password, it
invariably fails. ERRDOS , etc. I have tried all my known applicable passwords, for root, for linux user, for thinkpad login, and NONE of them works.
Could this be related to my problem? BTW, I was unable to pipe the output of the smbclient -L command to gedit. Tried vi, but could not copy and
paste from there.

Oh, and the problem has changed a little: I can now ping from anywhere to anywhere on my network. Why this now works, I have no idea. Maybe my
hosts file finally got read somewhere.

Any ideas about any of this? I can ping, I can surf, I just can't run Samba. Could a samba file be in the wrong directory somewhere? I upgraded to
2.0.10, and in the case of SWAT, the rpm places some key files in the wrong directory. Maybe that's happening with samba itself?

Are you sure this has nothing to do with shadow passwords? I could turn them off fairly easily, if you thought it would help.

Sully
 
Old 08-08-2001, 11:49 PM   #4
Sully
LQ Newbie
 
Registered: Aug 2001
Location: Milwaukee
Distribution: Red Hat Linux 7.1 (Canned Caldera e2,4)
Posts: 10

Original Poster
Rep: Reputation: 0
Interesting error message

I did a testparm of my smb.conf file, using the hostname IP address parameter. This is what I got:
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[/home/rob]"
Loaded services file OK.
ERROR: the 'unix password sync' parameter is set and the 'passwd program' (/bin/passwd) cannot be executed (error was No such file or directory).
WARNING: You have some share names that are longer than 8 chars
These may give errors while browsing or may not be accessible
to some older clients
Allow connection from thinkpad (192.168.1.101) to homes
Allow connection from thinkpad (192.168.1.101) to printers
Allow connection from thinkpad (192.168.1.101) to /home/rob

Does this shed light on why samba doesn't work? Let me know.
Sully
 
Old 08-09-2001, 11:06 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Several things could be wrong.

If the thinkpad is not letting guests access the shares, like if it win2k the guest account must be enabled.

It sounds like you should turn off sync password and set a different password for a guest account.

Lets say you put a guest name in samba like sully


then you would do this

smbadduser sully:sully

then

smbpasswd sully

and enter your password

then you can set the username in samba to sully, so that whatever user you are logged on to in windows can use the password for sully samba user.

You should see everyone in network neighborhood then.

Setting up a wins server should get you seeing and pinging all subnets.


If you enable the support wins
and wins proxy it should work

if you have dhcp running you can send it out to everybody, if not you can just put the linux ip in for the wins server.

heres is my dhcpd.conf if you want to do that.

authoritative;
default-lease-time 32400;
max-lease-time 64800;

subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.4;
option routers 10.0.0.1, 11.0.0.1;
option broadcast-address 10.0.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.0.1, 11.0.0.1;
option domain-name "HOME";
option netbios-scope "";
option netbios-dd-server 10.0.0.1;
option netbios-node-type 8;
option netbios-name-servers 10.0.0.1, 11.0.0.1;

}

subnet 11.0.0.0 netmask 255.255.255.0 {
range 11.0.0.2 11.0.0.4;
option routers 11.0.0.1, 10.0.0.1;
option broadcast-address 11.0.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 11.0.0.1, 10.0.0.1;
option domain-name "HOME";
option netbios-scope "";
option netbios-dd-server 11.0.0.1;
option netbios-node-type 8;
option netbios-name-servers 11.0.0.1, 10.0.0.1;

}


this sets everything up for my subneted lan and here is my smb.conf

# Samba config file created using SWAT
# from xxxxxxxx(127.0.0.1)
# Date: 2001/08/09 10:08:55

# Global parameters
[global]
workgroup = HOME
netbios name = ALPHA
server string = Samba Server
interfaces = eth1 eth2 127.0.0.1
security = SHARE
encrypt passwords = Yes
allow trusted domains = No
log file = /var/log/samba/%m.log
max log size = 0
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 65
preferred master = Yes
wins proxy = Yes
wins support = Yes
username = david
guest account = david
valid users = david
hosts allow = 10.0.0. 11.0.0. 127.
hosts deny = 0.0.0.0
printing = lprng

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[hp500]
comment = Hp Deskjet 500
path = /var/spool/samba
writeable = Yes
printable = Yes
printer = hp500
oplocks = No
share modes = No

[pub]
path = /work/pub
writeable = Yes
level2 oplocks = Yes


with these setting I can ping from one subnet to the other and also use network neighborhood in windows.


To paste here from a terminal select the text in the terminal, then click back in the browser where you want to insert and click the middle mouse button to paste.

Also there is a bug in windows for workgroups where it does not send the right user name so the password will be invalid. That's one good reason to use the username in samba.

make sure to keep 127. in the hosts allow.



Last edited by DavidPhillips; 08-09-2001 at 05:46 PM.
 
Old 08-09-2001, 01:16 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I think the problem you have with pinging out is something to do with the router, if the computers were hooked up to a hub then you should be able to ping any machine with a 192.168.1. number.

If you have a crossover cable or a hub you could hookup the linux box and a win98 box to it and try it.


One thing worth trying is remove the default route and try pinging.


route del default

ping 192.168.1.101


then to put it back

route add default 192.168.1.1



Keep in mind that there is also a hack to the windows registry that can disable encrypted passwords if you want to do it, for the problem with w2k not having the correct password.


smbclient -L win2k

on my machine I just hit enter with no password and it shows the shared folders.

My guest account is enabled in win 2k for it to allow this.



Last edited by DavidPhillips; 08-09-2001 at 01:20 PM.
 
Old 08-09-2001, 05:02 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
quote:

Here's a weird thing: when i do a smbclient -L thinkpad, it says adding interface 192.168.1.104 (the linux machine, NOT thinkpad), then asks for a
---------------------------------------

this is correct
it is letting you know the interfaces that it is broadcasting on.

and here is my testparm for more detail


/root]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[hp500]"
Processing section "[pub]"
Loaded services file OK.
Press enter to see a dump of your service definitions

# Global parameters
[global]
coding system =
client code page = 850
workgroup = HOME
netbios name = ALPHA
netbios aliases =
netbios scope =
server string = Samba Server
interfaces = eth1 eth2 127.0.0.1
bind interfaces only = No
security = SHARE
encrypt passwords = Yes
update encrypted = No
allow trusted domains = No
hosts equiv =
min password length = 5
map to guest = Never
null passwords = No
password server =
smb passwd file = /etc/samba/smbpasswd
root directory = /
passwd program = /bin/passwd
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
username map =
password level = 0
username level = 0
unix password sync = No
restrict anonymous = No
use rhosts = No
debug level = 2
syslog = 1
syslog only = No
log file = /var/log/samba/%m.log
max log size = 0
debug timestamp = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
nt acl support = Yes
announce version = 4.2
announce as = NT
max mux = 50
max xmit = 65535
name resolve order = lmhosts host wins bcast
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = Yes
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max disk size = 0
max open files = 10000
read prediction = No
read size = 16384
shared mem size = 1048576
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
stat cache size = 50
load printers = Yes
printcap name = /etc/printcap
printer driver file = /etc/samba/printers.def
strip dot = No
character set =
mangled stack = 50
stat cache = Yes
domain groups =
domain admin group =
domain guest group =
domain admin users =
domain guest users =
machine password timeout = 604800
add user script =
delete user script =
logon script =
logon path = \\%N\%U\profile
logon drive =
logon home = \\%N\%U
domain logons = No
os level = 65
lm announce = Auto
lm interval = 60
preferred master = Yes
local master = Yes
domain master = No
browse list = Yes
dns proxy = Yes
wins proxy = Yes
wins server =
wins support = Yes
wins hook =
kernel oplocks = Yes
ole locking compatibility = Yes
oplock break wait time = 10
smbrun = /usr/bin/smbrun
config file =
auto services =
lock directory = /var/lock/samba
default service =
message command =
dfree command =
valid chars =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map = auto.home
time offset = 0
unix realname = No
NIS homedir = No
source environment =
panic action =
comment =
path =
revalidate = No
username = david
guest account = david
invalid users =
valid users = david
admin users =
read list =
write list =
force user =
force group =
writeable = No
create mask = 0744
force create mode = 00
security mask = -1
force security mode = -1
directory mask = 0755
force directory mode = 00
directory security mask = -1
force directory security mode = -1
inherit permissions = No
guest only = No
guest ok = No
only user = No
hosts allow = 10.0.0. 11.0.0. 127.
hosts deny = 0.0.0.0
status = Yes
max connections = 0
min print space = 0
strict sync = No
sync always = No
write cache size = 0
printable = No
postscript = No
printing = lprng
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer =
printer driver = NULL
printer driver location =
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
browseable = Yes
blocking locks = Yes
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = No
oplock contention limit = 2
strict locking = No
share modes = Yes
copy =
include =
preexec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[hp500]
comment = Hp Deskjet 500
path = /var/spool/samba
writeable = Yes
printable = Yes
printer = hp500
oplocks = No
share modes = No

[pub]
path = /work/pub
writeable = Yes
level2 oplocks = Yes
[root@

hope this will help
 
Old 08-09-2001, 05:05 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
hereis win2k

I did not enter a password, although I will to access the shares

/root]# smbclient -L win2k
added interface ip=10.0.0.1 bcast=10.0.0.255 nmask=255.255.255.0
added interface ip=11.0.0.1 bcast=11.0.0.255 nmask=255.255.255.0
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
Got a positive name query response from 127.0.0.1 ( 11.0.0.3 )
Password:
Domain=[HOME] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
hp890c Printer HP DeskJet 890C
IN Disk Read/Write
OUT Disk Read Only
R$ Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share

Server Comment
--------- -------

Workgroup Master
--------- -------




also run tcpdump and see what kind of traffic you have coming in.

Last edited by DavidPhillips; 08-09-2001 at 05:18 PM.
 
Old 08-09-2001, 05:11 PM   #9
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hi
Have you added the user accounts to smbpassword ? I did it using swat. Go to the passwords tab, type in the user and pw details then click add user. This should create the password file. Then click enable user, and you should be OK.
Jim
 
Old 08-09-2001, 06:06 PM   #10
Sully
LQ Newbie
 
Registered: Aug 2001
Location: Milwaukee
Distribution: Red Hat Linux 7.1 (Canned Caldera e2,4)
Posts: 10

Original Poster
Rep: Reputation: 0
Several things could be wrong.

"If the thinkpad is not letting guests access the shares, like if it win2k the guest account must be enabled."

Q: why do I need a guest account on Win2k to access shares on another machine?

"It sounds like you should turn of sync password and set a different password for a guest account."

I turned off unix password sync in SWAT, and still no access.

"Lets say you put a guest name in samba like sully


then you would do this

smbadduser sully:sully

then

smbpasswd sully

and enter you password"
I did all this already from command line.

"then you can set the username in samba to sully, so that whatever user you are logged on to in windows can use the
password for sully samba user."
Please explain this paragraph. You lost me completely. What does it mean to set the username in samba to sully? How does this affect windows logins?

"You should see everyone in network neighborhood then."
I wish.

"Setting up a wins server should get you seeing and pinging all subnets."
I have only one subnet on my network, so I don't plan to use wins.




if you have dhcp running you can send it out to everybody, if not you can just put the linux ip in for the wins server.
I have disabled dhcp on the linux box, and also on the router, and have gone to static IPs until the samba thing is worked out. Have done the requisite hosts file thing.

I was manually going through the smb.conf file, and I noticed that I have no paragraph called [netlogons]. Do I need one? Please give me an example if you have one.

Thanks. We'll get this evertually...
Sully








DavidPhillips
Member

Registered: Jun 2001
Location: South Alabama
Distribution: RedHat 7.1 (Seawolf)
Posts: 252
I think the problem you have with pinging out is something to do with the router, if the computers were hooked up to
a hub then you should be able to ping any machine with a 192.168.1. number.

If you have a crossover cable or a hub you could hookup the linux box and a win98 box to it and try it.


One thing worth trying is remove the default route and try pinging.


route del default

ping 192.168.1.101


then to put it back

route add default 192.168.1.1



Keep in mind that there is also a hack to the windows registry that can disable encrypted passwords if you want to
do it, for the problem with w2k not having the correct password.


smbclient -L win2k

on my machine I just hit enter with no password and it shows the shared folders.

My guest account is enabled in win 2k for it to allow this.



__________________
We have found the enemy, and it is us!

Last edited by DavidPhillips on 08-09-2001 at 01:20 PM

Report this post to a moderator | IP: Logged
08-09-2001 01:16 PM
 
Old 08-09-2001, 06:09 PM   #11
Sully
LQ Newbie
 
Registered: Aug 2001
Location: Milwaukee
Distribution: Red Hat Linux 7.1 (Canned Caldera e2,4)
Posts: 10

Original Poster
Rep: Reputation: 0
Hey DrJim,
Thanks for your input. I am having a little trouble interpreting what it means.
In answer to your lead question: yes, I have added the user accounts using smbpasswd from the command line. SWAT is nice, but since I have spent hours in SWAT with no success, I have my doubts about it actually doing anything. I trust the command line.
You wrote:
'Go to the passwords tab, type in the user and pw details then click add user. This should create the password file. Then click enable user, and you should be OK. '

I am curious about he 'enable user' bit. I'll check into that in SWAT, unless you can tell me the command line modifier for that function.

I still have basic questions:
On the linux machine, do I have to be logged in as anyone in particular in order to login from a network windows machine? If I'm logged in on the linux box as root, can I access samba using the usernames and passwords I set up? Do I have to be logged in on Linux as the same user as I'm logging in as from windows?

Can linux usersaccounts be different than samba users/accounts?
Thanks,
Sully
 
Old 08-09-2001, 06:55 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
"If the thinkpad is not letting guests access the shares, like if it win2k the guest account must be enabled."

Q: why do I need a guest account on Win2k to access shares on another machine?

this applies to

accessing shares on the win2k box from linux. but you are right you can specify

user%password

I am just used to having lots of users on my network and not having all of them in each machine as a user, so the guest account is the only way to go for shares.
------------------------------------

"then you can set the username in samba to sully, so that whatever user you are logged on to in windows can use the
password for sully samba user."
Please explain this paragraph. You lost me completely. What does it mean to set the username in samba to sully? How does this affect windows logins?

the username variable in samba is for a user logging in. the password given will be compared to this username and it will sign you on, this will get around the problem of having to have windows send out the username, win2k prompts for a user whereas win 98 does not.

The other option is to use unencrypted passwords, which will require you to hack your win2k registry which will disable it.

---------------------------------------

"You should see everyone in network neighborhood then."
I wish.

mine does with the settings I have shown here.

win2k, win98, winme.


-------------------------------------


I am not using net logons.

-------------------------------------------

None of this really explains why you can not ping a machine on you lan.

All you need is the same ip network.

did you try deleting the default route?

the only other thing I can think of is to flush ipchains and try it

ipchains -F

route del default

ping 192.168.1.101

Hope you figure it out.

I would like to know what it is.

Last edited by DavidPhillips; 08-09-2001 at 07:04 PM.
 
Old 08-09-2001, 07:19 PM   #13
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Can linux usersaccounts be different than samba users/accounts?

the smb user has to be in /etc/passwd

this can be any user, not necessarily a real user with a shell, for instance you could use ftp as a user.

for security reasons I would not use the same password for unix and samba if you do use a real user account.

Last edited by DavidPhillips; 08-09-2001 at 07:22 PM.
 
Old 08-09-2001, 09:10 PM   #14
Sully
LQ Newbie
 
Registered: Aug 2001
Location: Milwaukee
Distribution: Red Hat Linux 7.1 (Canned Caldera e2,4)
Posts: 10

Original Poster
Rep: Reputation: 0
David--
Thanks for your input. Just want to let you know that the ping problems is now completely SOLVED! Don'r really know how/why it now works, but i can ping any computer from any other computer on my LAN.

Samba still won't work. I have gone over the smb.conf yet again, and loosened up security settings where appropriate.

Would you mind taking a look?


# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2001/08/09 20:58:54

# Global parameters
[global]
client code page = 437
workgroup = WHITNET
netbios name = CALDERA
server string = Samba Server
encrypt passwords = Yes
allow trusted domains = No
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
hosts allow = 192.168.1.
printing = lprng
dos filetimes = Yes

[homes]
comment = Home Directories
writeable = Yes
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[/home/rob]
path = /tmp
writeable = Yes
guest ok = Yes

[Thinkpad]
path = /tmp
writeable = Yes
guest ok = Yes

[Laptop]
path = /tmp
writeable = Yes
guest ok = Yes

[RT]
path = /tmp
username = RT
writeable = Yes
force create mode = 0755
guest ok = Yes

BTW, what does 'browseable' yes/no mean?

ALSO-- here's what I get when I try to use smbstatus:

Couldn't open status file /var/lock/samba/STATUS..LCK

This could have something to do with my problems, don't you think?
Regards,
Sully

Last edited by Sully; 08-09-2001 at 09:16 PM.
 
Old 08-09-2001, 09:34 PM   #15
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Browsable = yes will let people see it.

If you set [printers] to browsable yes you would see a folder but it will not be a printer, just the spooled files folder.

but you don't have to see it to access it.

for homes you can acces your users home folder without letting everyone see the homes folder.

Also you can check permissions on your shared folders,

mine are owned by root, but allowed group access to a group I created and added the users to that group. I turned others access off.

/tmp may not be a good path because of all the files in there. but it is probably set to allow others access and it is most likely sticky. So it should work.

look at your log files, in /var/log/samba

/var/log/samba/%m.log

will have created a log file for each machine trying to gain access and will have a clue why they could not get in. It will also give the user name on the machine.

If the log files are there you should be able to figure out the problem from them.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 linux boxes unable to ping each other in a network lqsukumar Linux - Networking 4 07-21-2005 05:36 PM
Unable to ping to suse 9 pc over vpn network. lobsiger Linux - Networking 2 04-19-2004 11:23 AM
Unable to ping internet through RH7.3 box w/ 2nics dc78 Linux - Networking 3 02-07-2004 07:56 PM
Unable to ping or Traceroute or FTP from local network. retheesh Linux - Networking 3 10-15-2003 06:20 AM
Unable to ping my Linux box on windows network rajjay Linux - Networking 18 07-28-2003 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration