You are not logged in.
Pages: 1
Hi Guys,
Since yesterday, I've been having issues with Samba since doing updates. though I may have done updates previously and only rebooted yesterday.
I should mention this system is integrated with a Server 2008 R2 Active Directory. I've been messing with it all morning now and I'm getting nowhere so far. Now I have made some changes to it this morning, for one i fixed the idmap settings as the old settings for uid and gid were deprecated apparently
Here's my smb.conf
[Global]
netbios name = PC-WKSTN
workgroup = SERGEINC
realm = SERGEINC.ORG
server string = PC-WKSTN
security = ads
encrypt passwords = yes
idmap config SERGEINC: backend = ad
idmap config SERGEINC: schema_mode = rfc2307
idmap config SERGEINC: range = 5000-20000
winbind use default domain = Yes
winbind nss info = rfc2307
winbind enum users = Yes
winbind enum groups = Yes
winbind nested groups = Yes
winbind separator = +
winbind refresh tickets = yes
winbind gid = 5000-10000
template shell = /bin/bash
template homedir = /home/%U
preferred master = no
dns proxy = no
wins server = srv-ad.sergeinc.org
wins proxy = no
inherit acls = Yes
map acl inherit = Yes
acl group control = yes
load printers = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
interfaces = 10.66.1.11
hosts allow = 10.66.1.0/255.255.255.0
log file = /var/log/samba/%m.log
max log size = 5000
debug level = 3
[Shared]
path = /home/share
comment = shared
valid users = @NETWORK+"Domain Users"
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
public = yes
printable = no
locking = no
create mask = 777
nt acl support = yes
[Music]
path = /home/Music
comment = music
valid users = @NETWORK+"Domain Users"
read only = yes
available = yes
browseable = yes
writable = no
public = yes
printable = no
locking = no
[Movies]
path = /home/Movies
comment = movies
valid users = @NETWORK+"Domain Users"
read only = yes
available = yes
browseable = yes
writable = no
public = yes
printable = no
locking = no
[Stuff]
path = /home/stuff
comment = Stuff
valid users = @NETWORK+"Domain Users"
read only = yes
available = yes
browseable = yes
writable = no
guest ok = no
public = yes
printable = no
locking = no
now testing the configuration seems to work fine
[root@pc-wkstn user]# testparm -L /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Shared]"
Processing section "[Music]"
Processing section "[Movies]"
Processing section "[Stuff]"
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
the service status seems ok...
[root@pc-wkstn user]# systemctl status smbd
smbd.service - Samba SMB/CIFS server
Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
Active: active (running) since Tue 2013-04-02 13:01:39 EDT; 2s ago
Process: 11201 ExecStart=/usr/sbin/smbd -D (code=exited, status=0/SUCCESS)
Main PID: 11202 (smbd)
CGroup: name=systemd:/system/smbd.service
├─11202 /usr/sbin/smbd -D
└─11204 /usr/sbin/smbd -D
Apr 02 13:01:39 pc-wkstn systemd[1]: Starting Samba SMB/CIFS server...
Apr 02 13:01:39 pc-wkstn smbd[11201]: [2013/04/02 13:01:39.924581, 0] param/loadparm.c:7885(lp_set_enum_parm)
Apr 02 13:01:39 pc-wkstn systemd[1]: Started Samba SMB/CIFS server.
Apr 02 13:01:40 pc-wkstn smbd[11202]: [2013/04/02 13:01:40.047398, 0] printing/print_cups.c:528(cups_async_callback)
Apr 02 13:01:40 pc-wkstn smbd[11202]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
at this point, wbinfo lists users and groups, I can log into to the computer just fine. so winbind is working
but if I try to access a share from my windows pc next to me, it seems like smbd takes a dump
[root@pc-wkstn user]# systemctl status smbd
smbd.service - Samba SMB/CIFS server
Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
Active: active (running) since Tue 2013-04-02 13:01:39 EDT; 5min ago
Process: 11201 ExecStart=/usr/sbin/smbd -D (code=exited, status=0/SUCCESS)
Main PID: 11202 (smbd)
CGroup: name=systemd:/system/smbd.service
├─11202 /usr/sbin/smbd -D
├─11204 /usr/sbin/smbd -D
├─11267 /usr/sbin/smbd -D
└─11290 /usr/sbin/smbd -D
Apr 02 13:05:19 pc-wkstn smbd[11265]: #16 /usr/sbin/smbd(run_events_poll+0x353) [0x7fc802110ef3]
Apr 02 13:05:19 pc-wkstn smbd[11265]: #17 /usr/sbin/smbd(+0x42308a) [0x7fc80211108a]
Apr 02 13:05:19 pc-wkstn smbd[11265]: #18 /usr/sbin/smbd(_tevent_loop_once+0x90) [0x7fc802111bf0]
Apr 02 13:05:19 pc-wkstn smbd[11265]: #19 /usr/sbin/smbd(main+0xeba) [0x7fc801de0b1a]
Apr 02 13:05:19 pc-wkstn smbd[11265]: #20 /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x7fc7fee7fa15]
Apr 02 13:05:19 pc-wkstn smbd[11265]: #21 /usr/sbin/smbd(+0xf2f25) [0x7fc801de0f25]
Apr 02 13:05:19 pc-wkstn smbd[11265]: [2013/04/02 13:05:19.497620, 0] lib/fault.c:372(dump_core)
Apr 02 13:05:19 pc-wkstn smbd[11265]: dumping core in /var/log/samba/cores/smbd
Apr 02 13:05:19 pc-wkstn smbd[11265]:
Apr 02 13:05:19 pc-wkstn systemd-coredump[11266]: Process 11265 (smbd) dumped core.
I've also pulled my log.smbd if it helps
[root@pc-wkstn user]# cat /var/log/samba/log.smbd
[2013/04/02 12:43:20, 0] smbd/server.c:1026(main)
smbd version 3.6.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/04/02 12:43:20, 2] lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2013/04/02 12:43:20, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2013/04/02 12:50:37, 0] smbd/server.c:1026(main)
smbd version 3.6.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/04/02 12:50:37, 2] lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2013/04/02 12:50:37, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2013/04/02 12:56:06, 0] smbd/server.c:1026(main)
smbd version 3.6.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/04/02 12:56:06, 2] lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2013/04/02 12:56:06, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2013/04/02 12:58:15, 0] smbd/server.c:1026(main)
smbd version 3.6.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/04/02 12:58:15, 2] lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2013/04/02 12:58:15, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2013/04/02 13:00:01, 0] smbd/server.c:1026(main)
smbd version 3.6.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/04/02 13:00:01, 0] param/loadparm.c:7885(lp_set_enum_parm)
WARNING: Ignoring invalid value '' for parameter 'printing'
[2013/04/02 13:00:01, 2] lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2013/04/02 13:00:01, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2013/04/02 13:01:39, 0] smbd/server.c:1026(main)
smbd version 3.6.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
[2013/04/02 13:01:39, 0] param/loadparm.c:7885(lp_set_enum_parm)
WARNING: Ignoring invalid value '' for parameter 'printing'
[2013/04/02 13:01:39, 2] lib/tallocmsg.c:124(register_msg_pool_usage)
Registered MSG_REQ_POOL_USAGE
[2013/04/02 13:01:39, 2] lib/dmallocmsg.c:78(register_dmalloc_msgs)
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[root@pc-wkstn user]# cat /etc/samba/smb.conf
this is a signature
Offline
Are you using the testing repo? Because samba 4 was released on testing and might need some kind of migration from 3.x.
Offline
I am not using the testing repo, though I did try it out earlier and ended up having the same issues and have since rolled back, which took some work having to clear out the database information in /var/lib/samba
[root@urmom-pc urmom]# pacman -Q samba
samba 3.6.13-1
now I'm running KDE on this system, I've noticed that I can browse the local samba shares without any issue from this system, but on my windows system with the same user account, I can't access them. I can map them with net use, but still can't access the folders.
Another thing I've noticed, is I can't seem to mount the shares on my solaris server from this linux system anymore either. I have a shell script to mount my 6 shared folders on the solaris server, and normally those folders are rsynched from the linux machine at 4 am, I had to disable the cron job since I can't mount them. That just gives me an mount error 13 permission denied.
The time on this linux system is in sync which was my first thought to check. I'm at a loss here. And now I think that I may have made things worse updating the smb.conf because I'm pretty sure my uid's are all messed up. If I chown a folder to assign the "domain users" group, it shows up as BUILTIN+administrators.....and I've noticed that some users aren't showing up wbinfo
but my other arch linux server is fine using a similar config to what I had on this system, so I'm not sure what's going on
this is a signature
Offline
ok.....
I reverted my smb.conf, stopped the daemons, cleared the caches in /var/lib/samba again
rebooted the machine, now when i chown domain users, it's setting enterprise admins.......something is fubar here....
this is a signature
Offline
hah
turns out i need to brush up on my skills.......i ran net cache flush and that seems to have sorted out my uid's being mixed up, the downside was I had to go through all my folders and fix permissions, but that's all working again
the only problem i ahve left, is that I still can't access my shares on my linux machine from my windows systems....I should try from one of my Mac's I think
this is a signature
Offline
Hi,
I had a similar problem, maybe this applies to you too. The reason I got the core dump was that I didn't have the entry for my IP address (I use static IP) in the /etc/hosts file.
Hope this helps.
Offline
Pages: 1