We take a look at inXile's cRPG successor Wasteland 2
Wasteland 2 Reviewed
AusGamers takes a deep and hard look at just what Bungie has to offer in their newest sci-fi world, and just where our Destiny may lay.
Destiny Reviewed
AusGamers had the chance to sit down and chat with lead programmer and local Australian Ian Hern on all things Kraden’s Crypt.
Interview with Ian Hern on Kraden's Crypt
We take a look at all the local talent Australia has to offer for the gaming scene
Indie Friday: A Look at Australian Gaming
Things that make me rage: Samba
Raven
Melbourne, Victoria
6350 posts
Oh yeah, so I mentioned Samba in the other thread.

Let's try something different: Here's the current config file. Nothing special.

All I want the damn thing to do is have the IPC share browsable, for me to be able to connect to my own shares, etc... but can't even do basic stuff. The below config is after hours of tweaking and attempting to fix it.

In its current state, it just keeps asking for U/P, and won't accept any of them. It's almost like it doesn't know how to look up accounts from its own configuration and wants to go off to some other domain for users etc.

trowe@hpnas:~$ cat /etc/samba/smb.conf

# Samba config file created using SWAT
# from UNKNOWN (192.168.0.188)
# Date: 2011/12/19 21:10:36

[global]
client lanman auth = no
workgroup = tjsr
netbios name = hpnas
server string = %h server (Samba, Ubuntu)
encrypt passwords = yes
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
smb passwd file = /etc/samba/smbpasswd
clien ntlmv2 auth = yes
lanman auth = yes
ntlm auth = yes
null passwords = yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
valid users = trowe
admin users = trowe
read list = trowe
write list = trowe
guest ok = yes
hosts allow = 192.168.0.0/255.255.255.0
username map = /etc/samba/smbusers
security = share
guest account = nobody
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
acl compatibility = Auto
browseable = true
name resolve order = lmhosts wins bcast host

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[trowe]
path = /home/trowe
read only = No

[completed]
comment = Completed Torrents
path = /data/torrents/completed
read only = No
create mask = 0644
10:50pm 05/01/12 Permalink
system
Internet
--
10:50pm 05/01/12 Permalink
HerbalLizard
Brisbane, Queensland
5316 posts
[global]
# Setting password change timeout
passwd chat timeout = 10

# General
netbios name = Servername
workgroup = workgroup name
server string = servername networkname

# Logging
syslog = 0
log level = 1
log file = /var/log/samba/%L-%m
max log size = 0
utmp = Yes

# Network
bind interfaces only = yes
interfaces = lo eth1
smb ports = 139

# Printing
printcap name = /etc/printcap
load printers = Yes

# Security settings
security = user
guest account = guest
#restrict anonymous = 2

# WINS
wins support = No
wins server =

# PDC
domain logons = Yes
add machine script = /usr/sbin/samba-add-machine "%u"
logon drive = U:
logon script = logon.cmd
logon path =
logon home = \\%L\%U

# Other
preferred master = Yes
domain master = Yes
unix password sync = Yes
passwd program = /usr/sbin/userpasswd %u
passwd chat = *password:* %n\n *password:* %n\n *successfully.*
username map = /etc/samba/smbusers
wide links = No

# LDAP
include = /etc/samba/smb.ldap.conf

# Winbind
include = /etc/samba/smb.winbind.conf

#============================ Share Definitions ==============================

include = /etc/samba/flexshare.conf

[homes]
comment = Home Directories
path = /home/%U
valid users = %D\%S
read only = No
browseable = No
available = Yes

[printers]
comment = Print Spool
path = /var/spool/samba
printing = cups
use client driver = No
printable = Yes
read only = No
browseable = No
available = No

[print$]
comment = Printer Drivers
path = /var/samba/drivers
read only = No
browseable = No
available = No

[netlogon]
comment = Network Logon Service
path = /var/samba/netlogon
read only = No
locking = No
browseable = No
available = No

[profiles]
comment = Profile Share
path = /var/samba/profiles
read only = No
profile acls = Yes
browseable = No
available = No
force group = domain_users
force directory mode = 02775
force directory security mode = 02775

ignore the flexshare stuff thats specific to my distro

Your user listed in /etc/samba/smbusers ??


last edited by HerbalLizard at 23:04:33 05/Jan/12
10:59pm 05/01/12 Permalink
Pinky
Melbourne, Victoria
12029 posts
Yeah, was going to say, did you add user as a samba user?
11:08pm 05/01/12 Permalink
Raven
Melbourne, Victoria
6351 posts
Yes:
trowe = trowe
11:11pm 05/01/12 Permalink
Skitza
Brisbane, Queensland
9681 posts
I had this issue with Ubuntu and Windows a while ago.. pissed me off. I fixed it and then it broke again after an update but it was a documented bug with Ubuntu but I cannot remember what it was sorry. In the end I f***ed it off and went back to Windows haha - CAUSE THAT ACTUALLY WORKS!! lolz!!!1
11:15pm 05/01/12 Permalink
HerbalLizard
Brisbane, Queensland
5317 posts
Auth is normally handled by pam
What does

cat /etc/pam.d/samba

Say

Also I have found this guide to be pretty useful in the past since its well commented

http://www.flatmtn.com/article/setting-samba#Samba-2
11:20pm 05/01/12 Permalink
DeadlyDav0
Brisbane, Queensland
1332 posts
Thought this was gunna be that dance style.
01:14am 06/01/12 Permalink
FraktuRe
Gold Coast, Queensland
3936 posts
I had a Things that make me rage: Simba parody thread all ready to post with some ascii in place of that code, but the qgl forum ruined it and I cbf fixing it :/
01:23am 06/01/12 Permalink
stinky
USA
3675 posts
what version? the newer versions have issues if ipv6 is enabled and it can't reverse lookup your IP... disabling ipv6 for the OS fixes this.
01:01pm 06/01/12 Permalink
Raven
Melbourne, Victoria
6352 posts
trowe@hpnas:~$ /usr/sbin/smbd -V
Version 3.5.8
01:55pm 06/01/12 Permalink
redhat
Sydney, New South Wales
741 posts
Is it something like read permissions for world on the directory you're accessing as guest?
01:58pm 06/01/12 Permalink
Raven
Melbourne, Victoria
6353 posts
I'm trying to not access it as guest.

Also, I hadn't thought to look in the logs:


[2011/12/25 23:02:18.641428, 0] smbd/password.c:857(authorise_login)
authorise_login: rejected invalid user nobody
[2011/12/25 23:02:18.641521, 1] smbd/service.c:678(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
02:05pm 06/01/12 Permalink
teq
Brisbane, Queensland
12250 posts
just for a laugh, do "smbpasswd -a nobody"
set a pass of pass123
and then adduser nobody
set a pass of pass456
then try and login with both combos, check which one works if any

if the first one works, it's using it's own db for auth
if the second one works, it's using pamd/local passwd files for auth

if neither work, its borked
02:36pm 06/01/12 Permalink
Raven
Melbourne, Victoria
6354 posts
Ta, will report back results when I get home :)
02:37pm 06/01/12 Permalink
Raven
Melbourne, Victoria
6355 posts
No go setting the password of and creating 'nobody'. Have disabled ipv6 through grub and will try that in a moment :(
06:08pm 06/01/12 Permalink
system
Internet
--
06:08pm 06/01/12 Permalink
AusGamers Forums
Show: per page
1
This thread is archived and cannot be replied to.
Close