• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Simple networking redhat7 and win2k

Breaker78

Senior member
OK, I'm a linux newbie.

I run win2k Pro as my primary system (sometimes boot it into win98) and I just built up my second box with redhat7.

I've got 2 NICs and a crossover cable. Physically they are functional. I ping eaches respective static IP's.

I want to be able to easily share files.

Also, if its possible, internat connection sharing would be great. My 2000 box has the modem though, and its ISA so i can't switch it to the other box.

ANy help would be apreciated. Remember, I am a bigtime newbie. I did a search and found one post, but it was way over my head.

Thanks
-breaker
 
You could run SAMBA on your Linux box. This is pretty straightforward and there is plenty of documentation on it all over the web (for instance, samba.org).

Also, you could run something like PCNFS or Microsoft's Services for UNIX on your Win2k box and mount an NFS share that resides on your Windows box. I think the Samba share is probably the easiest tho.

Alternatively, you can mount an SMB share with the mount command or go to Freshmeat.net and grab an app like Komba to mount Windows shares. It browses your Windows networks with ease and lets you mount Windows shares very easily. It just takes a little configuration on your part.

If you want to use the mount command, just type this from your terminal.

mount -t smbfs -o username=USERNAME,password=PASSWORD //Wincomputername/sharename /mountpoint/mountpoint


Sharing connections is really easy too. All you need to do is configure either some proxy or NAT software on the Windows box and then go to your Linux box and point to the IP address of your Windows box as your network gateway. I believe netcfg or Linuxconf should let you do this.
 
ok, i'm trying to use the mount command and i keep getting this error

I had to use uid instead of username, but it still isn't working


session request to 192.168.0.20 failed
session setup failed: ERRDOS - ERRnoaccess (Access Denied.)
SMB connection failed.

I'm downloading samba, but i don't know how I'm going to get it over to my linux box.
 
try under 2k
smbmount //SERVERNAME/C (or share name) /mnt/MOUNTDIR (or directory of your choice) -user username -password password

or
smbmount //IP ADDRESS OF SERVER/C (or share name)/mnt/mountdir (or directory of your choice) -I -user username -password password

when under win9x
smbmount //servername/c (or share name) /mnt/mntdir (or directory of your choice) -password password
or
smbmount //IP ADDRESS OF SERVER/c (or share name) /mnt/mntdir -I -password password
NOTE: you need to have a directory you wish to mount your remote system, I created a dir under /mnt called misc.

Also, a good admin utillity, not sure if its in RH7, is webmin. If its not included in RH7, go download it off freshmeat. This is the, in my opinion, easiest way to set up a samba server on Linux. Once you have samba set up, you can browse the Linux shares with windows explorer.

Jim
 
oops, forgot to tell you. You have to have root (administrator) privilages to mount directories with smbmount or mount. I do not reccomend doing things as root, so here is a solution. See if you have sudo installed on your system. To do this type rpm -q sudo. If you do, edit /etc/sudoers and add your user id and match that of root. Then when you issue command that require root access you can type sudo (name of command) for example:
sudo smbmount //SERVERX/C /mnt/misc -user joeblow -password joey

it will ask for your password, type your password. After it has asked you for your password, the rest of your session you will not need to enter a password again. Not bad, and safer than SU or logging in as root.

Jim
 
I am such a fool. The username has to be the username of the account on your Windows box. And, like Jimmt said, you need to be Root in order to mount in a directory other than your home directory.

So, one more time:

mount -t smbfs -o username=windowsuser,password=windowspassword //windowspc/windowsshare /mountpoint/mountpoint


That should work just fine.
 
Back
Top