[Pkg-samba-maint] Bug#998355: samba: Access Time of File is set to the far future: 30828-09-14 04:48:05.477580700 +0200

Georg Gast georg at schorsch-tech.de
Tue Nov 2 20:13:10 GMT 2021


Package: samba
Version: 2:4.13.5+dfsg-2
Severity: normal
X-Debbugs-Cc: georg at schorsch-tech.de

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
I upgraded from buster to bullseye. With buster i used a .NET program on windows called "Mein Geld 365". The database is on the NAS running samba. With buster, the accesstime was normal adjusted but with bullseye, the accesstime is set far to the future.

This shows the outout of stat when the error is there:
stat Georg_2016.mgz
 Datei: Georg_2016.mgz
 Größe: 20905984        Blöcke: 40808      EA Block: 4096   reguläre Datei
 Gerät: 2bh/43d Inode: 452839      Verknüpfungen: 1
Zugriff: (0660/-rw-rw----)  Uid: ( 1000/   georg)   Gid: ( 1000/   georg)
Zugriff: 30828-09-14 04:48:05.477580700 +0200
Modifiziert: 2021-11-02 17:18:23.581530067 +0100
Geändert: 2021-11-02 17:18:23.577239537 +0100
Geburt: 2021-11-02 17:16:31.709703003 +0100

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
I reverted my machine to buster (snapshot on btrfs) and the application worked correctly. With the wrong accesstime the application complains about
"Invalid Win32-FileTime". After the rollback to bullseye the application complained again about the wront "Win32-FileTime".
Even a touch on the nas to the file corrects the accesstime. 

   * What outcome did you expect instead?
The accesstime of the file should be correct.

*** End of the template - remove these template lines ***

I wanted to pin the old samba version to see, if its samba or the kernel, but the pin did not work as it conflicts on libldb2/libldb1.

-- Package-specific info:
* /etc/samba/smb.conf present, and attached
* /var/lib/samba/dhcp.conf present, and attached

-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/2 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages samba depends on:
ii  adduser              3.118
ii  dpkg                 1.20.9
ii  init-system-helpers  1.60
ii  libbsd0              0.11.3-1
ii  libc6                2.31-13+deb11u2
ii  libgnutls30          3.7.1-5
ii  libldb2              2:2.2.0-3.1
ii  libpam-modules       1.4.0-9+deb11u1
ii  libpam-runtime       1.4.0-9+deb11u1
ii  libpopt0             1.18-2
ii  libpython3.9         3.9.2-1
ii  libtalloc2           2.3.1-2+b1
ii  libtasn1-6           4.16.0-2
ii  libtdb1              1.4.3-1+b1
ii  libtevent0           0.10.2-1
ii  libwbclient0         2:4.13.5+dfsg-2
ii  lsb-base             11.1.0
ii  procps               2:3.3.17-5
ii  python3              3.9.2-3
ii  python3-dnspython    2.0.0-1
ii  python3-samba        2:4.13.5+dfsg-2
ii  samba-common         2:4.13.5+dfsg-2
ii  samba-common-bin     2:4.13.5+dfsg-2
ii  samba-libs           2:4.13.5+dfsg-2
ii  tdb-tools            1.4.3-1+b1

Versions of packages samba recommends:
ii  attr                1:2.4.48-6
ii  logrotate           3.18.0-2
ii  python3-markdown    3.3.4-1
ii  samba-dsdb-modules  2:4.13.5+dfsg-2
ii  samba-vfs-modules   2:4.13.5+dfsg-2

Versions of packages samba suggests:
pn  bind9          <none>
pn  bind9utils     <none>
pn  ctdb           <none>
pn  ldb-tools      <none>
pn  ntp | chrony   <none>
pn  smbldap-tools  <none>
pn  ufw            <none>
pn  winbind        <none>

-- no debconf information
-------------- next part --------------
[global]
#workgroup = dahoam2
#min protocol = NT1
#max protocol = smb2
netbios name = NAS-DSM
ntlm auth = yes

#vfs objects = full_audit
#full_audit:prefix = %u|%I|%m|%S
#full_audit:success = mkdir rename unlink rmdir pwrite
#full_audit:failure = none
#full_audit:facility = local7
#full_audit:priority = NOTICE

# this is important to join the workgroup
domain master = no

# allow to execute from the share
acl allow execute always = True

server role = standalone server
realm = nas-dsm

#name resolve order = wins lmhosts bcast
name resolve order = wins bcast

# %v prints the version of Samba being used.
server string = Samba Server %v
load printers = no

## # This line enables the log file and limits its size to less than 50kb.
log file = /var/log/samba/log.%m
log level = 3
max log size = 50

## # We are going to set some options for our interfaces...
socket options = TCP_NODELAY

## # This is a good idea, what we are doing is binding the
# samba server to our local network.
# For example, if eth0 is the local network interface:
interfaces = eth0
# bind interfaces only = yes

## # Specifies which IP address range is allowed to access Samba
hosts allow = 127.0.0.1 192.168.160.0/24 192.168.177.0/24
hosts deny = 0.0.0.0/0

## # Other options for this are USER, DOMAIN, ADS, and SERVER
# The default is user
security = user
map to guest = Bad Password

## # No passwords will be used so a guest account should be enabled:
guest ok = yes

## # Create a new share that can read from or written to anywhere.
# This is kind of like a temp public share; anyone can do what
# they want here:

guest account = nobody

store dos attributes = no

[public]
comment = Tausch
browseable = yes
public = yes
create mode = 0766
guest ok = yes
guest only = yes
path = /srv/samba/tausch
writeable = Yes

[georgfs]
guest ok = no
comment = foldersync for georg
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/samba/foldersync/georg
writeable = Yes
valid users = georg
force user = georg

[georg-office]
guest ok = no
comment = office for georg
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/samba/office/georg
writeable = Yes
valid users = georg
force user = georg

[georg-home]
guest ok = no
comment = homedir for georg
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/samba/home/georg
writeable = Yes
valid users = georg
force user = georg


[georg-images]
guest ok = no
comment = images for georg
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/samba/images/georg
writeable = Yes
valid users = georg
force user = georg


[georg-develop]
guest ok = no
comment = development georg
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/samba/develop/georg
writeable = Yes
valid users = georg
force user = georg 

#[georg-misc]
#guest ok = no 
#comment = misc files for georg
#browseable = yes
#create mode = 0660
#directory mode = 0770
#path = /srv/samba/misc/georg
#writeable = Yes
#valid users = georg
#force user = georg

[georg-media]
guest ok = no
comment = media files for georg
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/media/
writeable = Yes
valid users = georg
force user = georg
force group = media

[backup]
guest ok = no
comment = Backups for georg
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/backup
writeable = Yes
valid users = georg
force user = georg
force group = media

[xiaofs]
guest ok = no
comment = foldersync for xiao
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/samba/foldersync/xiao
writeable = Yes
valid users = xiao,georg
force user = xiao

[xiao-home]
guest ok = no
comment = homedir for xiao
browseable = yes
create mode = 0660
directory mode = 0770
path = /srv/samba/home/xiao
writeable = Yes
valid users = xiao,georg
force user = xiao



More information about the Pkg-samba-maint mailing list