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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba with Win95,98,ME,NT,2000,XP Not Working 1

Status
Not open for further replies.

morganpugh

Programmer
Oct 16, 2002
5
US
Hi,

Myself and a co-worker are trying to setup a Samba server as a transfer drive however we are having problems. We can get Windows 95 to see the Samba server, it can access any files on it and can write files to the server however this is not so with any other OS. If I set 'encrypt passwords = yes' then windows 95 does not work but the others get a username and password prompt. We setup accounts on the samba server (RedHat 8) but that is not working (it does not accept them and just keeps re-asking). We want to have anonymous access to the server (i.e. no username and password will be needed, and nothing will be prompted for). There will just be read, write, execute access for all os to the server. How can I do this? We are running on a NetWare domain so we cannot have samba as the PDC.

Thanks in advance for all the help offered.
 
look for the plain password keys that are in the docs directories, and set 'encrypt passwords = no' ...
 
Hi,

I tried this and it did not help. I just get a message saying that i am not allowed to access the machine. When i put encrypt passwords = yes i get a prompt for a username and password with the title "incorrect password or invalid user". I can't think of anything that could be wrong. Here is a copy of my smb.conf file...

[global]
netbios name = locsys03
workgroup = mps
encrypt passwords = yes
null passwords = yes
domain master = da-vinci

[public]
browseable = yes
path = /home/public
valid users = +smbguest
witeable = yes
create mask = 0660
directory mask = 0770

the server is called locsys03
i am on a domain called mps
da-vinci is the PDC
i have created an user account on the samba server called "smbguest" and a group called "smbguest", the user is a member of the group. The /home/public folder does exist.

i can use everything fine in Windows 95 with this setup (but without the encrypted passwords). What could be wrong?
 
Hi,

I tried this and it did not help. I just get a message saying that i am not allowed to access the machine. When i put encrypt passwords = yes i get a prompt for a username and password with the title "incorrect password or invalid user". I can't think of anything that could be wrong. Here is a copy of my smb.conf file...

[global]
netbios name = locsys03
workgroup = mps
encrypt passwords = yes
null passwords = yes
domain master = da-vinci

[public]
browseable = yes
path = /home/public
valid users = +smbguest
writeable = yes
create mask = 0660
directory mask = 0770

the server is called locsys03
i am on a domain called mps
da-vinci is the PDC
i have created an user account on the samba server called "smbguest" and a group called "smbguest", the user is a member of the group. The /home/public folder does exist.

i can use everything fine in Windows 95 with this setup (but without the encrypted passwords). What could be wrong?
 
Read the following from a website. Hope this may be of some help to you.

regards
MP

Passwordless Access to All Services for Specific Users / Machines
The option hosts equiv = allows you to specify a file (usually called '/etc/hosts.equiv') which contains the profile and NetBIOS names of users allowed to use all services without having to provide a password. Quote 'man smb.conf':

I recommend that the hosts equiv option be only used if you really know what you are doing, or perhaps on a home network where you trust your spouse and kids. And only if you really trust them :).
See man hosts.equiv for the structure of the 'hosts.equiv' file.

 
Hi MP,

I tried what you said however nothing worked :(

I did not have a hosts.equiv file and 'man hosts.equiv' did not show, i just got a 'no man entry' displayed.

This is really annoying, as someone else posted, Samba needs to be easier.

Does anyone know what i can do?
Could someone just give me an example of an smb.conf and any other files i might need so that anyone on my network can access the samba share, anonymouslly and have full read, write, execute access?

My domain is: MPS
PDC is: da-vinci
Netware server is: Picasso

Anything else is probably mentioned above.

Thanks in advance, if i dont get it working by the end of the day then i am going to scrap the idea.
 
Try adding to the global section (If you want to . This does not allow for much security)
guest account = pcguest

Then ensure the pcguest user is created with no password.

Then to each of your shares in the SHARES DEFINITION add
guest ok = yes

Stop then restart samba. THis should work. If not you can try also setting security = shares (Instead of users). This however kills security by quit a bit. Let us know if this works. James Collins
Field Service Engineer
A+, MCP

email: butchrecon@skyenet.net

Please let us (Tek-tips members) know if the solutions we provide are helpful to you. Not only do they help you but they may help others.
 
Hi, there are a couple of issues:


1: if you do not want to login add
security = share

2: for user authentication
security = user
The samba user database is not the passwd file. First the user needs to have an account on the server and second needs a samba password.
smbpasswd -a username:usergroup

Try those. First try 1 then try 2.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top