Command Line Login Problems

Hi,
I'm trying to login with a different user from the terminal command line using
login -f user2
after prompting me for my password it tells me that login is incorrect.
The password and username are correct
thanks for the help
BFirthAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ravenplConnect With a Mentor Commented:
login will not do (not enought priviledges). Try
su - user2
0
 
ygouthamCommented:
try this

exec login user2

or

exec login

in the second option it prompts you for username and password both.

goutham
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.