Couldn’t canonicalise: Permission denied

If your work on AIX System (or any other UNIX/Linux Distribution), may be you face the following Message when you try to access SFTP:

Couldn't canonicalise: Permission denied
Need cwd

after many troubleshooting :
– user can access SSH without any problem.
– user can’t access SFTP
– you can switch on this user normally.

Continue reading

How to disable LDAP Authentication in Linux

After a customer had performed some bad edits on various LDAP configuration files, users were locked out and unable to access the system. Root could still login however.

I logged in as root, and rather than mess with various config files, eg under /etc/pam.d, ran this command to disable LDAP authentication and enable “normal” authentication using /etc/shadow:

Continue reading