d0b33
Honorary Master
I just installed the 'samba' app, used that to add my folders I want to share then using the gnome network manager added a wired DHCP connection with DHCP client ID name same as my computer name and bam it works.
South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
<snip>
# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0
<snip>
Log files are usually stored in /var/log/. samba has more than one log file, so it creates a subdirectory called samba (/var/log/samba/)Umm, okay where are the log files? Hopefully in the /etc/samba dir or something I guess.
ls -al /var/log/samba
tail -f /var/log/samba/thefilename.log
Check as root:The /etc/samba/private/ dir does not exist on my machine AFAIK.
sudo ls -al /etc/samba/
Stick with what you have. I doubt it would make any difference if you re-install since the password files, user accounts and permissions will stay behind and deleting those is probably not a good idea.I'm thinking maybe I should clean out my samba install and try start afresh. DO you think I should do that or just continue to try fix what I already have?
If I do remove it what's the best way? (I'd rather not have to re-install xubuntu, as I've already done at least 100mb of updates.)
Yeah, it is a little confusing at first. I'm surprised you haven't given up yet... stick it out, eventually (some of) it will make senseI consider myself to have at least moderate knowledge of PCs, but this linux stuff is confusing the hell out me.I'm totally flying blind here.
sudo ls -al /etc/samba/
user - "suser"
log.mesa
user@D800:/var/log/samba$ tail log.mesa
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2008/11/27 21:50:08, 0] smbd/process.c:srv_send_smb(74)
Error writing 4 bytes to client. -1. (Transport endpoint is not connected)
[2008/11/28 01:15:44, 0] lib/util_sock.c:write_data(1059)
[2008/11/28 01:15:44, 0] lib/util_sock.c:get_peer_addr_internal(1596)
getpeername failed. Error was Transport endpoint is not connected
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2008/11/28 01:15:44, 0] smbd/process.c:srv_send_smb(74)
Error writing 4 bytes to client. -1. (Transport endpoint is not connected)
log.nmbd
user@D800:/var/log/samba$ tail log.nmbd
reload_interfaces: No subnets to listen to. Waiting..
[2008/11/28 01:18:09, 0] nmbd/nmbd.c:terminate(68)
Got SIGTERM: going down...
[2008/11/28 01:18:13, 0] nmbd/nmbd.c:main(849)
nmbd version 3.2.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/11/28 01:18:13, 1] param/params.c:Parameter(377)
params.c:Parameter() - Ignoring badly formed line in configuration file: express#
[2008/11/28 01:18:13, 1] param/params.c:Parameter(377)
params.c:Parameter() - Ignoring badly formed line in configuration file: express#
log.smbd
user@D800:/var/log/samba$ tail log.smbd
params.c:Parameter() - Ignoring badly formed line in configuration file: express#
[2008/11/27 21:50:08, 0] lib/util_sock.c:get_peer_addr_internal(1596)
getpeername failed. Error was Transport endpoint is not connected
[2008/11/28 01:18:13, 0] smbd/server.c:main(1213)
smbd version 3.2.3 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/11/28 01:18:13, 1] param/params.c:Parameter(377)
params.c:Parameter() - Ignoring badly formed line in configuration file: express#
[2008/11/28 01:18:13, 1] param/params.c:Parameter(377)
params.c:Parameter() - Ignoring badly formed line in configuration file: express#
log.winbindd-idmap
user@D800:/var/log/samba$ tail log.winbindd-idmap
[2008/11/28 01:18:14, 1] winbindd/idmap_tdb.c:idmap_tdb_alloc_init(371)
idmap uid range missing or invalid
idmap will be unable to map foreign SIDs
[2008/11/28 01:18:14, 0] winbindd/idmap.c:idmap_alloc_init(831)
ERROR: Initialization failed for alloc backend, deferred!
[2008/11/28 01:18:14, 1] winbindd/idmap_tdb.c:idmap_tdb_alloc_init(371)
idmap uid range missing or invalid
idmap will be unable to map foreign SIDs
[2008/11/28 01:18:14, 0] winbindd/idmap.c:idmap_alloc_init(831)
ERROR: Initialization failed for alloc backend, deferred!
x.x.x.x mesa
try adding the following in your smb.conf file's global section.
smb ports = 139
then restart smb.
net use x: \\yourserver\yourshare thepassword /USER:yourusername
net use x: /DELETE
net view \\yourserver
auto lo
iface lo inet loopback
+
#Generated by NetworkManager
nameserver 192.168.192.1
net use x: \\yourserver\yourshare thepassword /USER:yourusername.
System error 1326 has occurred.
Logon failure: unknown user name or bad password.
net use x: \\yourserver\yourshare thepassword /USER:root
Bump and double post.
Still haven't made any progress on this, can anyone else see what's happening here?
sudo testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[data01]"
Processing section "[data02]"
Processing section "[dump]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
smb ports = 139
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[data01]
path = /data01
guest ok = Yes
[data02]
path = /data02
guest ok = Yes
[dump]
path = /data02/dump
read only = No
guest ok = Yes