11-18-2002
Re: past login still exist in the system
Quote:
Originally posted by yls177
hi, i noticed that there are still past logins which have not been terminated. how should i removed them?
i am on aix.
Depends on the operating system.
On some OSs you could go and removed the offending entries from the /etc/passwd and/or /etc/shadow and /etc/groups.
Under FreeBSD, you can use vipw to remove entries (FreeBSD also uses a /etc/master.passwd instead of /etc/shadow).
Have you verified that none of these accounts are used for cron-jobs or suid's?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it possible to install unix on a system which already runs windows 98? (2 Replies)
Discussion started by: ms73eb
2 Replies
2. Solaris
Hi,
I'm new to solaris/ Unix and would like to know how to check in the system what
was the last login user were doing. Is there any way to check this? Thanks in advanced. (1 Reply)
Discussion started by: raziayub
1 Replies
3. Cybersecurity
Hy everyone!
I'm trying to lock out system accounts on my Tru64 UNIX machines.
Wherever I look, it says only to put Nologin or *Nologin in password field of desired account in /etc/passwd.
But it doesn't work. I still can su to that accounts. There are some accounts that already have Nologin... (1 Reply)
Discussion started by: veccinho
1 Replies
4. HP-UX
Hello,
I'm new to HP-UX. I have a system running B.11.23 on ia64. The system gets its user passwords via active directory. Everytime a new account is added to AD a script pushes out the account info to all the systems and this system is updated too. However, on this machine, users are unable to... (2 Replies)
Discussion started by: BFLO
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
I was add my shell script in /etc/rc.d/rc.local file
Eg.
sh /root/KernelModule.sh
my KernelModule.sh contain
insmod xxxxx.ko
insmod yyyy.ko
I have insmod 22 kernelmodule in this script , all the modules are my own driver modules.
now problem is my system is booting but... (2 Replies)
Discussion started by: rajamohan
2 Replies
6. Solaris
Hello
I have a question that may sound stupid after and maybe it is.
We are syncing our sytem time via ntp from a reference time server. all works quite well
but due to a mall applikation which not accepts timestamps from our servers that in the future,
and if it even was 1 ms, we have to... (1 Reply)
Discussion started by: demwz
1 Replies
7. AIX
Guy's
I have AIX 6.1 has some slowness when I login to the system ..
When I login by user screen hangs for some time 20 seconds then it's give me the command prompt .. !
system is fine is working fine only this issue I faced can you please help me in this .. what's the expected reason... (2 Replies)
Discussion started by: ITHelper
2 Replies
8. Shell Programming and Scripting
Want to find the stdout for the partiuclar user login for past 12 hrs.
Say for eg : user login id is teladm
And the host name is sys22prod
I want to see the stdout for that user id in that host for past 12 hrs (1 Reply)
Discussion started by: mail2sant
1 Replies
9. Programming
I'm new to C++.
I have a text file named idpw.txt which is storing id and password
e.g
admin password
account1 abc
john hello
Here's my code so far:
bool login()
{
string user,password, user1, password1;
ifstream myfile("idpw.txt");
cout << "Please enter your username" <<... (3 Replies)
Discussion started by: andylbh
3 Replies
10. Solaris
Hi,
Am writing a script where I want to find uptime of certain servers. Is there any command where we can find uptime without login to the server, since the server list is big logging to the server will time consuming.
Thanks in advance (7 Replies)
Discussion started by: rogerben
7 Replies
LEARN ABOUT DEBIAN
update-passwd
UPDATE-PASSWD(8) System Manager's Manual UPDATE-PASSWD(8)
NAME
update-passwd - safely update /etc/passwd, /etc/shadow and /etc/group
SYNOPSIS
update-passwd [options]
DESCRIPTION
update-passwd handles updates of /etc/passwd, /etc/shadow and /etc/group on running Debian systems. It compares the current files to mas-
ter copies, distributed in the base-passwd package, and updates all entries in the global system range (that is, 0-99).
OPTIONS
update-passwd follows the usual GNU command line syntax, with long options starting with two dashes ('-').
-p, --passwd-master=FILE
Use FILE as the master copy of the passwd database. The default value is /usr/share/base-passwd/passwd.master.
-g, --group-master=FILE
Use FILE as the master copy of the group database. The default value is /usr/share/base-passwd/group.master.
-P, --passwd=FILE
Use FILE as the system passwd database. The default value is /etc/passwd.
-S, --shadow=FILE
Use FILE as the system shadow database. The default value is /etc/shadow.
-G, --group=FILE
Use FILE as the system group database. The default value is /etc/group.
-s, --sanity-check
Only perform sanity-checks but don't do anything.
-v, --verbose
Give detailed information about what we are doing. A second -v gives additional detail.
-n, --dry-run
Don't do anything but only show what we would do.
-L, --no-locking
Don't attempt to lock the account database. This should only be used for debugging purposes. I repeat: do not do this unless you
are really sure you need this!
-h, --help
Show a summary of how to use update-passwd.
-V, --version
Show the version number
BUGS
At this moment update-passwd does not verify the shadow-file. It should check if the entries in the passwd are also in shadow and vice
versa, and that passwords are not present in both files.
AUTHOR
Wichert Akkerman <wakkerma@debian.org>
This program was written for the Debian project, and is copyright 1999-2002 Wichert Akkerman and copyright 2002, 2003 Colin Watson. It is
distributed under version 2 of the GNU General Public License.
DEBIAN
Debian tools UPDATE-PASSWD(8)