I was having the same issue, I found the solution in another question.

You need to add a force user = parameter. (pick the user carefully, any files created will be owned by this user.)

[Shared]
  comment = Allow all users to read/write
  path = /home/andrius/Shared
  public = yes
  guest ok = yes
  writable = yes
  force user = andrius
Answer from fafrd on Stack Exchange
🌐
NethServer Community
community.nethserver.org › support
Smbd: change_to_user_internal: chdir_current_service() failed! - Support - NethServer Community
February 16, 2020 - NethServer Version: 7.7.1908 Module: File Server Hello, Everything seems to work in file server, but still the log is flooded with the following error messages: change_to_user_internal: chdir_current_service() failed! smbd [2020/02/12 13:06:23.863870, 0] ../source3/smbd/uid.c:417(change_to_user_internal) smbd I get these error messages only if there is a Windows 10 Pro computer running that is joined the domain.
🌐
GitHub
github.com › openmediavault › openmediavault › issues › 753
change_to_user_internal: chdir_current_service() failed! · Issue #753 · openmediavault/openmediavault
Description of issue/question When I try to go inside the shared folder I got "permission denied". I have tested the shared folder on OSX, WIndows 10 and Ubuntu 20.04. The logs after tryi...
Author   openmediavault
Discussions

Samba share acces problem - change_to_user_internal: chdir_current_service() failed!
Hello. I just try to configure a share, where only specific user has access to. FreeNAS 11.3 When I try to access to the Samba share from Windows, I get access error. In FreeNAS log: FreeNASPrimary smbd[88283]: change_to_user_internal: chdir_current_service() failed! The shared dataset is... More on truenas.com
🌐 truenas.com
0
June 5, 2021
SMB shares - acces denied when connecting from Win10
Hello! First of all, i would like to apologize for possibly dumb or even duplicated post (not sure tho) ;) I'm kinda' new on the block - recently installed and configured FreeNAS in my home office enviroment. All was really awesome, untill the last update. After upgrade to FreeNAS-11.2-U2 my... More on truenas.com
🌐 truenas.com
35
February 22, 2019
centos - Error restarting SAMBA, requires force - Unix & Linux Stack Exchange
Under CentOS 7, I am running a SAMBA server. Recently, likely after some updates, has become a bit less stable. The log shows periodically: change_to_user_internal: chdir_current_service() failed! ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
User can't access SMB share, samba chdir failure with access denied
Hi, I'm trying to fix samba access issue, I have installed most recent OMV release 5.3.9-1 and joined it to a AD domain. As far as I can tell OMV configured correctly, I can enumerate AD groups and users. Folder in question has permission set like… More on forum.openmediavault.org
🌐 forum.openmediavault.org
1
April 6, 2020
🌐
TrueNAS Community
truenas.com › forums › archives › freenas (legacy software releases) › freenas help & support › sharing
Samba share acces problem - change_to_user_internal: chdir_current_service() failed! | TrueNAS Community
June 5, 2021 - Hello. I just try to configure a share, where only specific user has access to. FreeNAS 11.3 When I try to access to the Samba share from Windows, I get access error. In FreeNAS log: FreeNASPrimary smbd[88283]: change_to_user_internal: chdir_current_service() failed! The shared dataset is...
🌐
Ask Ubuntu
askubuntu.com › questions › 1148897 › cant-access-some-samba-share
permissions - Can't access some samba share - Ask Ubuntu
June 5, 2019 - [2019/06/05 21:00:05.935232, 0] ../../source3/smbd/uid.c:412(change_to_user_internal) change_to_user_internal: chdir_current_service() failed!
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
Samba not working / Networking, Server, and Protection / Arch Linux Forums
December 15, 2019 - [2019/12/15 16:21:22.663178, 0] ../../source3/smbd/process.c:1623(switch_message) Error: Could not change to user. Removing deferred open, mid=9. [2019/12/15 16:21:22.663370, 0] ../../source3/smbd/uid.c:448(change_to_user_internal) change_to_user_internal: chdir_current_service() failed!
🌐
TrueNAS Community
truenas.com › forums › archives › freenas (legacy software releases) › freenas help & support › sharing
SMB shares - acces denied when connecting from Win10 | TrueNAS Community
February 22, 2019 - [2019/02/22 11:22:24.112223, 0] ../source3/smbd/uid.c:386(change_to_user_internal) change_to_user_internal: chdir_current_service() failed! ... Just a casual home office NAS :) FreeNAS-11.2-U2 Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz 2x8GB Crucial Ballistix 3x2TB WD RED 120GB Integral SSD ... I have the same problem, but I am using Linux Ubuntu. When I run this: sudo mount -t cifs -o username=****,password=*******,uid=rob,gid=rob //192.168.0.22/WinShare/Media/Music /mnt/WinShare/Media/Music It returns this: mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g.
🌐
Stack Exchange
unix.stackexchange.com › questions › 614522 › error-restarting-samba-requires-force
centos - Error restarting SAMBA, requires force - Unix & Linux Stack Exchange
The service eventually restarts, but seems to have to go through an internal process of elevation of kill until it gets there. Is there anything that explains the initial chdir routines failing, and whether this is related to the slow access times and/or difficulty killing/restarting SAMBA? Note I am running OpenVPN to access these resources remotely, but the access failures are both local and remote. ... You may need to add force user = [user] to your samba.conf if the error is related to uid.c:448(change_to_user_internal) .
Find elsewhere
🌐
openmediavault
forum.openmediavault.org › index.php
User can't access SMB share, samba chdir failure with access denied - CIFS/SMB - openmediavault
April 6, 2020 - This is file system issue, If I grant r+x permission to others on the folder, then share works as expected, and there is no chdir failure in the log. it looks like samba incorrectly impersonate user?
🌐
Unraid
forums.unraid.net › home › unraid os support › general support › apple time machine issues (smbd: chdir_current_service: vfs_chdir(/mnt/user/timemachine2) failed: permission denied)
Apple Time Machine issues (smbd: chdir_current_service: vfs_ChDir(/mnt/user/TimeMachine2) failed: Permission denied) - General Support - Unraid
December 31, 2023 - Just wanted to make a forum post about this, as it's been an issue for me for over a year (since 2022-01-23 seemingly), and every time I looked into it, following all the relevant advice/posts here for TimeMachine issues, I could never get it solved. Today I was looking at my Unraid logs when try...
🌐
Stack Exchange
unix.stackexchange.com › questions › 705762 › systemd-service-working-on-one-server-but-not-on-the-other
linux - Systemd service working on one server but not on the other - Unix & Linux Stack Exchange
Explore Stack Internal ... [Unit] Description=Run Forever [Service] User=root WorkingDirectory=/home/elbrus/perp ExecStart=/bin/bash -c 'python3 perpetual.py' Restart=always [Install] WantedBy=multi-user.target · For some reason I keep getting the following error: perpetual.service: Changing to the requested working directory failed: No such file or directory systemd[41116]: perpetual.service: Failed at step CHDIR spawning /bin/bash: No such file or directory systemd[1]: perpetual.service: Main process exited, code=exited, status=200/CHDIR systemd[1]: perpetual.service: Failed with result 'exit-code'.
🌐
GitHub
github.com › systemd › systemd › issues › 10568
exec: chdir to WorkingDirectory fails on NFS with root squash · Issue #10568 · systemd/systemd
October 29, 2018 - Oct 29 18:36:42 host systemd[1]: Failed to start Test service to debug chdir. After helpful discussion with @grawity in #systemd the assumption is, that the move of apply_working_directory in 50b3dfb to the earliest possible position is too early, since in the context of network filesystems root might not be allowed to change the directory. If I were to hazard a guess moving apply_working_directory from its current position to somewhere after this block that calls ensure_user, might be a solution.
Author   systemd
🌐
Stack Exchange
unix.stackexchange.com › questions › 718885 › systemd-run-fossil-as-non-root-user
systemd run fossil as non-root user - Unix & Linux Stack Exchange
fossil.service - Fossil Service Loaded: loaded (/etc/systemd/system/fossil.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2022-09-26 17:59:10 CEST; 1s ago Process: 2015 ExecStart=/usr/bin/fossil server --localhost --port 9000 --repolist /opt/fossil/repos (code=exited, status=200/CHDIR) Main PID: 2015 (code=exited, status=200/CHDIR) ... .... systemd[12954]: fossil.service: Changing to the requested working directory failed: Permission denied Sep 27 systemd[12954]: fossil.service: Failed at step CHDIR spawning /usr/bin/fossil: Permission denied Sep 27 systemd[1]: fossil.service: Main process exited, code=exited, status=200/CHDIR Sep 27 systemd[1]: fossil.service: Failed with result 'exit-code'.