Sponsored Content
Top Forums Shell Programming and Scripting Is there a way to find when a user is added in Linux host? Post 302886830 by jaipsharma on Tuesday 4th of February 2014 12:46:37 AM
Old 02-04-2014
Robin,

Thanks for sharing useful piece of information. Would it be possible for you to share a snippet of code to intercept the executable in system logs.

Regards,

Jai
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to find the host name

HI, what is the command to find the host name with IP address. is possible to find the host name of other boxes( having their ip) from the same box (assuming telnet to other box is possible from this) Regards, Ananda (1 Reply)
Discussion started by: ani_rvce
1 Replies

2. UNIX for Dummies Questions & Answers

How many user can be added to single group

Hi There, How many user can be added to a unix single group. I need this for unix and solaris. BRs -----Post Update----- I'm asking about secondary group and not primary group. All the users are having 8 character as their username. value is set for getconf LINE_MAX is... (1 Reply)
Discussion started by: maestromani
1 Replies

3. UNIX for Dummies Questions & Answers

change user> to user@host> ssh prompt

Hi, I was wondering how to change the prompt for my ssh login. At the moment it is like user> while I'd like it to be as user@host> It is in the .bash_profile or .ssh ??? Thanks (2 Replies)
Discussion started by: pmasterkim
2 Replies

4. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

5. HP-UX

How can I find the size of files added to a folder after a particular date

Hi, I want to find the size of the files added to a folder after a certain date(say 1st of october), I know we can list the files which were created after a certain date , but is there anyway to find the total size of those files ? (3 Replies)
Discussion started by: alookachaloo
3 Replies

6. UNIX for Dummies Questions & Answers

Host file per user

Is anyone aware of a way of creating a local hosts file for a user? Getting a change made to /etc/hosts by our administrators takes about 4 weeks and a ridiculous amount of form filling for such a simple task, so was hoping I could have a locally controlled one for my user. Is such a thing... (0 Replies)
Discussion started by: dlam
0 Replies

7. Solaris

Why this message came when i added user in group?

Hi all, When I added one user in in this group hhs_gl6 following message got generated. -bash-3.00$ /usr/local/bin/sudo /usr/sbin/usermod -G hhs_gl6 vivek UX: /usr/sbin/usermod: hhs_gl6 name should be all lower case or numeric. However when I cheked the user in /etc/group file, the... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

8. Red Hat

How to find which host a VM is running on?

We have quite a few Linux VMs running (several hundred). Some are running in VMware and some are running on Citrix XenServer. I know that it is possible, for example, to go into vSphere and search for the host name. But there are times where it is not found for whatever reason and I want to log... (0 Replies)
Discussion started by: keelba
0 Replies

9. Linux

Mount a newly added LUN on a GNU/Linux distro

Hi I am not familiar with the linux, but I was asked to create a file system on a LUN from the NetApp that was mapped to the linux server. The server is runing: uname -a Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux and now... (6 Replies)
Discussion started by: fretagi
6 Replies
PHONE(1)						      General Commands Manual							  PHONE(1)

NAME
phone - communicate with other users in real-time SYNOPSIS
phone [ user@host [tty] ] DESCRIPTION
Phone allows for two or more people to interact in a conversation across a machine or network, providing a form of conference calling. Each participant has a window in which to type. The first line of each window is a header showing who is in the window, like: ---- root@cory on console (Commodore Cory) -------------- The login name and tty are automatically determined, and the real name is taken from the password file, which may be overridden by setting the NAME environment variable (see csh(1) for further details.) Users may join or leave a conversation at any point in time, and the win- dows will be automatically resized and redrawn. USAGE
When you are being paged by another person, a message like this will appear on your screen: Message from the Telephone_Operator@host at time ... phone: connection requested by user@host phone: respond with "phone user@host" You may answer the phone simply by typing "phone", which will answer the pending call, and connect you directly. Phone has two modes, much like the vi editor. These two modes are called conversation and command modes, and are toggled through the escape (<esc>) and return (<ret>) keys. When in the conversation mode, anything typed on the keyboard is sent to everyone in the current conversation. This is the default mode. The command mode is used to execute commands, and is entered by pressing the escape key. When in this mode, phone will clear the bottom line of the screen and print the prompt "Command>". At this point anything typed in is added to the command buffer, and will be executed when the return key is pressed. To exit command mode without executing the acommand, press the escape key a second time. To ivite another user to join the current conversation from within phone, enter command mode by pressing the escape key, then type call user@host followed by the <return> key. The user will receive a message like the one shown above if he is logged in. The host part of the name may be omitted if the both you and the other person are on the same machine. Phone also allows a user to execute shell commands inside his window with any keyboard input being fed to the process. The program's out- put is sent to all users in the conversation. A shell command is executed within phone through the use of the run or ! command. An exam- ple of this is: run adb a.out core to run the adb command with the arguments a.out and core. Note that tilde expansion (ie. ~user) is done by phone, but wildcarding, piping, and i/o redirection are performed by the user's shell. It is unlikely that anyone actually cares, of course. Also, the use of visually- oriented programs such as vi and rogue is not recommended, as this usually results in strange and unpredictable things happening. If your terminal goes up in a puff of smoke, you were warned. To find about the other commands available with phone, type help or ? in command mode. You can allow or disallow phone messages to your terminal through the use of the mesg command. When you first log on, messages are enabled. BUGS
Csh is unhappy being fed through pipes, but it's a dumb program anyway. The manual page is horrendous at best. Please send any problems, questions, or suggestions to the author. AUTHOR
Jonathan C. Broome (broome@ucb-vax.berkeley.edu) The original user interface is borrowed from a previous program (also called phone) posted to the network in late 1984, author unknown. FILES
/etc/hosts to find the recipient's machine /etc/utmp to find the recipient's tty /etc/passwd to find each user's real name SEE ALSO
mail(1), mesg(1), talk(1), who(1), write(1) 4.2 Berkeley Distribution PHONE(1)
All times are GMT -4. The time now is 02:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy