问题原文
原帖链接 · Rumbles · CC BY-SA 3.0
I use a samba4 domain account to log in on my laptop. I wanted to try zsh out, but since my user doesn't reside in /etc/passwd I found that chsh can't find my user. Can anyone advise how I can change my login_shell?
I couldn't see anything in my ldap.conf, nssswitch.conf or anything in /etc/pam.d that helped...
Looking on the domain controller I thought maybe I could use samba-tool, but I saw nothing in help that pointed me in the right direction...
已采纳解答
原帖链接 · Rumbles · CC BY-SA 3.0
I asked about this in the #suse channel on Freenode, and Miuku suggested the same as Arul, however, he mentioned two things, if I were using a Windows domain I could set the loginShell attribute.
Sadly, I'm on a samba domain, so that didn't help. But his final suggestion was perfect, get the output of:
getent passwd USERNAME
This will have the valid entry equivalent for your user in /etc/passwd, take this, paste it in to /etc/passwd and update the shell at the end for the valid path of the shell you want to use. This way it doesn't change it for all users, and you can make sure that shell is on the machine you're configuring this on before making the change.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
