LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2003, 03:25 PM   #1
JBush17
LQ Newbie
 
Registered: May 2003
Posts: 1

Rep: Reputation: 0
Question 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
 
Old 05-20-2003, 04:48 PM   #2
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
Copying Long Filenames from Win2k to a Linux Samba directory brianabroad Linux - General 0 10-30-2003 12:41 AM
Samba: Win2K/Linux; Linux shares are all "read-only system file" (and they shouldn't cornellS Linux - Software 4 06-24-2003 10:19 AM
Linux RH8 -->Samba---->Win2K ? Micro Linux - Networking 7 11-07-2002 10:17 PM
Tip for those of you with Linux +Samba + Win2K trouble RedHat123 Linux - Networking 0 02-11-2002 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration