You want to logoff the user 'john'.
You must kill the process of his shell. Every user logs into some kind of shell. In the below example john's shell is seen as '-ksh'. That is the process you need to kill.
We see the process id, or PID, is 323806. We pass that number to the 'kill' command with a signal of '-9' or TERMINATE.
And he should be gone. Also consider the fact that whatever they are working on when you do this is lost if they have not saved their work.
ok, heres what i want i need....well want, hehe...
in a program, its a simple menu, i need to log the user running the program off...back to the login prompt. this is not a super user, just a normal account.
i know i could just set the program to be the users login shell..but i'd rather do... (1 Reply)
Hi,
I am using SunOS and HP-UX. I am trying to removed user that has not been using the system for a period of time. Is there anyway to find out how long since the last time the user logged on. I know there is command "last" that read from the file /etc/wtmp that hold some of information. ... (1 Reply)
Hi,
I have a script giving option to allow user who run the script log out the server.
I used 'exit' when user chose this option. But it didn't work the way I wanted. It only exit the program not the machine.
I used 'logout' after 'exit'. Still not working.
Anyone has some ideas?
Thanks!!! (6 Replies)
How can I identify usernames on UNIX, when these users don't access the server, they access folders on this server. Is it possible? :confused: (4 Replies)
Recently I created new user because I don not wont to use root account as default
but when I want to login I can choose Java desktop and after few seconds , system returns me back to login screnn , only root account woks fine (16 Replies)
I need know when user was loged last time?
So when my user log in his account he will see welcom message:
Hello username.
Today is: date.
Last time You loged on : date.
I tried to use comand lastlog -u username but it shows me time from few seconds ago.
I need logging one before.
... (1 Reply)
I have been trying to change my user name and machine name, however now I cannot log in and I am directed as guest. Is there a way to resolve this problem? (33 Replies)
Below is my script to log all the command input by any user to /var/log/messages. But I cant achieve the desired output that i want. PLease see below.
function log2syslog
{
declare COMMAND
COMMAND=$(fc -ln -0)
logger -p local1.notice -t bash -i -- "$USER:$COMMAND"
}
trap... (12 Replies)
Discussion started by: invinzin21
12 Replies
LEARN ABOUT OSX
unique
UNIQUE(8) System Manager's Manual UNIQUE(8)NAME
unique - removes duplicates from a wordlist
SYNOPSIS
unique output-file
DESCRIPTION
This manual page documents briefly the unique command, which is part of the john package. This manual page was written for the Debian
GNU/Linux distribution because the original program does not have a manual page. john, better known as John the Ripper, is a tool to find
weak passwords of users in a server.
The unique tool finds and removes duplicate entries from a wordlist (read from stdin), without changing the order. This is important to
increase the performance of john when using the wordlist method.
SEE ALSO john(8), mailer(8), unafs(8), unshadow(8).
The programs are documented fully by John's documentation, which should be available in /usr/share/doc/john or other location, depending on
your system.
AUTHOR
This manual page was written by Jordi Mallach <jordi@debian.org>, for the Debian GNU/Linux system (but may be used by others).
John the Ripper and mailer were written by Solar Designer <solar@openwall.com>. The complete list of contributors can be found in the CRED-
ITS file in the documentation directory.
john June 03, 2004 UNIQUE(8)