LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba - Linux/Win2k (https://www.linuxquestions.org/questions/linux-networking-3/samba-linux-win2k-60857/)

JBush17 05-20-2003 03:25 PM

Samba - Linux/Win2k
 
Hi Everyone,

I'm having some real difficulties getting Windows and Linux to talk to eachother as I want them to. I have a box running Win2k Server with one user account (Administrator) set up. It has file and printer sharing turned on, and the drive has shared folders. On anotehr box, I have RedHat 7.2 (its a custom build) installed, and the RPMs for Samba Common and Samba Client installed with no configuration changes made to their installs. What I want to have happen is to be able to mount the shared Windows folders to a mount point on the Linux box. To do this, I've been using the mount -t smbfs ... -o user=Administrator,password=* command.

Now, this whole setup works fine while I have the Guest account enabled on the Win2k box. But, when I turn this account off, I can no longer connect from the Linux box to the 2k box. It tells me that access is denied when I try to mount. Does anyone know how to make this work?

Let me know if you have any questions. I would really appreciate the help!

~James

antken 05-20-2003 04:48 PM

hi,

i mount windows shares all the time using a a similar line

basically set up an additional user ( either in users applet in control panel or use the computer management - users and groups snap in )

make sure you have a username and password you can remember in there.
when sharing a folder make sure that user has access to the share, click on the permissions button on the property page.

alternatly, you can add your new user in to the administrators group.


although windows is not that secure i would recommend disabling your guest account and renaming it by pressing f2 then tapping random keys on the keyboard, then rename youd administrators account to something like james or terrance ( something your local hacker will not guess easily )


okay for example i am going to mount a share called workdir on a server named servera using a username of tux and a password of sheep to a directory called winshare in the mnt root folder ( /mnt/winshare )

on the linux machine i would do:

# mount -t smbfs -o username=tux //servera/workdir /mnt/winshare

the machine would respond with:
password: ( enter password here )

if you are returned to the command prompt with out any messages it worked

to unmount it do:
# umount /mnt/winshare

( note to mount and unmount these shares you have to be root )

hope this helps


All times are GMT -5. The time now is 08:59 AM.