If you can use last and get a list of those that have been active for your desired period, then you can use something like:-
You have to be careful that the active list doesn't match multiple accounts, e.g. a user named bob in the active list might also match bobby and you won't see it in the output.
How are your users defined? Are there likely to be false-positives in this?
perhaps you also need to merge your active list with a list of service accounts, e.g. root or oracle or whatever. You need to be sure that your listed idle users are checked before you do anything too drastic with them.
I created a user, i login as a root. I add him in the group where he can access and login as a root! I checked it in users' list and in group's list, he is there. My problem is this, I cant login using the username/account I just created! What should i do to use and login the user/account i've just... (5 Replies)
I want to delete any file in unix file system which is older then a week.
Those files should not be unix system file..means it should be user created file.
Any clue to this ??
ASAP.
Thanks. (2 Replies)
I need a script to figure out if a user's last login was 90 days or older. OS=AIX 5.3, shell=Korn
Here's what I have so far:
====
#!/usr/bin/ksh
NOW=`lsuser -a time_last_login root | awk -F= '{ print $2 }'`
(( LAST_LOGIN_TIME = 0 ))
(( DIFF = $NOW - $LAST_LOGIN_TIME ))
lsuser -a... (3 Replies)
Hi,
My requirement is that i am login from ROOT in a script but when any
command is coming which is logging to sqlplus then i have to run it with normal user as only normal user have permission to connect to sqlplus .
i tried making a script like this :
#! /bin/ksh
su -... (3 Replies)
Hi all..
I was trying to do a little shell script, that would list users and their login times, lets say like last 5 days.
But I couldnt figure out how to count users login times from previous days. Any tips?
Funny that nobody has do this kinda script before, or atleast I couldnt find on... (2 Replies)
Hello World ~
HW : SUN Fire V240
OS : Solaris 8
Error message prompts 'rmclomv ... SC login failure ...' on terminal.
and
Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S)
The System is in normal operation, though
In case of rain, Can... (1 Reply)
Hi Every body,
I would need a shell script program to login as different user and perform some copy commands in the script.
example: Supppose ora_toms is the active user
ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands
... (9 Replies)
I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs.
I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
now i have logged in username : ramesh in unix
Now i have to created script file to login into another user and have run a command inside that user and after executing the command i have to exit from that user.
Inside script, i have to login into su - ram along with password : haihow and have to... (4 Replies)
Hi Experts,
Need your support
Redhat 6.5
I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login
to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies
LEARN ABOUT LINUX
dacsinfocard
DACSINFOCARD(1) DACS Commands Manual DACSINFOCARD(1)NAME
dacsinfocard - manage InfoCard accounts
SYNOPSIS
dacsinfocard [dacsoptions[1]]
DESCRIPTION
This program is part of the DACS suite.
The dacsinfocard command manages accounts that are used by the local_infocard_authenticate[2] authentication module. This utility serves a
similar purpose for these authentication modules that the dacspasswd(1)[3] command does for its local_passwd_authenticate[4] module.
Apart from their use by local_infocard_authenticate, these accounts are completely separate from any other accounts.
Security
The digest algorithm used depends on the INFOCARD_DIGEST[5] directive in effect.
Plaintext PPIDs are not stored. This makes it more difficult for an attacker that gains access to the InfoCard account file to discover
PPIDs.
Only a DACS administrator should be able to successfully run this program from the command line. Because DACS keys and configuration
files, including the file used to store accounts, must be restricted to an administrator, this will normally be the case, but a careful
administrator will set file permissions to deny access to all other users. An ordinary user is able to change his own InfoCard
registration using the dacs_infocard(8)[6] web service.
This program is also available as a DACS web service, dacs_infocard(8)[6].
OPTIONS
The dacsinfocard command recognizes these command line flags:
EXAMPLES
To list all of the InfoCard accounts configured for the jurisdiction named INFOCARDS:
% dacsinfocard -uj INFOCARDS -list
DSS::INFOCARDS:bob managed,istatic,enabled,passwd
DSS::INFOCARDS:alice managed,istatic,disabled,passwd
To re-enable the alice account:
% dacsinfocard -uj INFOCARDS -ena alice
To test if alice's account is enabled:
% dacsinfocard -uj INFOCARDS -test ena alice
% echo $status
0
To test if there are accounts for usernames bob and carol:
% dacsinfocard -uj INFOCARDS -test exists carol
% echo $status
0
% dacsinfocard -uj INFOCARDS -test exists bob
% echo $status
1
To get the private data for username bob:
% set x=`dacsinfocard -uj INFOCARDS -pdg bob`
% echo "$x"
On vacation
DIAGNOSTICS
The program exits 0 if everything was fine, and non-zero otherwise. A "false" outcome from the -test operation is reflected by an exit
status of 1. An error condition is indicated by an exit status of 2.
BUGS
As this is a relatively new and complicated feature, please test carefully.
SEE ALSO dacs_infocard(8)[6], dacsauth(1)[7], dacs_authenticate(8)[8], dacs_admin(8)[9], dacs.conf(5)[10], Using InfoCards With DACS[11]
AUTHOR
Distributed Systems Software (www.dss.ca[12])
COPYING
Copyright2003-2012 Distributed Systems Software. See the LICENSE[13] file that accompanies the distribution for licensing information.
NOTES
1. dacsoptions
http://dacs.dss.ca/man/dacs.1.html#dacsoptions
2. local_infocard_authenticate
http://dacs.dss.ca/man/dacs_authenticate.8.html#local_infocard_authenticate
3. dacspasswd(1)
http://dacs.dss.ca/man/dacspasswd.1.html
4. local_passwd_authenticate
http://dacs.dss.ca/man/dacs_authenticate.8.html#local_passwd_authenticate
5. INFOCARD_DIGEST
http://dacs.dss.ca/man/dacs.conf.5.html#INFOCARD_DIGEST
6. dacs_infocard(8)
http://dacs.dss.ca/man/dacs_infocard.8.html
7. dacsauth(1)
http://dacs.dss.ca/man/dacsauth.1.html
8. dacs_authenticate(8)
http://dacs.dss.ca/man/dacs_authenticate.8.html
9. dacs_admin(8)
http://dacs.dss.ca/man/dacs_admin.8.html
10. dacs.conf(5)
http://dacs.dss.ca/man/dacs.conf.5.html
11. Using InfoCards With DACS
http://dacs.dss.ca/man/using-infocards-with-dacs.html
12. www.dss.ca
http://www.dss.ca
13. LICENSE
http://dacs.dss.ca/man/../misc/LICENSE
DACS 1.4.27b 10/22/2012 DACSINFOCARD(1)