LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   connect from windows to linux using samba (https://www.linuxquestions.org/questions/linux-networking-3/connect-from-windows-to-linux-using-samba-234988/)

tonan 09-25-2004 12:44 AM

connect from windows to linux using samba
 
Respected friends,

i have used samba on my Red Hat 9.0, but on a differnet manchine running 8.0 i am unable to configure the samba.
The problems i am having are as :

1. In Red Hat 9.0 i was able to share folders using the samba server, which was available from the servers options. It had a neat GUI frontend but now i am unable to find it on the Red Hat 8.0. Please tell me how to find it or install it or configure it...

2. Well i was able to browse the windows network using the options "Netwrok Servers" from the Gnome. It showed me the workgroup and the systems attached to that workgroup. How to do that from the Red hat 8.0 now.

3. If i were trying to use telnet from the windows to connect to the linux box, what do i have to do, i am trying to start the telnet service from the linux 8.0 but the start, stop and the restart options are not highligted, even if i am trying to use the command

service telnet restart

it is displaying that so such service is installed, but i can see the telent listed in the services,what shall i have to do in such a case, plz explain in detail.. if possible..

kindly part with me as i am new to this field of networking more over i am new to RED HAT 8.0

thankyou very much for reading such a long request

with due respect
saurav

Kahless 09-25-2004 01:30 AM

Hello



first of all, ditch telenet if you can, and use SSH. It is the exact same interface and does the same thing, but it is MUCH more secure. Telenet sends your passwords over the network in plain text, ssh encrypts everything. Google Putty for a free client

fire up a terminal and do this:
service sshd start
chkconfig sshd on

Aside from that, ive never used telenet because of its suckey security, so i cant help much if you REALLY need it. (ssh is telenet with encryption)


moving on to samba. It would probally be more worth your time to learn to configure it via command line. You will find that doing it this way will work the same way on every distro, so you wont have to learn different tools for different distros. Also, i distrinctly remember getting pissed off becasue the gui tool RH had would reset the workgroup and other settings every time it was run, and I got really sick of telling it the same things over and over again.


use any text editor you are happy with to open
/etc/samba/smb.conf

spend about 10 minutes reading this file. It is very well commented, so you should be able to figure out what you need to do by just reading it and setting the options you need. if you need some more to read, go to your console and type "man smb.conf" You should get some more detailed instructions there.

make sure its running btw
service smbd start (or this might be service samba start, its been awhile)
chkconfig smbd on (or again, it might be chkconfig samba on, did i mention its been awhile?)


If you have directries that complain about permissions, keep in mind that unix permissions apply to samba directories. I useually create a /home/share direcotry, chmod it 0777, and use it as my sharing drive.


Dont be scared of that command line stuff, it will be your best friend when you get to know it. You can set up one config file that works, and jsut copy it to the next machine if you want the same config on 1000 machines. doesnt that beat point and click? :)


Hopefully that will get you started, if you need more detail tell us EXACTLY what you are trying to make samba do and im sure sombody can help you out. share or user sercurity, what directories do you want to share, ect.

tonan 10-04-2004 12:11 PM

Well thankyou khaless, i get the point and your right on it. The fact is that i am just a newbie now and that i have shifted from the gui environment to the linux environment. But your stuff was greatm, i have read the file "smb.conf" carefully and it was working, all i needed was to share my linux files such that the windows client and share my files, and also the printer... Thats it simple enough...

Well if you could please help me on this, i am having strange ping problems now. That is when i ping any of the system in the network the packets are dropped that is the first reply is there and then second is not there, but when i try to ping from the windows box, then it works fine the ping doesnt break , but when i am trying to ping from the linux box the ping is breaking up, what can be possible cause for it. Well i know that i can set my network card up to 100MB BASE T, 10MB BASE T and so on. So could you please tell me is this problem occuring due to the duplex_setup or what. Please if you could throw some light on it.


All times are GMT -5. The time now is 05:30 AM.