Hello, Because chsh was using getpwuid/getpwnam, there was an issue with subsequent call to readline with tilde expansion which would also call the same function and overwrite the getpwuid/getpwnam internal storage struct passwd, replacing passed username results.