- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User aging..
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 09:37 PM
11-24-2005 09:37 PM
do you think is possible to match this requirement? If a user remains unused for 60 consecutive days it must be disabled. If no authorised request for reinstatement is received within a further 30 consecutive days the userid must be deleted.
I think the first can be done with HP-UX trusted, the second? Do you think I've to implement something or could be free?
Can you please help? Thanks.
Roy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 09:46 PM
11-24-2005 09:46 PM
Re: User aging..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 09:55 PM
11-24-2005 09:55 PM
SolutionTwo more ways to achive first requirement:
i) last | grep 'username'
gives last successful login. Calculate day difference and remove the user.
ii) You can play with /etc/profile file to achive this as,
# mkdir /var/users/
# Edit /etc/profile as,
echo "`date +'%d %m %y'`" > /var/users/${LOGNAME}
You can compare the contents in /var/users with current date difference and remove the user account with userdel.
Second Requirement:
Use last and lastb command to achive this.
# last | grep 'username'
# lastb | grep 'username'
get the time stamp and produce the latest one in both. See the time stamp difference with current date and remove user id.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 10:03 PM
11-24-2005 10:03 PM
Re: User aging..
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=855955
To get a date difference.
DAY1=$(cat /var/users/${LOGNAME}
DAY2=$(date +'%d/%m/%y')
typeset -i DIFF=$(( $(caljd.sh ${DT2} - $(caljd.sh ${DT1}) ))
if [[ ${DIFF} -gt 60 ]]
then
userdel
fi
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2005 10:11 PM
11-24-2005 10:11 PM
Re: User aging..
Its possible and the best way to go is trusted system. This conversion makes teh 60 day rule easy to enforce.
The second 30 day until delete is probably better done by policy. When an account becomes disabled, its status is changed and this can be accounted for.
You can build a little report with passwd -sa and probably get your user list.
Take a look at that report output and see if it might be helpful.
Surely this could be done for free, because the best solution is a scripted solution.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2005 04:39 AM
12-28-2005 04:39 AM