10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
I have the basic query that there are 3 unix boxes having their individual access now in my team there are 4 members who are using the same credentials to access those 3 boxes through putty ssh from their windows desktop , now if i want to check which 4 members have executed the... (1 Reply)
Discussion started by: punpun66
1 Replies
2. Shell Programming and Scripting
I need to list users in /etc/passwd with root's GID or UID or /root as home directory
If we have these entries in /etc/passwd
root:x:0:0:root:/root:/bin/bash
rootgooduser1:x:100:100::/home/gooduser1:/bin/bash
baduser1:x:0:300::/home/baduser1:/bin/bash... (6 Replies)
Discussion started by: anil510
6 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I have a small problem. When I log in as root and try to switch to any other user using su -user, then it is giving an error saying libncurses.so permission denied. Can you help me?
Thank you in advance.
Sai. (1 Reply)
Discussion started by: sai2krishna
1 Replies
4. Solaris
I'm using Solaris 10. I want to restrict users from executing this dangerous command.
rm -rf *
But they should be able to perform the below actions:
rm -rf *.*
rm -rf filename
rm -rf directory
Is it possible? If yes then pls let me know how to do it? (7 Replies)
Discussion started by: Arun_Linux
7 Replies
5. AIX
Hi All
How can track what commands are entered by the Root user. Is there a log besides using the history command that lists all commands entered for a period of time.
thanks:o (6 Replies)
Discussion started by: pashan
6 Replies
6. UNIX Desktop Questions & Answers
Hi there,
I'm working with a Linux server and now I can get a daily Logwatch mail ... my question is:since there are too many users with root password (...in my opinion... :mad:) how could I prevent to delete information about "su" log?
Thanks in advance,
GB (3 Replies)
Discussion started by: Giordano Bruno
3 Replies
7. Solaris
hello,
I have a challenge to find a way to lock down a file in a user's home directory, such that a user can NOT modify, rename, move, delete, etc. The solution needs to be deployable without, for example, having to switch from unix to windows, etc
We are using NFS. We want to lock the... (1 Reply)
Discussion started by: jvmagic
1 Replies
8. Solaris
We have a Solaris box. I noticed that whenever any non-root user logins into the box and issues the command id the output is (for example) uid=42568(sam) gid=1245(sam) euid=0(root) egid=2(bin). I have not given any privileges to anyone explicitly. When I issued ls -l in the /usr/bin directory I... (1 Reply)
Discussion started by: chrisanto_2000
1 Replies
9. SCO
UnixWare 7, Release 7.1.3
We have a customer that has frequent issues with Non-Root users being unable to print. They are able to print w/o issues, but all of the sudden it stops working. The only workaround we have at this point is to reboot the server. It is happening weekly according to... (1 Reply)
Discussion started by: cfshd
1 Replies
10. UNIX for Advanced & Expert Users
Hi!! Experts,
I have a typical scenario here in which several users have access to a particular login .. say "build".
None of the users know the passwd for this login.
The name of some of the user have been to .rhosts file.
The users can connect only by doing a rlogin to this id and then... (4 Replies)
Discussion started by: jyotipg
4 Replies
last(1) General Commands Manual last(1)
Name
last - indicate last logins of users and teletypes
Syntax
last [-N] [name...] [tty...]
Description
The command looks back in the file, which records all logins and logouts, for information about a user, a teletype or any group of users
and teletypes. Arguments specify names of users or teletypes of interest. Names of teletypes can be given fully or abbreviated. For
example `last 0' is the same as `last tty0'.
If multiple arguments are given, the information that applies to any of the arguments is printed. For example, `last root console' lists
all of "root's" sessions as well as all sessions on the console terminal.
The command prints the sessions of the specified users and teletypes, most recent first, indicating the times at which the session began,
the duration of the session, and the teletype on which the session took place. If the session is ongoing or was cut short by a reboot,
indicates that this is so.
The pseudo-user reboot logs in at reboots of the system. Therefore, the following example gives an indication of mean time between reboot:
last reboot
The command with no arguments prints a record of all logins and logouts, in reverse order.
If is interrupted, it indicates how far the search has progressed in If interrupted with a quit signal (generated by a <CTRL/E>) indicates
how far the search has progressed so far, and the search continues.
Options
-N Limits the number of output lines to the specified number.
Files
/usr/adm/wtmp
login data base
/usr/adm/shutdownlog
records that shutdowns occurred and why
See Also
wtmp(5), ac(8), lastcomm(1)
last(1)