Jump to content

Samba error: change_to_user_internal

Hi LTT forum.

 

I have a problem with Samba on CentOS 8 that I have been unable to figure out over the past few days. I can see on Google that i'm not the only one with the problem, but haven't yet found a solution there work for me.

 

I created a directory like many others with the same access and Samba setup, but for some reason I can't seem to get rid of a specific error, that make the content in that shared folder unavailable.

 

Directory and Samba information

  • drwxrwx---. 2 myuser mygroup 6 Mar 11 16:37 myfolder
  • chcon -R -t samba_share_t /mnt/myshares (myfolder is in-side that directory)
  • semanage fcontext -a -t samba_share_t "/mnt/myshares(/.*)?"
[MyFolder]
        comment = My folder
        path = /mnt/myshares/myfolder
        read only = no
        guest ok = no
        create mask = 0770
        force create mode = 0770
        directory mask = 2770
        force directory mode = 2770
        force user = myuser
        force group = mygroup
        browseable = yes
        valid users = myuser @mygroup

Error log

  • change_to_user_internal: chdir_current_service() failed!
  • [2020/03/14 00:07:20.800120, 0] ../../source3/smbd/uid.c:412(change_to_user_internal)

Crossing finger for a solution.

Link to comment
Share on other sites

Link to post
Share on other sites

I have a basic tutorial on setting up SAMBA on Debian. I don't know about RHEL. Did you add your user UNIX user to the SAMBA user config?

Link to comment
Share on other sites

Link to post
Share on other sites

20 hours ago, Windows7ge said:

I have a basic tutorial on setting up SAMBA on Debian. I don't know about RHEL. Did you add your user UNIX user to the SAMBA user config?

Yes it is.

 

I also have other shares to the same user and thay work without any problems, but for some reason when i try adding a new folder and share it, I keep getting that error only when trying to access that share. Renaming the share and creating an other directory did not work either.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×