If I look back many many open source years ago, one of the first application servers I started working with was Samba on SUSE 9. Back in the days you printed out documentation and learned the config options by heart.
So when I recently had to configure a new Samba server, the definition of a Samba share still remains in my head:
[sharename]
path = /path/to/dir
valid user = user1, user2
writeable = yes
Where the users were previously added and enabled using smbpasswd (for local Samba users).
H O W E V E R... As it turns out this is no longer valid.
On a new Samba 4.22 running on Debian 13, I created the shared (as above), successfully mounted the Samba share on a client and wanted to copy data, but got a permission denied error. Although the mount with the correct credentials worked.
A closer look at the smbd logs showed:
root@samba:/var/log/samba# cat log.smbclient
[2026/12/03 15:26:26.764560, 0] lib/param/loadparm.c:749(lpcfg_map_parameter)
Unknown parameter encountered: "valid user"
[2026/12/03 15:26:26.764653, 0] lib/param/loadparm.c:1937(lpcfg_do_service_parameter)
Ignoring unknown parameter "valid user"
[2026/12/03 15:26:26.764717, 0] lib/param/loadparm.c:749(lpcfg_map_parameter)
Unknown parameter encountered: "valid user"
[...]
The log's message is pretty straightforward: "valid user" is an unknown parameter? What? Since when?
Testparm actually confirmed that my "hardcoded brain-knowledge" seems outdated:
root@samba:~# testparm
Load smb config files from /etc/samba/smb.conf
Unknown parameter encountered: "valid user"
Ignoring unknown parameter "valid user"
Unknown parameter encountered: "valid user"
Ignoring unknown parameter "valid user"
Loaded services file OK.
[...]
A new look at the Samba documentation of the current version confirmed it: There is no "valid user" option anymore!
Instead I stumbled on the write list option, which I didn't know before. Similar to valid user this is a list of users that are allowed to write into the share.
This is a list of users that are given read-write access to a service. If the connecting user is in this list then they will be given write access, no matter what the read only option is set to. The list can include group names using the @group syntax.
With this new information at hand, I updated the share configs:
[sharename]
path = /path/to/dir
write list = user1, user2
After a smbd restart (systemctl restart smbd), the Samba client was able to mount and write into the share.
Always good to stay updated.
No comments yet.
AI AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Influx Internet Java KVM Kibana Kodi Kubernetes LVM LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Observability Office OpenSearch PHP Perl Personal PostgreSQL PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Znuny Zoneminder