LinuxQuestions.org
Visit Jeremy's Blog.
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 12-08-2001, 08:51 AM   #1
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 807

Rep: Reputation: 40
Samba: Browsing Linux from Windows


After much trial and error (mainly error!) I've got my Linux box logging on to Windows shares, and can copy from and write to the Windows machine using Samba.

After even more trial and error, I can see my Linux box from various flavours of Windows: 95, 98, NT and Win2k - I can see the share directories I have set up on my Linux box, but whenever I try and browse the share directories that I can see on the Linux machine I keep getting asked for a user name and password.

I have set up usernames that correspond to the Windows machines and entered passwords which I can see in the combintaion of etc/passwd and etc/shadow

In smb.conf I have set up

smb passwd file = etc/passwd

I have tried security = user and share - both give the same result.

Anyone able to help a relative newbie?

Cheers,

Rob
 
Old 12-08-2001, 11:00 AM   #2
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Rep: Reputation: 30
Well i,ll give it a go.

The command I used was

smbclient -a [username]

i.e. smbclient -a recoiluk

but the account in question has got to be a proper user account and has to have allready been setup, as well as in windows

User account in Linux = recoiluk

Windows logon at boot = recoiluk

Then run the command above to set the samba password to the linux user acount password.

Hope that helps, did for me about 5mins ago.

RecoilUK
 
Old 12-08-2001, 12:52 PM   #3
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 807

Original Poster
Rep: Reputation: 40
Thanks for the reply Recoil, however I can't see how that can be right!

smbclient -a

isn't a valid option at all as far as I can tell.

smbclient -A is, but I can't get that to work anyway! I assume in your line:

smbclient -a recoiluk

you're setting up recoil as a valid account on the Linux box, for the Windows box to log onto? This just doesn't seem to work for my version of smbclient.
 
Old 12-08-2001, 01:06 PM   #4
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Rep: Reputation: 30
Hmmmmm

Have a look at the samba stuff here

http://www.mandrakeuser.org/docs/index.html

L8rs

RecoilUK
 
Old 12-09-2001, 09:22 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
setup the user account in the box


adduser unixuser

then password it

passwd unixuser

then add to samba

smbadduser smbuser:unixuser


now setup windows networking to login as smbuser when you start windows or you will be prompted for passwd. In win2k you will be prompted for username and passwd but in win98 it will only ask for passwd, so if your microsoft networking username does not match smbuser you can't get in.
 
Old 01-05-2002, 10:10 PM   #6
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Rep: Reputation: 15
samba

Are the Windows machines on a domain? If so, you may consider joining the linux box to the domain like so

smbpasswd -r domaincontroller -j domain


hope this helps,

graystarr
 
Old 01-06-2002, 06:41 AM   #7
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
And you need encrypt passwords=yes in your smb.conf, or you'll have to hack the reg of all your windozers.
 
  


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
Browsing Samba 3.0.2 from Windows SBS 2003 jsane Linux - Networking 0 08-26-2004 04:56 PM
SAMBA client stopped windows browsing from working - SuSE 9.1 mikemrh9 Linux - Networking 7 08-18-2004 01:38 PM
Browsing Samba share from another linux box FiveFlat Linux - Software 3 01-13-2004 02:10 AM
Browsing windows folders under linux e-regular Linux - Software 3 09-22-2003 12:32 AM
browsing windows partition through linux xavi Linux - Newbie 7 12-30-2002 12:17 PM

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

All times are GMT -5. The time now is 12:56 AM.

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