Find the answer to your Linux question:
Results 1 to 6 of 6
hello friends I took a deb samba-server deb package and installed it.I gave /etc/init.d/samba start and smbd and nmbd demons are getting started.But i am not able to see by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    16

    samba installation


    hello friends

    I took a deb samba-server deb package and installed it.I gave /etc/init.d/samba start and smbd and nmbd demons are getting started.But i am not able to see by system data any how.May I get the currect installation procedure for samba.

    bye

  2. #2
    Linux User
    Join Date
    Jan 2006
    Posts
    251

  3. #3
    Just Joined!
    Join Date
    Apr 2006
    Posts
    16

    How to see other linux systems on my linux PC

    I have a debian system.I have installed samba-server deb package in my system and smbd and nmbd are started.I created an empty folder in / and added an user to it.But what is the way to see someothers system in my PC.I have edited [global] and a new folder called [backup] in smb.conf.

    Do I need to install samba in someothers system also to test if yes shall i install samba-client or samba-server.

    I want to view everything that is present in someothers system.how?

  4. #4
    Just Joined! tom-tjtech's Avatar
    Join Date
    Apr 2006
    Location
    Scotland
    Posts
    51

    Arrow Re:How to see other linux systems on my linux PC

    Another excellent and thorough guide is at Samba themselves..

    http://www.samba.org/samba/docs/man/...n/install.html

    Not directly solving your problem but this may be of help to some..
    goto thread here in Linux Forums-
    Samba updates
    where there is assistance in case you need to remove and update Samba.

    FIRST...
    For to create local shares on your linux system you may well need to install
    smb-server (well you need to do this in Mandriva anyhow).

    Go to the client (the machine that yo wish to browse) and ping back to the Samba server to see if its firewall is blocking you:

    [root]$ ping server-name [substitute your server name here]

    if it cant connect try configuring the firewalls etc.
    assuming you can ping Ok, run the smbclient program (which you should install if necessary)..

    [root]$ smbclient -V
    Version 3.0.20

    this will give you the installed version OK, next try to link..

    [root]$ smbclient //server-name/folder-name
    Password:******* (enter the password for folder-name)
    session setup failed: NT_STATUS_LOGON_FAILURE
    (this means wrong password?)
    trying again and if password accepted..
    Domain=[server-name] OS=[Unix] Server=[Samba 3.0.22]
    smb: \>ls
    (-- get folder contents listed OK --)

    Then your client GUI at least should now be able to view shares on the server.
    In your native File Manager (e.g. Nautilus) simply Connect to server
    (using Custom) in Loction use
    smb://server-name
    - any connection name (eg server) then connect

    An Authentication logon will appear..
    Use a valid username,
    DOMAIN use server-name
    and your password as before.

    You should see an icon in your Computer places that will connect to your server shares.

    NEXT
    Sit at the Samba server machine now and ping back to the client..
    [root]$ ping client-name

    to check again that there is no firewall blocking.
    The icons for client-name shares should be visible on the server
    Computer - Network places.

    You should use SWAT to configure your smb.conf -its better!

  5. #5
    Just Joined!
    Join Date
    Apr 2006
    Posts
    16

    sama configured

    hello friends

    First I would like to say thanks to Tom-tjtech and really got good feedfack from Tom.Now I am able to see my linux system through others PC.
    At present I am working on firewalls concept.I am able to block my system being viewed by others.So ssh is having firewall.Can u help me in teling that is it required to have different firewall system for ssh,telnet,ftp.

    awaiting for reply

    bye

  6. #6
    Just Joined! tom-tjtech's Avatar
    Join Date
    Apr 2006
    Location
    Scotland
    Posts
    51

    Arrow

    Quote Originally Posted by nirupama
    hello friends

    First I would like to say thanks to Tom-tjtech and really got good feedfack from Tom.Now I am able to see my linux system through others PC.
    At present I am working on firewalls concept.I am able to block my system being viewed by others.So ssh is having firewall.Can u help me in teling that is it required to have different firewall system for ssh,telnet,ftp.

    awaiting for reply

    bye
    Depends on what firewall configuration (application) you are using:
    Could be 'iptables' (Fedora4..) or 'drakefirewall' (Mandriva05..) or a mix of both.
    In the gui type firewall apps you can choose SSH Server/ DNS Sever etc seperately or SMB Sharing also.
    I prefer 'iptables' which are tricky to apply.
    For SMB you have to permit ports 137 to 139
    137:139/tcp 137:139/udp

    [user]$ su (select root)
    password: ******** (admin password)
    [root]$ iptables -V
    iptables v1.3.0

    so the iptables are at least installed, but are they running on this machine?

    [root]$ chkconfig --list iptables
    iptables 0-off 1-off 2-on 3-on 4-on 5-on 6-off

    so the firewall is at least started on boot (usually level 5).

    You can edit your iptables (eg vi or gedit text editors)..

    for Debian I think the rules file lives at..
    /var/lib/iptables

    I quote RH here..
    [root]$gedit /etc/sysconfig/iptables (assuming they are set up)
    (-- shows a list of ip-rules inforce --)
    the list should end with 'COMMIT'

    there should be two rules pertaining to above comment about SMB..
    -A -INPUT -p tcp -i eth0 --dport 137:139 -s 192.168.2.0/255.255.255.0 -j ACCEPT
    -A -INPUT -p udp -i eth0 --dport 137:139 -s 192.168.2.0/255.255.255.0 -j ACCEPT
    (assumes eth0 for network and 192.168.2.x for server group,
    add these just before the COMMIT)

    Now restart the iptables service..

    [root]$service iptables restart

    if all OK and new rules applied then Samba should work through the ports
    Any errors may be due to syntax while editing, I usually backup my iptables
    e.g. save as 'iptables_mybackup' as well as save in gedit.

    For the gui firewall apps just configure the necessary entries and restart the required service.

    Don't forget to check 'chkconfig --list' to see all is well on boot.

    Hope all this helps you with your firewalling!
    Although rules for the other protocols are similar, all you need is the proto name (ssh etc..) and the default ports -I think anyhow.
    e.g.
    -A INPUT -d xx.xx.xx.xx -p tcp --dport 22 -j ACCEPT

    will configure for your SSH secure-server ip (mine is 192.168.2.125).

    More info at:
    http://www.howtoforge.com/linux_iptables_sarge
    for Debian users.

    Ah for ZoneAlarm in Windows.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •