I have a server using nss_ldap/pam_ldap (all users are stored on an ldap directory) but few users have been available to change their shell using the command chsh -s /bin/sh. While others while trying to do so they get a
Any idea of how to fix or make it work for all the users?
Here is a demo account in case someone would like to try and found how to do it:
I do not know if this could be a bug that could be overpassing the ldap directory and storing the new user information and password on /etc/passwd - /etc/master.passwd.
The default login.conf has this configuration:
The users that have successfully changed their shells using chsh have an entry on the /etc/passwd and /etc/master.passwd on the password field have a hash like this:
Where in theory they should have a hash beginning with $2 (since blf) is specified on the login.conf.
Any ideas of what could it be wrong?
regards.
Code:
chsh: Permission denied
Any idea of how to fix or make it work for all the users?
Here is a demo account in case someone would like to try and found how to do it:
Code:
host: sign.io
user: [email]test@sign.io[/email]
pass: sssss
I do not know if this could be a bug that could be overpassing the ldap directory and storing the new user information and password on /etc/passwd - /etc/master.passwd.
The default login.conf has this configuration:
Code:
default:\
:passwd_format=blf:\
:minpasswordlen=6:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/welcome:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=1h:\
:datasize=10M:\
:stacksize=2M:\
:memorylocked=2M:\
:memoryuse=8M:\
:filesize=10M:\
:coredumpsize=0:\
:openfiles=50:\
:maxproc=10:\
:sbsize=unlimited:\
:vmemoryuse:16M:\
:priority=5:\
:ignoretime@:\
:requirehome=1:\
:idletime=30:\
:umask=077:
The users that have successfully changed their shells using chsh have an entry on the /etc/passwd and /etc/master.passwd on the password field have a hash like this:
Code:
test4:$1$YAvOssdO$JjZcAPX/4QppDIPlS2P4s.:4658:4658::0:0:test:/home/users/t/e/s/test4:/bin/sh
Where in theory they should have a hash beginning with $2 (since blf) is specified on the login.conf.
Any ideas of what could it be wrong?
regards.