Click to See Complete Forum and Search --> : Samba Configuration
Timothy Lyons
11-22-2002, 11:39 PM
Alright, I have in in home network, a few Windows machines and a Linux box runnint Red Hat 8.0. I am having difficulty configuring the smb.conf to properly do what I'm seeking to.
This is what I have:
Windows 2000 machine called tplyons
Red Hat 8.0 machine called tplinux
I am trying to set up tplinux on the workgroup aptly called workgroup. To this point I am stumped, my computer can read tplinux, but cannot access it, error says: \\tplinux is not accessible. The network path could not be found. What am I doing wrong?
The smb.conf file is the original except for the feeble attempt to get tplinux on workgroup. Is there a step I've missed to allow my machine to label itself tplinux to the outside world?
Once I get this taken care of, I would like to create a method of password authentication where the user tplyons, on the machine tplyons can access tplinux without having to insert a password, but all other users on all other machines are required to. Is there a way to do this?
adneg
11-24-2002, 03:08 PM
Hi
I have just had the same problem and cured it.
This problem appears to be with the firewall and your linux box trying to use iptables as well as ipchains.
At the prompt do
service iptables stop
service ipchains stop
rmmod ipchains
Now try and connect, hope this works for you.
Timothy Lyons
11-24-2002, 03:26 PM
Alright, there's a start, but now it says \\tplinux is not accessible. The account is not authorized to log in from this station.
Now what?
Timothy Lyons
11-24-2002, 05:54 PM
Alright, got a bit past that... switched to server password authentication, pointing to my Win2K machine, and the account is created locally on tplinux. What is going on here? Is there a file I need to create listing users and passwords that can access my machine?
mpooley
11-24-2002, 07:31 PM
yes !
Have a look at your imhosts file.
Mine looks like this,
127.0.0.1, LOCALHOST
192.168.0.1, Linux
192.168.0.2, WINXP
also you must set a user name and password up in smbpasswd
if i remember correctly in the shell type smbpasswd -U your win username
and it will ask for the password twice.
i think this might help
Mike
Timothy Lyons
11-24-2002, 11:45 PM
Alright, I've done a little bit of playing around, changed security to server and pointed it back to tplinux for as the server. I then created a database called passdb and inserted tplyons as a user into a table with my password, and now I can see my shares, but I still cannot access them.
I have three shares apache, homes, and printers. I can access printers with no problem, but I cannot access the other two. For homes and apache, I am prompted for a username and password, but on tplinux, where do I store the usernames and passwords for such a share?
teeitup
11-25-2002, 12:02 AM
You don't say what kind of access you're after.
Read only
Read/write
Try playing with :
public = yes
writable = yes
create mask = 775
directory mask = 775
user = username
O'Reilly makes this available...
Using Samba by O'Reilly (http://www.oreilly.com/catalog/samba/chapter/book/index.html)
Good Luck,
If you want to get to shares on Linux box from Windoze boxes.....this is what worked for me....had to create samba user and generate password in smbpasswd file....if you need exact syntax to perform this....post reply and I will see if I can post reply for you.
Timothy Lyons
11-26-2002, 06:13 PM
It seems I have solved my problems. After being able to read only, with no permissions to write or edit, I realized that Samba was not my problem, but the folder's accessibilty was. After changing the share mask to 0777 for the folder, I have succeeded!
Thanks for the help everyone!