- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SOX and user login issue
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
07-12-2006 05:52 AM
07-12-2006 05:52 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 05:58 AM
07-12-2006 05:58 AM
Re: SOX and user login issue
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 05:59 AM
07-12-2006 05:59 AM
Re: SOX and user login issue
Create the user in the normal way, and then change his/her login shell in /etc/passwd to '/usr/bin/false'.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 06:00 AM
07-12-2006 06:00 AM
Re: SOX and user login issue
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 06:01 AM
07-12-2006 06:01 AM
Re: SOX and user login issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 06:30 AM
07-12-2006 06:30 AM
Re: SOX and user login issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 06:31 AM
07-12-2006 06:31 AM
Re: SOX and user login issue
IANAL. Having said that, changing the login shell to '/usr/bin/false' will also prevent su attempts. On one of my systems, when I try to su to a user with login shell /usr/bin/false, I get:
su: No shell
Bus error
For what you want to accomplish, add something like the following to his/her ~/.profile:
if [ "$(whoami)x" = "$(who am i | cut -f1 -d' ')x" ]; then
exit
fi
'whoami' returns current (post-su) user, while 'who am i' returns the original (pre-su) user, so you can compare their output. If it's the same, you know su wasn't used, so you kill the session.
Consequentially, if the user you want to prevent direct logins for is root,
# echo console >> /etc/securetty
will prevent root from logging anywhere except for the system console, but will still allow su.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 06:36 AM
07-12-2006 06:36 AM
Re: SOX and user login issue
setup an account that noone knows the password for.
setup sudo for the users that need to su to that account. so they can su - account
sudo uses the users passwd and not the password of the account you are suing to.
sudo would also create a log entry for those using the account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 07:46 AM
07-12-2006 07:46 AM
Re: SOX and user login issue
If so, you could create a new group in /etc/group. That group would list the id's of all users who are allowed to work with the files in question. No id in /etc/passwd should default to the new group.
directories would have permissions like 070 and files 010 thru 070 (no user or other perms) perhaps?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 09:15 AM
07-12-2006 09:15 AM
Re: SOX and user login issue
I think you may be missing the point of SOX. What you've asked for is impossible, making Pete's answer the 10 point response.
SOX wants an audit trail so that if something bad happens that effects the company it can be traced.
You must have wtmp and btmp files for example.
You must keep logs that are relavent.
Some people think you need shadow passwords but thats not true we passed SOX audits without.
Some people think NIS doesn't comply.
I think the audit trail of a trusted system with audit logs being archived exceeds SOX requirements.
Another thing to watch for. SOX audits often are done with the idea of selling consulting services to help "fix" the problem. Its unethical but I've heard second reports of it happening.
There is nothing wrong with failing a SOX audit so long as you correct the problems in a reasonable period of time. But if you bring in someone to help you prepare for a SOX audit then its buyer beware, they may not have your best interests at heart.
In case anyone asks, we have to comply with SOX on a limited basis because I work for News Corp, through a few levels of Corporate ownerhip and thats a US based/resident(don't remember the term) company.
SEP
Jerusalem
Israel
Things will get calmer here. Trust me.
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
07-12-2006 09:20 AM
07-12-2006 09:20 AM
Re: SOX and user login issue
This is how we satisfied SOX compliance (at least as far as the auditors were concerned) in our shop.
We:
1. Moved su to another name.
2. Created a wrapper script called su that calls the moved renamed real su.
3. The wrapper script records who performed the su and captures their key stokes into a file while they were su'd as the user.
4. The captured su user file is mailed,daily, to the user and IT middle management with a notice for the user to explain their activity.
5. The log file created cannot be changed by the user that performed the su.
This is a bit involved for all the pieces we use, but I hope you get the gist of this.
Incidentally, the users referred to are developers and their .profile takes them to a menu where they can su or exit [trapping ^C, etc. of course].
Thus the requirement of restricting acces to production code was satifactory to the auditors.
Best of luck on this.
Regards,
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2006 10:52 PM
07-12-2006 10:52 PM
Re: SOX and user login issue
you could setup teh account as a ftponly account. In this way user could use it to exchange file but without log in into.
Use /usr/bin/false shell to obtain this.
See this thread for reference:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=995515&admit=-682735245+1138356176925+28353475
Instead if you want to track the activities of teh suer you could install powerbroker tool.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 12:51 AM
07-13-2006 12:51 AM
Re: SOX and user login issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 04:10 AM
07-13-2006 04:10 AM
Re: SOX and user login issue
What you ask in your last reply is exactly what I was attempting to describe in what we did to be sox compliant.
The generic user in our shop can only be accessed via su and the user performing the su gets all keystrokes recorded for an audit trail.
This was satisfactory to the D & T audit team for SOX compliance.
Regards,
-dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 04:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 04:30 AM
07-13-2006 04:30 AM
Re: SOX and user login issue
given an "okey-dokey".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 04:39 AM
07-13-2006 04:39 AM