- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- csh login trap
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
03-04-2002 06:59 PM
03-04-2002 06:59 PM
csh login trap
C shell is foreign to me. The option (other suggestions are welcome) I am looking at is to modify their profile by including a trap.
Are there any C Shell "gurus" out there that can assist ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:11 PM
03-04-2002 07:11 PM
Re: csh login trap
it's /etc/csh.profile
you could just do the old:
who=$(id -un)
case $who in
ctmagent) exit 1;
;;
*) ;;
esac
and so on for each user you don't want to log in.
The other alternative is to disable the accounts, this will not stop someone from su-ing to them.
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:22 PM
03-04-2002 07:22 PM
Re: csh login trap
The global profile for csh is /etc/csh.login.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:23 PM
03-04-2002 07:23 PM
Re: csh login trap
Do you know the csh trap commands stop the user
from breaking out ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:28 PM
03-04-2002 07:28 PM
Re: csh login trap
The trap commands for csh are the same as that for sh.
trap "" 1 2 3
# insert commands you do not wish the user to break out from here
trap 1 2 3
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:47 PM
03-04-2002 07:47 PM
Re: csh login trap
yup it's csh.login
been operating posixly correct for too long :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 07:55 PM
03-04-2002 07:55 PM
Re: csh login trap
This will prevent the users from logging directly into the server, but if you are root you can still do a 'su - ctmserv' or 'su - ctmagt'.