Results 1 to 2 of 2

Thread: how do u install samba?

  1. #1
    carlw is offline Junior Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default how do u install samba?

    i use xubuntui tried to intall it w/ synaptic but it said "failed" and an error came up.i am very inexpirienced w/ linux so be gentile with your answer

  2. #2
    LawnGnome is offline Junior Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default how do u install samba?

    Is pretty straightforward.http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.htmlhttp://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html#tdbpermfiledeschttp://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html#tdbtempfiledescThere are sample configuration files in the examples subdirectory in the source code distribution tarball package. It is suggested you read them carefully so you can see how the options go together in practice. See the man page for all the options. It might be worthwhile to start out with the smb.conf.default configuration file and adapt it to your needs. It contains plenty of comments.As is normal, RTFM is applied here.root# smbd -b | grep smb.confSamba is a grep.http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.htmlhttp://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/problems.htmland then:Procedure 38.1. Diagnosing Your Samba Server 1. In the directory in which you store your smb.conf file, run the command testparm smb.conf. If it reports any errors, then your smb.conf configuration file is faulty. Note Your smb.conf file may be located in /etc/samba or in /usr/local/samba/lib. 2. Run the command ping BIGSERVER from the PC and ping ACLIENT from the UNIX box. If you do not get a valid response, then your TCP/IP software is not correctly installed. You will need to start a “DOS prompt” window on the PC to run ping. If you get a message saying “host not found” or a similar message, then your DNS software or /etc/hosts file is not correctly set up. If using DNS, check that the /etc/resolv.conf has correct, current, entries in it. It is possible to run Samba without DNS entries for the server and client, but it is assumed you do have correct entries for the remainder of these tests. Another reason why ping might fail is if your host is running firewall software. You will need to relax the rules to let in the workstation in question, perhaps by allowing access from another subnet (on Linux this is done via the appropriate firewall maintenance commands ipchains or iptables). Note Modern Linux distributions install ipchains/iptables by default. This is a common problem that is often overlooked. If you wish to check what firewall rules may be present in a system under test, simply run iptables -L -v, or if ipchains-based firewall rules are in use, ipchains -L -v. Here is a sample listing from a system that has an external Ethernet interface (eth1) on which Samba is not active and an internal (private network) interface (eth0) on which Samba is active: frodo:~ # iptables -L -v Chain INPUT (policy DROP 98496 packets, 12M bytes) pkts bytes target prot opt in out source destination 187K 109M ACCEPT all -- lo any anywhere anywhere 892K 125M ACCEPT all -- eth0 any anywhere anywhere 1399K 1380M ACCEPT all -- eth1 any anywhere anywhere \ state RELATED,ESTABLISHED Chain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 978K 1177M ACCEPT all -- eth1 eth0 anywhere anywhere \ state RELATED,ESTABLISHED 658K 40M ACCEPT all -- eth0 eth1 anywhere anywhere 0 0 LOG all -- any any anywhere anywhere \ LOG level warning Chain OUTPUT (policy ACCEPT 2875K packets, 1508M bytes) pkts bytes target prot opt in out source destination Chain reject_func (0 references) pkts bytes target prot opt in out source destination 3. Run the command smbclient -L BIGSERVER on the UNIX box. You should get back a list of available shares. If you get an error message containing the string “bad password”, then you probably have either an incorrect hosts allow, hosts deny, or valid users line in your smb.conf, or your guest account is not valid. Check what your guest account is using testparm and temporarily remove any hosts allow, hosts deny, valid users, or invalid users lines. If you get a message connection refused response, then the smbd server may not be running. If you installed it in inetd.conf, then you probably edited that file incorrectly. If you installed it as a daemon, then check that it is running and check that the netbios-ssn port is in a LISTEN state using netstat -a. Note Some UNIX/Linux systems use xinetd in place of inetd. Check your system documentation for the location of the control files for your particular system implementation of the network super daemon. If you get a message saying session request failed, the server refused the connection. If it says “Your server software is being unfriendly,” then it's probably because you have invalid command line parameters to smbd, or a similar fatal problem with the initial startup of smbd. Also check your config file (smb.conf) for syntax errors with testparm and that the various directories where Samba keeps its log and lock files exist. There are a number of reasons for which smbd may refuse or decline a session request. The most common of these involve one or more of the smb.conf file entries as shown in the next example. http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.htmlI like the way Samba looks, I like the way RedHat works.

Similar Threads

  1. increase a Samba User on Ubuntu
    By Brownchris in forum Linux/Free BSD
    Replies: 0
    Last Post: 04-23-2010, 01:26 PM
  2. Create a Samba User on Ubuntu
    By Braylon Lynn in forum Linux/Free BSD
    Replies: 0
    Last Post: 02-27-2010, 07:51 AM
  3. How to install Samba
    By kenner66 in forum Linux/Free BSD
    Replies: 1
    Last Post: 11-16-2009, 12:59 PM
  4. Linux samba
    By andrea55 in forum Linux/Free BSD
    Replies: 0
    Last Post: 10-26-2009, 01:12 PM
  5. Samba
    By techproblem in forum General Software Terms
    Replies: 0
    Last Post: 04-07-2008, 10:16 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48