Sponsored Content
Special Forums UNIX and Linux Applications Infrastructure Monitoring trap in etc/profile and user .profile Post 302349689 by BubbaJoe on Tuesday 1st of September 2009 02:42:55 PM
Old 09-01-2009
Yes you still have to use trap to prevent a user from breaking out of a shell or killing a shell you don't want them to kill.

Here is a simple list of signals
Code:
 #define SIGHUP           1
 #define SIGINT           2
 #define SIGQUIT          3
 #define SIGILL           4
 #define SIGTRAP          5
 #define SIGABRT          6
 #define SIGIOT           6
 #define SIGUNUSED        7
 #define SIGFPE           8
 #define SIGKILL          9
 #define SIGUSR1         10
 #define SIGSEGV         11
 #define SIGUSR2         12
 #define SIGPIPE         13
 #define SIGALRM         14
 #define SIGTERM         15
 #define SIGSTKFLT       16
 #define SIGCHLD         17
 #define SIGCONT         18
 #define SIGSTOP         19
 #define SIGTSTP         20
 #define SIGTTIN         21
 #define SIGTTOU         22

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changed .profile but didnt ./.profile, yet reflected changes

hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix. please explain.. thanks (4 Replies)
Discussion started by: yls177
4 Replies

2. Shell Programming and Scripting

User profile

Sorry to I am not familiar with script writing , attach is the /etc/profile in my system , we have limit each user can only have one login in the system . When the user login , if the system found the user have a dead process in the system , the system will confirm the user to kill the previous... (1 Reply)
Discussion started by: ust
1 Replies

3. UNIX for Dummies Questions & Answers

User Profile

Hi Guys, Im really new with this stuff...could anybody help to guide me ...how do i change/edit user profiile ? (2 Replies)
Discussion started by: gagasan_makmur
2 Replies

4. UNIX for Dummies Questions & Answers

refresh user profile

Scenario: a non-root user is under primary group "devel" and I change their primary group to "nondevel"; I then want to be able to give the user a command which refreshes their user profile so that any new files created under their session are assigned to the new group. What is the command for... (1 Reply)
Discussion started by: dhinge
1 Replies

5. UNIX for Dummies Questions & Answers

How can I find a user profile

Hi, I want to know how can i find a user when he has logged in and how many times and days (2 Replies)
Discussion started by: darwinscp@hotma
2 Replies

6. IP Networking

how can i find a user profile

Hi I want to know how can i find a user when he has logged in, at what time and how many days, anyone can help me (1 Reply)
Discussion started by: darwinscp@hotma
1 Replies

7. AIX

Which file has the user profile?

It's been a long time since I've done this and I can't remember which file is needed to edit. I would like to change the prompt for a user on my AIX 5.3 box, but I don't see a .profile file or a rc.ksh file to edit. Which file do I need to edit to get this? (1 Reply)
Discussion started by: bbbngowc
1 Replies

8. Shell Programming and Scripting

User profile, environment

Hello , i am on sles 11, and i can't figure out how can i locate my profile file, the one that is use for setting the environment when i log in. oracle@r200:~> cd oracle@r200:~> pwd /opt/oracle oracle@r200:~> echo $SHELL /bin/bash oracle@r200:~> oracle@r200:~> cat .profile cat: .profile:... (4 Replies)
Discussion started by: tonijel
4 Replies

9. UNIX for Dummies Questions & Answers

Copying the .profile of one user to another.

I want to copy .Profile file from user1 homedirectoryto user2 homedirectory in Aix. Please help me with the process. (4 Replies)
Discussion started by: Laxxi
4 Replies
Deprecated names(3)						      BrlAPI						       Deprecated names(3)

