Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba being screwy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Wed Feb 23, 2011 4:22 pm    Post subject: samba being screwy Reply with quote

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

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:

[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
Back to top
View user's profile Send private message
chiefbag
Guru
Guru


Joined: 01 Oct 2010
Posts: 542
Location: The Kingdom

PostPosted: Wed Feb 23, 2011 4:38 pm    Post subject: Reply with quote

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

http://realtechtalk.com/Samba_SMB_Error_Server_not_using_user_level_security_and_no_password_supplied_tree_connect_failed_NT_STATUS_WRONG_PASSWORD-110-articles
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Wed Feb 23, 2011 4:42 pm    Post subject: Reply with quote

try adding this to global
Code:

client lanman auth = yes

_________________
Increasingly becoming a 2 channel audio nut!
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Sat Feb 26, 2011 10:54 pm    Post subject: Reply with quote

Still unable to connect from Win7.
Code:

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:
[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
Back to top
View user's profile Send private message
FcukThisGame
l33t
l33t


Joined: 20 Apr 2005
Posts: 776
Location: /lost+found

PostPosted: Sat Feb 26, 2011 10:59 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum