9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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)
Discussion started by: Budrys
1 Replies
3. Solaris
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)
Discussion started by: microbot
16 Replies
4. HP-UX
Hi,
Please could you tell me how I can create a new user account on HP-UX who can only sign-on from the console ?
Thanks (4 Replies)
Discussion started by: catheram
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I know the uid and I wan to know the user name the uid belongs to. How can I get it.
Suppose My user name is ssnayak and coresponding uid is 1110
Similarly I know one uid 1212 and how can I come to know the user name for this uid.
Thanks & Regards,
Siba (3 Replies)
Discussion started by: siba.s.nayak
3 Replies
6. UNIX for Advanced & Expert Users
I want to know the command through which we can know the expiry date
of the password.
I tried chage but it is not working on my system please provide
necessary information
I am not using root
I need info on user level (2 Replies)
Discussion started by: irshad
2 Replies
7. AIX
Hi everybody,
First, Is the command who show all the users connected to my system? Is it equivalent to the commands last |grep still.
Second, How I can log-off a specific user?
Note: My system is AIX 4.3 (3 Replies)
Discussion started by: aldowsary
3 Replies
8. Shell Programming and Scripting
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)
Discussion started by: whatisthis
6 Replies
9. UNIX for Advanced & Expert Users
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)
Discussion started by: vtran4270
1 Replies