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.
I have finally got Samba doing a wonderful job of acting as a nice little file server, with private, public and read-only shares. It is wonderful. The only problem I have now is that my Win2k box is a dual-boot with RH8. I can do the shares just fine on Win2k, but when I reboot to RH8 I'm not so sure.
I am using the same IP address (OK? no-no? what's the take on that?) but a different host name (again, is this not good?). I want to be able to use the same private share regardless of which machine I'm logged into, or which OS. Do I need to use different host names with different IPs and the same host name when using the same IP? Or am I OK using one IP with two different host names on the same box?
I know I'm making this harder than it has to be, but this is one of the reasons I turned to Linux in the first place - I want to learn. If I can figure out enough wrong ways to do things, I feel I'll be much better off when I finally get around to what works best for me.
Aside from that, it's a pretty simple network: 5-port switch, one of which is my firewall to the 'Net. It's been p2p up until now. The only thing I've consciously set up on my server is Samba. I have another serverbox I'm going to use for hosting web stuff. My file server is running Slackware 9.1 (since so many people rave about it), using Samba 3.0.1. I want to set it up as a PDC, but I know jack-squat (lives in a van, down by the river) about domains, groups and the like, so I'm learning as I go. I hope.
If there's anything I can pass along to help, let me know.
You'll share your files with which computer? What is important to describe here is your plan: how will your computers will interact? What services will be offered by and used by which computer, especially for samba.
And what is the problem exactly. Have you tried it already? Errors? logs?
Okay, what I'm trying to do is set this up so that I can share //myserver/home/myfiles with my logon account, regardless of where I'm logged on. If that's not possible, the next acceptable scenario is that I can share //myserver/home/myfiles with my dual-boot system, regardless of whether I've loaded Win2k or RH8. As I stated originally, I've got this working quite well for my Win2k systems. What I don't know how to do is get it working for RH8.
I guess my big question is do I need to load a Samba server on my RH box, or will the Samba client allow me access to my file server (given that permissions are all correct)? I'm pretty much stuck at this point. All of the how-to's that I've found on-line are not real helpful in gaining any understanding. I did follow through an "Unofficial Samba How-To", which got me up and running to this point, connecting from Win2k. But when it came to connecting to my fileserver from a Linux box, the instructions pretty much lost me. Kinda like he expects you to know what you're doing at that point. I'm still learning.
So, just to make sure I've answered the questions:
I have a file server running Samba server.
I have configured it, and my Windows computers, to work as expected.
One of my Windows computers is dual-boot with RH.
I would like to use a different host/NetBIOS name for each OS on this box, but still use the same IP address.
I want to set up RH to use Samba to access my "network drive" or mountpoint on my file server.
I really don't know where to start setting up RH to accomplish this.
The only thing you need now is to setup your RH box to mount your remote drives right?
you can do that with the mount command, for individual users, you can put the mount command in a script initialization file, such as .bashrc or something like that.
You can use also fstab, but this mounts the drives for everyone. The mount command is tricky for that, and I'll try to find the exact syntax for you.
GREAT!! I was beginning to think I was becoming a source of annoyance. Thanks for hanging in there with me.
I know there are logon scripts that run (or can run) at startup. I'm pretty ignorant. I'm guessing they're kinda like .bat files for DOS (particularly autoexec.bat). Any advice on this subject?
Okay, I'm just trying to get the darned thing to mount. I can worry about automating it after I make it work manually. Here's my command and reward:
# mount -t smbfs -o username=******,password=******** //uther/public /mnt/netCommon
# 3361: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
I have created the /mnt/netCommon directory on my local box. public is the share I have defined as EVERYONE can access it. I blanked out the username and password, since they're really irrelevant to making this work. Any suggestions?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.