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.
|
 |
01-16-2003, 12:30 PM
|
#1
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Rep:
|
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
|
|
|
01-16-2003, 12:51 PM
|
#2
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
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.
|
|
|
01-16-2003, 01:01 PM
|
#3
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717
Rep:
|
smbpasswd
|
|
|
01-16-2003, 01:13 PM
|
#4
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717
Rep:
|
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
|
|
|
01-16-2003, 02:07 PM
|
#5
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
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
|
|
|
01-16-2003, 02:44 PM
|
#6
|
Member
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326
Original Poster
Rep:
|
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.

|
|
|
02-09-2003, 12:15 AM
|
#7
|
LQ Newbie
Registered: Feb 2003
Posts: 22
Rep:
|
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 
|
|
|
02-09-2003, 09:45 AM
|
#8
|
Member
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444
Rep:
|
How did you add the user to the Linux machine? Give me the exact command.
|
|
|
02-10-2003, 12:16 PM
|
#9
|
Member
Registered: Jan 2003
Location: Indiana
Distribution: Centos, RedHat Enterprise, Slackware
Posts: 524
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 04:41 PM.
|
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
|
|