Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

samba being screwy

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

samba being screwy

  • Quote

Post by FcukThisGame » Wed Feb 23, 2011 4:22 pm

I've configured samba according to this guide. It seems that it's rejecting any connection attempts:

Code: Select all

gentoo mydomain # /etc/init.d/samba restart
 * Service samba stopping
 * Service samba stopped
 * Service samba starting
 * Service samba started
gentoo mydomain # smbclient -L localhost
Enter root's password:
Domain=[SAMBA] OS=[Unix] Server=[Samba 3.4.9]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED
smb.conf:

Code: Select all

[global]
   workgroup = samba
   server string = Samba Server
   security = share
   hosts allow = 10.1.1.
   load printers = yes
   printcap name = cups
   printing = cups
   guest account = pcguest
   log file = /var/log/samba/log.%m
   max log size = 50
   interfaces = lo net.eth2
   bind interfaces only = yes

[public]
   comment = File share
   browseable = yes
   path = /var/ftp
   public = yes
   valid users = chris miguel
   create mode = 0766
   guest ok = yes
   writable = yes
   printable = no
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
chiefbag
Guru
Guru
User avatar
Posts: 542
Joined: Fri Oct 01, 2010 11:08 am
Location: The Kingdom

  • Quote

Post by chiefbag » Wed Feb 23, 2011 4:38 pm

Have a look at this link, it looks like you may have a conflict with your "auth =" setting

http://realtechtalk.com/Samba_SMB_Error ... 0-articles
Top
bobspencer123
Guru
Guru
User avatar
Posts: 544
Joined: Mon Dec 19, 2005 1:50 am

  • Quote

Post by bobspencer123 » Wed Feb 23, 2011 4:42 pm

try adding this to global

Code: Select all

client lanman auth = yes
Increasingly becoming a 2 channel audio nut!
Top
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

  • Quote

Post by FcukThisGame » Sat Feb 26, 2011 10:54 pm

Still unable to connect from Win7.

Code: Select all

gentoo ~ # smbclient -L localhost
Enter root's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.9]

        Sharename       Type      Comment
        ---------       ----      -------
        public          Disk      File share
        IPC$            IPC       IPC Service (Samba Server)

Code: Select all

[global]
   client lanman auth = yes
   workgroup = WORKGROUP
   server string = Samba Server
   security = share
   hosts allow = 10.1.1.
   guest account = pcguest
   log file = /var/log/samba/log.%m
   max log size = 50
   interfaces = lo net.eth2
   bind interfaces only = yes
   local master = no
[public]
   comment = File share
   browseable = yes
   path = /var/ftp
   public = yes
   valid users = chris miguel
   create mode = 0766
   guest ok = yes
   writable = yes
   printable = no
If I remove lo from the interfaces line, samba will fail to start. I don't know if I actually need to remove it, though.
When I try to connect to \\10.1.1.2\public, Win7 just says it cannot access it.

EDIT: I'm willing to use user-level security rather than share-level. I only changed because I was having issues with that too...
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

  • Quote

Post by FcukThisGame » Sat Feb 26, 2011 10:59 pm

Okay, I'm an idiot. It should have been eth2 instead of net.eth2 on the interfaces line of my smb.conf. Apparently it was never listening on eth2 because of it!

Still can't connect though. Now it asks for a user and password (it shouldn't need to?!?). I try WORKGROUP\chris with the password I set for that user, and it fails to authenticate.
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic