Click to See Complete Forum and Search --> : limiting users


threadhead
11-07-2002, 12:16 PM
hello you

i configured my box as a shellaccount for myself so i can learn new things about linux in non-graphical mode.

i used from my windows box a ssh client to connect to my computer as root. everything worked fine. still logged in as root i tried the same thing again and now i was logged in as root 2 times at the same moment, how do i limit all users to 1 a time?

another question: where are the login attempts logged? in what file?

thanks threadhead

mychl
11-07-2002, 01:13 PM
Not sure how to limit access, but login attempts should show up in /var/log/messages

threadhead
11-07-2002, 01:45 PM
i searched the web and there wasnt anything good to read about how to log the keystrokes of the user currently logged in.

anyone knows how to manage this for a ssh connection on port 22?

thanks threadhead

mychl
11-07-2002, 02:00 PM
Yeah, for each user, they have a directory in /home/

In each user's home directory there is a hidden file called .bash_history

Read that file and it will list their keystrokes.