[SOLVED] After domain change Could not chdir to home directory
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After domain change Could not chdir to home directory
I am getting this error "Could not chdir to home directory /home/user: No such file or directory" after unjoin domain using sssd and rejoining using samba-winbind
I am getting this error "Could not chdir to home directory /home/user: No such file or directory" after unjoin domain using sssd and rejoining using samba-winbind
Ok; so based on what you posted, what do you think we can tell you? You don't tell us anything about your system, how its configured, version/distro of Linux, what you did (and are TRYING to do), etc.
Short answer: rejoin the domain
Longer answer: provide actual details, read the "Question Guidelines" link in my posting signature, and we can try to help you.
log file = /var/log/samba/log.%m
idmap config * : rangesize = 1000000
load printers = no
;idmap config * : range = 1000000-19999999
passdb backend = tdbsam
netbios name = DEVDEENV01
cups options = raw
server string = VXSP TDH DB SERVER 2
idmap config * : backend = autorid
encrypt passwords = yes
os level = 20
max log size = 50
SSH output:
login as: deen\user1
Using keyboard-interactive authentication.
Password:
Last login: Tue Apr 27 12:42:54 2021 from 10.80.200.20
Could not chdir to home directory /home/user1: No such file or directory
-bash-4.2$
Sorry for not sharing expected details. I am using CentOS Linux release 7.8.2003 (Core)
smb.conf:
Code:
[global]
workgroup = DEV
realm = DEV.DEEN.LOCAL
security = ads
idmap config * : range = 16777216-33554431
template homedir = /home/%U
template shell = /bin/bash
kerberos method = secrets and keytab
winbind use default domain = true
winbind offline logon = false
#--authconfig--end-line--
log file = /var/log/samba/log.%m
idmap config * : rangesize = 1000000
load printers = no
;idmap config * : range = 1000000-19999999
passdb backend = tdbsam
netbios name = DEVDEENV01
cups options = raw
server string = VXSP TDH DB SERVER 2
idmap config * : backend = autorid
encrypt passwords = yes
os level = 20
max log size = 50
SSH output:
Code:
login as: deen\user1
Using keyboard-interactive authentication.
Password:
Last login: Tue Apr 27 12:42:54 2021 from 10.80.200.20
Could not chdir to home directory /home/user1: No such file or directory
-bash-4.2$
Again, you're still not providing relevant information, such as WHY you disconnected from the AD server, what you're trying to do, or what you did/have done so far.
Who configured Samba and Active Directory? Because you may want to ask them for assistance...did you look at what you posted? Have you checked the Samba log files? Because based on what you posted, your home directory is on an active directory server....very obviously, if you're not CONNECTED to the server, you can't map a drive, can you?
login as: deen\user1
Using keyboard-interactive authentication.
Password:
Last login: Tue Apr 28 15:36:48 2021 from 10.X.X.X
deen\user1 @ DEVDEENV01 | ~
So you CREATED the directory you didn't have, but that certainly DOES NOT solve the issue. None of the other files (or users) are going to have their data either.
You still haven't said what you are/were trying to accomplish by disconnecting from the AD, but all you did was create yourself a home directory. Yes, that will make the missing directory message go away, but you don't have ANY other data.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.