Hi, we've found some odd problem with 'return' used in .profile. A user who has a .profile file which executes the ksh builtin 'return' is able to log in, but is unable to properly use some programs (vim and su at least).
Steps to Reproduce: 1.Create test account with /bin/ksh as the default shell 2.Create a .profile file for this account with a single line containing return 3.Log into this account via ssh : ssh usern...@localhost 4.Type 'su - somevalidusername' Actual results: Password: su: incorrect password There is no chance to even enter a password - the error appears immediately Note that another fallout of this is that one can login to the test account set up as above and type 'vi somefilename' and the moment you enter a keypress after that the vi session exits. This works with other shells. The initial discovery came from a user who had return statements based on testing for environment variables so that he could log into a variety of OSes using the same .profile file. Regards, Michal Hlavinka _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
