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!

Samba and my network places 1

Status
Not open for further replies.

robman70

Technical User
Aug 6, 2002
90
I have red hat 7.2 and windows 2000, i installed samba and am able to see my linux computer in my network places, does anyone know how i can make files shared in linux so that they will appear in my network places when i open it they're right there...

also the only way i can access my linux computer is if i stop ipchains, does anyone know what i have to do to configure this machine to allow LAN connections?

Thanks
 
I don't know if I understood what you need...

Do you want to let your windows 2000 see your linux files?

If this is the case you have to edit smb.conf in /etc/samba to share a folder

you can use
Code:
   man smb.conf 
[\code]
to see the specifications of smb.conf

If you don't want to put passwords
in [global]
put 
[code]
  security=SHARE
[\code]


and in your share
[code]
  guest only = Yes
[\code]




Example:

[code]

[global]
        workgroup = WORKGROUP
        server string = Samba Server
        security = SHARE
        encrypt passwords = Yes
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*a$
        unix password sync = Yes
        log file = /var/log/samba/%m.log
        max log size = 0
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        printing = lprng

[myshare]
        path = /home/myshare
        read only = No
        guest only = Yes
        guest ok = Yes
[\code]

Than you have to type
[code]
   service samba restart
[\code]
to activate your modifications



About ipchains, you should find out which ports does samba use, and open them in the ipchains configuration.

I hope I helped you, post again if you have any question.
 
thanks for the reply scienza and for pointing me to the samba forum franklin, i havent had a chance to try out your solution scienza, but it looks like its what im looking for, as far as my ipchains problem, its not just limited to samba, i cant use nfs unless my ipchains are stopped also, anyone have any idea why that is?

Thanks Again
 
That is because ipchains blocks all ports that it hasn't been told to leave open. You have to configure ipchains to open the ports needed for NFS, SAMBA and all other services you want to run. //Daniel
 
NetBIOS uses ports 137, 138, and 139. Open those ports up with iptables.

When you set up your Samba shares, don't forget to set the permissions on the directory themselves. If you want full access to the share, then...

chmod 777 /path_to_share -R

Be careful with the above command as it will recursively change (-R) the permissions on all files and subdirectories under the directory specified.

ChrisP
 
If you want an easier solution for samba you can use SWAT.

SWAT let's you configure samba shares with a browser (in graphical mode), and it is very "user friendly".

I'm sure SWAT is in redhat 7.3, but I don't know if it is in 7.2.

Boot with your installation CDs, go for add packets, and see if there is SWAT.
If you find it install it.

Then you have to look in /etc/xined.d

there should be a file called swat

edit it and put enable = yes

Now restart your PC , go in graphical mode, and open a browser:
URL: 127.0.0.1:901

It should prompt root login.

Now you are in.

This stuff is easier to do than explaining......

If there is something wrong or not so well explained, post again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top