the method to find out the all the user who are the current user of the system?
i tried with the who. but with that i receive the TTY like something. (3 Replies)
Hi
I am using mailx to send email and am wondering if there is a way I can send the email from a different user than the user logged in.
something like do-not-reply@xyz.com
Thank you. (1 Reply)
Hello,
i know who command gives you the time when particular user logged in. And subtracting today's date and time from the one found in who we can get how much time user logged in. But this can get very much clumsy as we can't subtract date directly in unix . Is there any other way or command... (4 Replies)
How do I confirm if a user logged in, is remote or local? In the case if the user is remote, how to be sure what authentication/method is it using, like LDAP, NIS or other? (2 Replies)
Hey guys
I need a script that reads a login name and verifies if that user is currently logged in
i have found few commands like "who" and "users"
but i wonder how can i verify it that login name is logged in or not? (3 Replies)
hi!
How can I find into:
/var/log/messages.4
/var/log/messages.3
/var/log/messages.2
/var/log/messages.1
/var/log/messages
The last user do a login? (for example user1)
My idea is to search by the pattern "Accepted password for" buy I necessary search into all files first and in the... (2 Replies)
Hi All,
We use putty to connect to a unix box. We want to identify the folks involved in running certain shell scripts on the server.
I want to identify the windows user id of those folks who have logged through Putty to run the scripts.As unix-id is shared by more than two folks, tracking... (3 Replies)
Discussion started by: mdkareemuddin
3 Replies
LEARN ABOUT HPUX
setauduser
setauduser(3) Library Functions Manual setauduser(3)NAME
setauduser - start auditing the current process as owned by a given user
SYNOPSIS DESCRIPTION
sets which uniquely identifies the user for the current process. The user argument points to the name of the login user associated with
the current process, and must not exceed the longest user name that HP-UX supports. can be used to dynamically get the longest user name
that HP-UX supports.
The stime argument points to time of authentication in the format YYYYMMDDhhmm, Coordinated Universal Time (UTC). If stime is a null
pointer, the UTC of the current time is used.
Programs using this routine must be compiled with
Security Restrictions
This call requires the user to be superuser or to possess the privilege. See privileges(5) for details.
RETURN VALUE
returns the following values:
n Successful completion. n is the length of accepted by the kernel.
Failure.
is set to indicate the error.
ERRORS
If fails, is set to one of the following values:
user is NULL, or the length of user exceeds the longest user name that HP-UX supports.
The length of stime is not equal to bytes. See
The caller is not a superuser or a privileged process.
AUTHOR
was developed by HP.
SEE ALSO getaudid(2), setaudid(2), sysconf(2), getauduser(3), audit(5), privileges(5).
setauduser(3)