LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-16-2003, 12:30 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Quick Samba question


Hello everyone.

Well, I am learning to use samba here. I am very new to it, but I am learning as much as I can.
I just have a couple of quick questions.

We are setting up a test Samba box at my work. What we are trying to do is test to see if the Samba box can be visible by Windows boxes (Win2K) through Network neighborhood. We then would like one test user to be able to access a certain share.

So far:
The Samba box is visible through network neighborhood.
However, I am unable to log on to the samba box through the Windows box.

So I need help in fixing the issue about logging onto the samba box and downloading some files.

What information can I post into this case to help resolve this issue I am having?

Thanks everyone.

T
 
Old 01-16-2003, 12:51 PM   #2
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
I am also guessing I have the users setup incorrectly some how.

I'm not sure though.

On the Linux box, there are 2 users: root and the testuser
The testuser also exists on the Win2K box.

I feel like im missing something very small, but I cant put a pin on it.

Any thoughts?

T.
 
Old 01-16-2003, 01:01 PM   #3
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
smbpasswd
 
Old 01-16-2003, 01:13 PM   #4
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
Sry for the last one, long day.

You have to set up your users with smbpasswd and a unix password. If you have a user already setup in linux thats good, you just need to set them up with smbpasswd.

I dont know the commands right off hand. Go to google.com/linux and run a search for smbpasswd howto.

http://www.linuxorbit.com/howto/sambahowto.php3
 
Old 01-16-2003, 02:07 PM   #5
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Grrr.

For some reason, I can see the samba box from my Win2K box, but I cant log onto it.

What am I missing? I followed the directions to the "T" from the link you provided.

Any suggestions?

Can I post any info in this thread to help resolve this?

Thanks guys.

Tarballed
 
Old 01-16-2003, 02:44 PM   #6
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
here is some output from testparm:

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775

[public]
comment = Public stuff
path = /ourstorage2
write list = @staff
read only = No
guest ok = Ok

As I said earlier, I am trying to get this test samba box up and running correctly. I am using a user on both boxes, testuser with password as the password. The user has been setup on both the Windows and Linux/Samba box.

I can see the box in Network neighborhood, but when I click on it, it keeps asking for a username and password and it never works.


Any ideas?

I'm confused and frustrated.
 
Old 02-09-2003, 12:15 AM   #7
dibakar
LQ Newbie
 
Registered: Feb 2003
Posts: 22

Rep: Reputation: 15
Please also add the passwords of the users from both Windows and Linux Box into the "smbpassword" file on your linux box. It would be like this if you have two users having passwords "xxxx" and "YYYY" ..then... use the following commands to accomplish this

# Locate "smbpassword"
it will show you where the "smbpassword" is on your system

Go to "smbpassword" file by CD

Then Vi "smbpassword"
Press "Insert"
Add the passwords as "xxxx", "YYYY"
Press Esc button on your keyboard
Press "Shift :" on your Keyborad
type wq and then press enter
Restart the "Smb.conf" file from the command line
and then try to access the samba shares from your Windows system.....

Please let me know if this helps.....

Dibs
 
Old 02-09-2003, 09:45 AM   #8
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
How did you add the user to the Linux machine? Give me the exact command.
 
Old 02-10-2003, 12:16 PM   #9
ghight
Member
 
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524

Rep: Reputation: 30
As a test chmod the shared directory to 777 then try again. If that works you need to set the Linux File Mode Permissions to whatever you want them to be.

What is the error messege you get when you try to logon?
 
  


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
Another quick samba question rayber2000 Linux - Networking 6 03-11-2005 09:07 AM
A quick SAMBA question Tap-Out Linux - Networking 1 03-18-2004 12:00 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Quick Samba Question cmf5150 Fedora 3 01-24-2004 04:06 PM
Quick Samba permissions question jamespetts Linux - Networking 2 10-07-2002 05:25 AM

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

All times are GMT -5. The time now is 04:39 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