Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-08-2001, 09:51 AM
|
#1
|
Member
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 814
Rep:
|
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
|
|
|
12-08-2001, 12:00 PM
|
#2
|
Member
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270
Rep:
|
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
|
|
|
12-08-2001, 01:52 PM
|
#3
|
Member
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mageia
Posts: 814
Original Poster
Rep:
|
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.
|
|
|
12-08-2001, 02:06 PM
|
#4
|
Member
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270
Rep:
|
Hmmmmm
Have a look at the samba stuff here
http://www.mandrakeuser.org/docs/index.html
L8rs
RecoilUK
|
|
|
12-09-2001, 10:22 AM
|
#5
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
01-05-2002, 11:10 PM
|
#6
|
Member
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85
Rep:
|
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
|
|
|
01-06-2002, 07:41 AM
|
#7
|
Member
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496
Rep:
|
And you need encrypt passwords=yes in your smb.conf, or you'll have to hack the reg of all your windozers.
|
|
|
All times are GMT -5. The time now is 06:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|