[Samba] cant set up a no password login

Brian Wiese bwiese at cotse.com
Mon Mar 31 16:37:29 GMT 2003


I think you want to send this back to the list (cc'd), and not just
myself. So, is it working now... or not?  Yes samba must run as root first
to bind to those low ports 137-139 and such... there was a big
vulnerablitiy lately in samba, so make sure you have an up to date/patched
version.  As you did below, you can only run "smbclient -L //hostname" not
just that without the -L, if you want to browse a share with smbclient you
need "smbclient //hostname/sharename".  I prefer to just attempt to mount
the stuff though (smbmount, mount -t smbfs //path/share /mnt/point)

On Mon, 31 Mar 2003 16:58:21 +0200
julius <juliusjunghans at gmx.de> wrote:

|hi
|nothing worked until now :(
|just to get sure, yes i restart my samba daemons nmbd/smbd every time i 
|changed the conf...they run as root, is that okay ?
|
|ive made some test :
|
|/usr/local/samba/bin/smbclient //localhost/    added interface 
|ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
|Password: Domain=[LANSTRIKE] OS=[Unix] Server=[Samba 2.2.5]
|tree connect failed: NT_STATUS_BAD_NETWORK_NAME
|
|/usr/local/samba/bin/smbclient //DEATHB/   added interface 
|ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
|error connecting to 62.146.79.130:139 (Connection refused)
|Error connecting to 62.146.79.130 (Connection refused)
|Connection to DEATHB failed
|
|cant find me only with my ip or localhost ??
|
|heres my actual conf file :
|
|[global]
|netbios name = DEATHB
|server string = Samba %v on (%L)
|workgroup = LANSTRIKE
|encrypt passwords = yes
|security = share
|guest account = mp3
|null passwords = yes
|
|[homes]
|browseable = no
|
|[mp3]
|comment = lmh
|path = /mp3
|public = yes
|force user = mp3
|force group = mp3
|
|
|and heres the mp3 dir under / that i want to offer, or just use for 
|testing
|
|drwxr-xr-x    2 mp3      mp3          4096 Mar 31 16:38 mp3
|
|
|only the -L option from smbclient works...
|i can just press enter at the password prompt
|
|/usr/local/samba/bin/smbclient -L localhost
|added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
|Password: Domain=[LANSTRIKE] OS=[Unix] Server=[Samba 2.2.5]
|
|         Sharename      Type      Comment
|         ---------      ----      -------
|         mp3            Disk      lmh
|         IPC$           IPC       IPC Service (Samba 2.2.5 on 
|(localhost))
|         ADMIN$         Disk      IPC Service (Samba 2.2.5 on 
|(localhost))
|         deathb         Disk      Home directory of deathb
|
|         Server               Comment
|         ---------            -------
|         DEATHB               Samba 2.2.5 on (deathb)
|
|         Workgroup            Master
|         ---------            -------
|         LANSTRIKE            
|
|thx for your awnsers
|
|
|On 2003.03.31 06:39 Brian Wiese wrote:
|> By default, samba disallows null passwords.  man smb.conf
|> So you might want to set:
|> 
|> null passwords = yes
|> 
|> hth, peace
|> Brian
|> 
|> On Sun, 30 Mar 2003 09:42:41 -0500
|> Joel Hammer <Joel at HammersHome.com> wrote:
|> 
|> |You might make this work with just:
|> |
|> |guest account = nobody
|> |
|> |in [global]
|> |
|> |You could use other users like root (not very secure but it all
|> depends
|> |on your needs) or any regular user you have defined on this server.
|> |
|> |Joel
|> |
|> |On Sun, Mar 30, 2003 at 10:59:05AM +0200, julius wrote:
|> |> hi
|> |> have problems to get an samba server up that offers shares for all
|> |> without a password
|> |>
|> |> heres my smb.conf file located under /usr/local/samba/lib/smb.conf
|> |>
|> |> [global]
|> |> netbios name = DEATHB
|> |> server string = Samba pv on (pL)
|> |> workgroup = LANSTRIKE
|> |> encrypt passwords = yes
|> |> security = share
|> |>
|> |> [homes]
|> |> browseable = no
|> |>
|> |> [mp3]
|> |> comment = lmh
|> |> path = /var/glftpd/site/mp3/lame.r3mix/
|> |> browseable = yes
|> |> read only = yes
|> |> guest ok = yes
|> |>
|> |> has anybody an idea ?
|> |> --
|> |> To unsubscribe from this list go to the following URL and read the
|> |> instructions:  http://lists.samba.org/mailman/listinfo/samba
|> |--
|> |To unsubscribe from this list go to the following URL and read the
|> |instructions:  http://lists.samba.org/mailman/listinfo/samba
|> |
|> 
|> 
|>   Brian Wiese | bwiese at cotse.com | aim: unolinuxguru
|> ------------------------------------------------------
|>   GnuPG/PGP key 0xF3220030 | "FREEDOM!" - Braveheart
|> ------------------------------------------------------
|> This is not about Napster or DVDs. It's about your Freedom.
|>   I'll see your DMCA and raise you a First Amendment.
|>               http://www.anti-dmca.org
|> 
|> 
|


  Brian Wiese | bwiese at cotse.com | aim: unolinuxguru
------------------------------------------------------
  GnuPG/PGP key 0xF3220030 | "FREEDOM!" - Braveheart 
------------------------------------------------------  
This is not about Napster or DVDs. It's about your Freedom.
  I'll see your DMCA and raise you a First Amendment.
              http://www.anti-dmca.org


More information about the samba mailing list