Simple networks and redhat7 win2k [crossover cable] [linux newbie]

Q: OK, Im a linux running Win2K Pro as my primary newbie.

I system (sometimes boot in win98) and I just built my second box of redhat7.

Ive got 2 NICs and a . Physically they are functional. I ping eaches respective static IPs 0.

I want to be able to easily share files.

Also if its possible, ICS internat would be great. My 2000 box has the modem, and the ISA, so I can not switch to another box.

ANy help would be apreciated. Remember, Im a newbie bigtime. I did a search and found a post, but it was so my head.

Thanks
-breaker


Re: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.


Re: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


Re: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


Re: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.


Re: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 (http://www.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 (http://www.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.


Related posts

Leave a comment

0 Comments.

Leave a Reply


click to changeSecurity Code

[ Ctrl + Enter ]