Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
then i can just see the files from public directories existing in win 2k server from linux.
and even though i ping win 2k server with the local ip and computer name on linux, i get a reply from it. but when i try to ping frodo on windows 2k server, i don't get the reply. but i get the reply by pinging the local ip of the linux machine.
what i want to do is browse frodo in windows 2k server so that i can shares files and also use the server, too.
on "Computers Near Me" on win 2k server, it shows "frodo", but when i try to browse, i get "Frodo is not accessible. The network path was not found.". i don't know why i can't get access to the linux machine from windows even though i can get access to windows from linux.
here is my smb.conf
[global]
log file = /var/log/samba/%m.log
load printers = yes
smb passwd file = /etc/samba/smbpasswd
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
username map = /etc/samba/smbusers
hosts allow = 192.168.1.101 192.168.1.100
encrypt passwords = yes
wins proxy = yes
passwd program = /usr/bin/passwd %u
dns proxy = no
netbios name = frodo
browseable = yes
netbios aliases = frodo
server string = samba server
printing = cups
default = public
path = /tmp/download
unix password sync = Yes
workgroup = workgroup
os level = 20
auto services = public
printcap name = /etc/printcap
security = user
max log size = 0
pam password change = yes
Make sure samson is part of the workgroup conveniently called "workgroup". Next make sure you added the user via smbadduser? Make sure samson is in "hosts allow =" and double check you firewall as Demonbane mentioned. You may want to add samson to /etc/hosts just for ease. As for your firewall:
[somedir]# redhat-config-securitylevel
Click on "Customize".
Click the check box for your network adapter (usually "eth0").
Click on the checkboxes for any services you want to allow (I allow WWW,
FTP and SSH).
In the "Other ports" edit box, enter
"137:udp,137:tcp,138:udp,138:tcp,139:udp,139:tcp,445:tcp". At a command prompt type
[somedir]# service iptables stop
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]
[somedir]# service iptables start
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules: [ OK ]
This should allow all the packets necessary for Samba.
{snip from "http://lists.samba.org/archive/samba-docs/2003-March/000288.html"}
- - Your hint should only apply to a firewall that serves to harden your server
~ installation, i.e. if you use iptables on your server to control, which
~ kind of packets *from your local net* your server responds to.
~ If your firewall has the additional purpose to separate your local net
~ from the internet, then allowing NetBIOS over TCP/IP is not a good idea.
~ There are currently several windows worms that scan random IP address
~ ranges for weakly protected windows shares, so opening up your network to
~ these protocols is a bad idea!
~ To repeat that: You should open Ports 137, 138 and 139 (UDP and TCP)
~ only for your local net, not for the internet.
I've followed your posted,. At Samba Setting window, I leave default workgroup name is "mygroup" and add 1 samba user named ADM. Windows users can access my share now
ah, when I create Samba User, I see 2 options: Unix Username (I chose ADM - the 1st user in list) and Windows username (I typed "admin") and leave blank password.
When I move to Windows and try access my shared folder, the username and password appear, if I type "admin" (windows username), access denied. if I type ADM and enter, it work. Can you tell me why it is.
Originally posted by saudoi I've followed your posted,. At Samba Setting window, I leave default workgroup name is "mygroup" and add 1 samba user named ADM. Windows users can access my share now
ah, when I create Samba User, I see 2 options: Unix Username (I chose ADM - the 1st user in list) and Windows username (I typed "admin") and leave blank password.
When I move to Windows and try access my shared folder, the username and password appear, if I type "admin" (windows username), access denied. if I type ADM and enter, it work. Can you tell me why it is.
Thanks
I think this accurs because there is not linux user "admin". But there is a user ADM. Or maybe I misunderstood the question. (It's getting late)
This is the correct format for smbadduser:
smbadduser unixid:ntid
4:00 in the morning and I don't know why I am awake. From your smb.conf file, it seems like you are still using samba version 2.8 , 2.9 , or something like that. I would make sure two major things.
#1 Make sure your workgroup on your W2k and smb.conf file match.
#2 Make sure you have added the IP number of the linux box in as wins server in your W2k Machine
I would do a computer search and see if you can find it. If not, you may have more problem than I can see. Since I don't see the whole configuration file, I can't really help you with from what you have. If it helps, here is my configuration file
Code:
# Global parameters
[global]
workgroup = MYGROUP
netbios name = STAFF
server string = Samba Server
encrypt passwords = Yes
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 33
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
remote browse sync = 192.168.3.25 192.168.5.255
hosts allow = 192.168.1. 192.168.2. 127.
printing = cups
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No
don't forget samba -a 'username'
Sorry, I am kinda sleepy and have to get up in 3 hours for work
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.