Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with Samba, seeing password box in windows

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I don't know much about samba, this is my first attempt at setting it up on a linux box. I've got the smb.conf file set up with some user directories. I followed some tutorials on the set-up, but everytime I try to access the share on my windows system thru the network-neighborhood client, I get a password box showing a path and a password box.
I tried using the password for all accounts on the box, including the passwords fro the user's shares, but to no avail. Can someone give me a nice simple setup for shares? Something about the password protection and implementation between platforms, maybe?


Thanks in advance!

Rninja
 
By default Samba password is not the same as unix password.
You need to configure the samba password.
Or you can get samba to read passwords from windows or unix.
I like to use the unix side because it means that password validation is not dependant on there being an NT domain controller available on the network.
To do it the other way round you have to have a Primary Domain Controller (PDC)
But remember that windows sends passwords in an encrypted form unless you tell it not to. There is a registry hack around this using EnablePlainTextPassword, which you need to apply on every client that you intend to access the samba shares from.
Well that's how it used to be anyway, maybe samba has a way round this now ? Ian

"IF" is not a word it's a way of life
 
if you want to desable the password verification just change this line like this :
user = share

and change WORKGROUPS = ?????? to your LAN group name

for me it's all i can view my LAN
for more sophisticated configuration ...!?
 
Hee sre some base instructions I think you could use to get Samba going. If you need help ask.

LINUX
Samba Share Setup
(For Windows Clients)


1.) Ensure that Samba is installed and running. (Usually installed with LINUX)
2.) Create a folder that you want to share. (There is always a /public folder installed with LINUX for share use.
3.) Add a user named pcguest. Type at prompt “adduser pcguest”. Then type “passwd pcguest”. For password hit enter.
4.) Vi /etc/samba/smb.conf. Under global edit the following to match.
workgroup = (yourworkgroup)
browseable = yes
force user = root
force create mode = 777
server string = Samba Server
guest account = pcguest
hosts allow = (first 3 octets of the IP scheme you want to access the server)
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file = /var/log/samba/%m.log
max log size = 50
security = share
socket options = TCP_NODELAY
local master = no
domain master = no
preferred master = no
interfaces = (LINUX server IP address)/24


Under Share Definitions Edit the following.
[public]
path = /(the folder you want to share)
public = yes
writable = yes
create mask = 0777
browseable = yes


[tmp]
path = /tmp
public = yes
writable = yes
create mask = 0777
browseable = yes

5.) Once the editing is completed hit esc and shift zz to save.
6.) Now do a ps –ef | grep mbd and kill all processes for nmbd and smbd.
7.) Type nmbd –D –n (the name you want to show up in windows)
8.) Type smbd –D
9.) Go to a Windows PC and look in Network Neighborhood for the share you just created. If it is there you are near completion, if not ensure that the settings in the smb.conf are there and correct. Also grep the mbd (or nmbd and smbd ) and ensure they are running.
10.) On the LINUX machine vi the /etc/rc and add the following lines to the end of it (This will set the nmbd and smbd clients to start automatically on bootup) /usr/sbin/nmbd –D –n (the name you want to show up in windows) and /usr/sbin/smbd –D
11.) Restart.

James Collins
Computer Hardware Engineer
A+, MCP

email: butchrecon@skyenet.net
 
Hi
Just look into this link...

How To.. Win95/Win98/WinNT Enable PlainTextPassword
faq54-801

This could help you.. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
I suggest setting setting the Security to "Security = share" unless you are on a Network with users who are not allowed to view the contents. Setting security to share you should not need passwords. The instructions I listed above have worked for me nearly a year now. James Collins
Computer Hardware Engineer
A+, MCP

email: butchrecon@skyenet.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top