|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: Feb 2001
Posts: 156
|
Samba
I've just recently set up a computer solely for linux and I'm having trouble. I installed redhat 7.3 with no problems and did a custom install and made it install all of the server stuff it had. I don't really know much about linux but I can't get samba to work. I've tried every thing I could find that tells me how to do it but when I go to my browser and type http://localhost:901 it just says that I can't connect to host localhost on port 901. Do any of you know any tutorials or anything telling me how to set up samba that don't skip steps or just briefly mention them? Also what about pages with good linux beginnger links in general. And yes I have done a search on this forum and many others.
Josh |
|
|
|
|
|
#2 |
|
Member (8 bit)
Join Date: Feb 2001
Posts: 156
|
One more thing..... when I look in my workgroup on my xp machine I can see the samba but can't connect.
Thanks, Josh |
|
|
|
|
|
#3 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Open up your smb.conf file, usually /etc/smb.conf. Set it up as
security = user encrypt passwords = yes Set up some sharing [homes] Homes Directories browseable = no writable = yes [Username] comment = Shared Files path = /home/username browseable = yes writable = yes valid users = username or usernames Make sure that the user is set up on your linux box. Then when you try to connect thru Network Neighborhood, enter the name and password. Once you can connect, go ahead and map a network drive. |
|
|
|
|
|
#4 |
|
Member (8 bit)
Join Date: Feb 2001
Posts: 156
|
thank you very much. I haven't tried it yet b/c I'm not at home but I will soon.
Josh Last edited by minutrice; 05-28-2002 at 06:57 PM. |
|
|
|
|
|
#5 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
Port 901 or what you are trying to do with http://localhost:901 is running Swat. Swat is the browser administration interface of Samba. You cannot connect to that port, because by default that port is not in existence (blocked) by your /etc/services file.
Open up /etc/services in your favorite text editor is there a line that looks something like: swat 901/tcp # Add swat service used via inetd if so is it commented out (with a # in front of it?) if it is commented out then remove the comment.. if not add this line to the bottom (even if you have the line as above I'd recommend you change it to the line you see below: swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat Now after saving the file open up the file /etc/inetd.conf check and if not present add the line: swat stream tcp nowait.400 root /usr/sbin/swat swat once that is saved .. do some security house-cleaning .. open up /etc/hosts.deny and check for the line and if not present, add this: ALL: ALL then open up your /etc/hosts.allow and add: swat: 127.0.0.1 192.168.0. restart your inetd by issuing the following command: killall -HUP inetd now try to access swat by doing a http://localhost.901 HTH |
|
|
|
|
|
#6 |
|
Member (8 bit)
Join Date: Feb 2001
Posts: 156
|
ok I tried the things below and I couldn't find the inetd.conf file and I couldn't do killall -HUP inetd. it said no service stopped or something of that nature. I searched using find / -name inetd.conf -print and I still didn't find it.
Now I can see 2 samba servers on my windows box. There is a samba server (big blue) and a samba server (localhost). I remember putting in the computer name big blue in some config file but I can't remember which one. When dble click big blue I get a login and I type in jbcissel and root and I get the error that \\bigblue is not accessible blah blah blah. If I double click the localhost I get the same error \\localhost is not accessible but I don't get a login screen. Thanks for the help again, Josh |
|
|
|
|
|
#7 |
|
Member (8 bit)
Join Date: Feb 2001
Posts: 156
|
In the \\localhost is not accessible message it says:
You were not connected because a duplicate name exists on the network. go to system in control panel to change the computer name and try again. In the \\Bigblue is not accessible message it says: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again. hmmm ok this is strange. I just tried the to connect to the Bigblue samba server from my laptop (another computer on the network) and it worked but I did not prompt me for a username like it does on my desktop. I could not connect to the localhost computer Maybe I should just uninstall samba and reinstall so all my config files will be default and start over doing what you guys have said to do? Josh |
|
|
|
|
|
#8 |
|
Member (8 bit)
Join Date: Feb 2001
Posts: 156
|
ok another update (only 5 minutes later) I rebooted my desktop and now I only have the Bigblue samba server and when I type in my login name and password it takes me onto the server. Now I will restart my laptop and see if it updates. Thanks alot guys. I LOVE LINUX! It seems pretty hard but I like the challenge. Now onto setting up apache and ssh.
Thanks, Josh |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|