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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have been trying to configure my samba server for the past month and I am about to scream.
I would like to configure it so that people on my local network can access my shares w/out entering passwords (or possibly just saving the password). Everyone else on my network (4 other computers) are running Windows XP. I would also like to share my printer. Bascially I don't need/want any fancy options, I just want it setup basically like network neighbor hood on windoze.....oops miss spelling
if possibly someone could just post a dummy smb.conf file that i could almost copy word for word they would be the "dude" in my book. I would like to use a SHARE level security and not have to make users for every user (if possible).
yea I got it running, and I can see it in Network Neighborhood on the XP computers, when I try connecting I get an error message about permissions and something about another user w/ same name, but I know there is no user w/ the same name......(at least not that I know of)
Sharename Type Comment
--------- ---- -------
public Disk
Music Disk
Stuff Disk
Misc Disk
IPC$ IPC IPC Service (blando)
ADMIN$ Disk IPC Service (blando)
These documents are quite good. I have used them to set up Samba several times. Start with the one by IBM. Note that XP needs a few extra steps to join a Samba 2.x domain. See the section on client configuration.
Can you advise the Linux package your running your samba server on? I am keen to get mine working, but maybe I need a fresh approach.
Its currently running on an ASP linux machine, (installed with the initial setup packages), the services start, and the default user is setup in the KDE control module (my username, password and domain) but when I try to access it from a Windows 2k machine, it askes for the username and password.
On a Windows 98se machine, no questions, logs in, but only shows an unknown or inaccessable directory called "test".
I have looked through many documents pertaining to setting up a Samba server, but I haven't found one that says "start by installing your linux OS, e.g. RH 7.2, downloading the RPM package for samba, installing it etc)
I got it to work, here's what I did incase anyone in the future wants to know. This is my smb.conf file (/etc/samba/smb.conf) and I have it set up so Windows XP can access it without a password, and they all are mapped to use the guest account of sambaguest.
[global]
log file = /var/log/samba/%m.log
guest account = sambaguest
preserve case = no
guest ok = yes
map to guest = sambaguest
domain master = no
encrypt passwords = yes
hosts allow = 192.168.
netbios name = blando
server string = Linux
local master = no
workgroup = MSHOME
os level = 20
security = share
create mode = 666
preferred master = no
directory mode = 777
domain logons = yes
printcap name = lpstat
printing = cups
[printers]
browseable = no
comment = All Printers
writeable = no
path = /var/spool/samba
public = yes
printable = yes
guest ok = yes
print command = lpr -P %p -o raw %s -r
[public]
path = /home/blando
guest ok = yes
writeable = no
browseable = yes
printable = no
public = yes
[Mounts]
path = /mnt
guest ok = yes
writeable = yes
browseable = yes
printable = no
public = yes
The only problem I'm having now is allowing the Windows computers to print to my printer (its a Compaq IJ600, although for Linux to recognize it I had to install it as a Lexmark Z22 (it's basically a re-Branded printer). I still haven't done much investigating into the printing problem yet, so I'm not sure what the problem is....
I'm running Redhat 9, and yes I have X configured and I'm running it.
I don't have any samba users made. Basically I created a user for the linuxbox called sambaguest, I chose /sbin/nologin when i set up the user so that it wouldn't be used as a "user" exactly. And i set up the home directory for that user as / (you can add or modify users from system settings then users and groups)
the sambaguest account is not an account on the windows machine, it just basically works ;-)
I believe the way it works is that if a user that trys to login is not recognized (in my case every user) it then calls them a 'guest', and then i have the part that says "map to guest = sambaguest" and "guest account = sambaguest" (not sure which one of these does what or even if they are both needed, i'm just happy that it finally works)
my share directory is just my home directory, not sure what you mean by it being shared by other applications - i have other directories shared too, such as I have another Hard drive on my computer that i have mounted and shared here's what it looks like (i just didn't add it to the post above for spaces reasons.)
[Others]
path = /mnt/Others
guest ok = yes
browseable = yes
printable = no
I hate guest accounts, as theymake your setup less secure. If you're certain your network is secure, and you don't want to mess with passwords and such, you could use a config such as this:
[global]
workgroup = WORKGROUP
netbios name = Server
server string = Samba server
interfaces = eth0 10.0.0.
socket address = 10.0.0.
security = share
socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY
bind interfaces only = true
deadtime = 5
[share1]
writable = no
path = /xyz/share1
valid users = katkota
write list = katkota
force user = user1
force group = nogroup
browseable = no
public = no
printable = no
security mask = 0777
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.