NAME
Deprecated names - Data Structures struct brlapi_writeStruct Macros #define brlapi_settings_t brlapi_connectionSettings_t #define BRLAPI_WRITESTRUCT_INITIALIZER BRLAPI_WRITEARGUMENTS_INITIALIZER #define brl_keycode_t brlapi_keyCode_t #define brl_type_t brlapi_packetType_t #define BRLCOMMANDS NULL #define BRL_KEYCODE_MAX BRLAPI_KEY_MAX #define brlapi_initializeConnection brlapi_openConnection #define brlapi_getTty brlapi_enterTtyMode #define brlapi_getTtyPath brlapi_enterTtyModeWithPath #define brlapi_leaveTty brlapi_leaveTtyMode #define brlapi_unignoreKeyRange brlapi_acceptKeyRange #define brlapi_unignoreKeySet brlapi_acceptKeySet #define brlapi_getRaw brlapi_enterRawMode #define brlapi_leaveRaw brlapi_leaveRawMode #define brlapi_suspend brlapi_suspendDriver #define brlapi_resume brlapi_resumeDriver #define BRLERR_SUCCESS BRLAPI_ERROR_SUCCESS #define BRLERR_NOMEM BRLAPI_ERROR_NOMEM #define BRLERR_TTYBUSY BRLAPI_ERROR_TTYBUSY #define BRLERR_DEVICEBUSY BRLAPI_ERROR_DEVICEBUSY #define BRLERR_UNKNOWN_INSTRUCTION BRLAPI_ERROR_UNKNOWN_INSTRUCTION #define BRLERR_ILLEGAL_INSTRUCTION BRLAPI_ERROR_ILLEGAL_INSTRUCTION #define BRLERR_INVALID_PARAMETER BRLAPI_ERROR_INVALID_PARAMETER #define BRLERR_INVALID_PACKET BRLAPI_ERROR_INVALID_PACKET #define BRLERR_CONNREFUSED BRLAPI_ERROR_CONNREFUSED #define BRLERR_OPNOTSUPP BRLAPI_ERROR_OPNOTSUPP #define BRLERR_GAIERR BRLAPI_ERROR_GAIERR #define BRLERR_LIBCERR BRLAPI_ERROR_LIBCERR #define BRLERR_UNKNOWNTTY BRLAPI_ERROR_UNKNOWNTTY #define BRLERR_PROTOCOL_VERSION BRLAPI_ERROR_PROTOCOL_VERSION #define BRLERR_EOF BRLAPI_ERROR_EOF #define BRLERR_EMPTYKEY BRLAPI_ERROR_EMPTYKEY #define BRLERR_DRIVERERROR BRLAPI_ERROR_DRIVERERROR Detailed Description With version 0.5.0, BrlAPI is now provided through including <brlapi.h> and got a big renaming pass. Old names are still available through macros, but they are deprecated since they will get dropped in the next release. This documentation is for you to know the new names. For checking that you have completely switched to new names, just define BRLAPI_NO_DEPRECATED: that will disable compatibility macros. Macro Definition Documentation #define BRL_KEYCODE_MAX BRLAPI_KEY_MAX #define brl_keycode_t brlapi_keyCode_t #define brl_type_t brlapi_packetType_t #define brlapi_getRaw brlapi_enterRawMode #define brlapi_getTty brlapi_enterTtyMode #define brlapi_getTtyPath brlapi_enterTtyModeWithPath #define brlapi_initializeConnection brlapi_openConnection #define brlapi_leaveRaw brlapi_leaveRawMode #define brlapi_leaveTty brlapi_leaveTtyMode #define brlapi_resume brlapi_resumeDriver #define brlapi_settings_t brlapi_connectionSettings_t #define brlapi_suspend brlapi_suspendDriver #define brlapi_unignoreKeyRange brlapi_acceptKeyRange #define brlapi_unignoreKeySet brlapi_acceptKeySet #define BRLAPI_WRITESTRUCT_INITIALIZER BRLAPI_WRITEARGUMENTS_INITIALIZER #define BRLCOMMANDS NULL #define BRLERR_CONNREFUSED BRLAPI_ERROR_CONNREFUSED #define BRLERR_DEVICEBUSY BRLAPI_ERROR_DEVICEBUSY #define BRLERR_DRIVERERROR BRLAPI_ERROR_DRIVERERROR #define BRLERR_EMPTYKEY BRLAPI_ERROR_EMPTYKEY #define BRLERR_EOF BRLAPI_ERROR_EOF #define BRLERR_GAIERR BRLAPI_ERROR_GAIERR #define BRLERR_ILLEGAL_INSTRUCTION BRLAPI_ERROR_ILLEGAL_INSTRUCTION #define BRLERR_INVALID_PACKET BRLAPI_ERROR_INVALID_PACKET #define BRLERR_INVALID_PARAMETER BRLAPI_ERROR_INVALID_PARAMETER #define BRLERR_LIBCERR BRLAPI_ERROR_LIBCERR #define BRLERR_NOMEM BRLAPI_ERROR_NOMEM #define BRLERR_OPNOTSUPP BRLAPI_ERROR_OPNOTSUPP #define BRLERR_PROTOCOL_VERSION BRLAPI_ERROR_PROTOCOL_VERSION #define BRLERR_SUCCESS BRLAPI_ERROR_SUCCESS #define BRLERR_TTYBUSY BRLAPI_ERROR_TTYBUSY #define BRLERR_UNKNOWN_INSTRUCTION BRLAPI_ERROR_UNKNOWN_INSTRUCTION #define BRLERR_UNKNOWNTTY BRLAPI_ERROR_UNKNOWNTTY Author Generated automatically by Doxygen for BrlAPI from the source code. Version 1.0 Fri Jun 7 2013 Deprecated names(3)
All times are GMT -4. The time now is 07:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy