Sponsored Content
Operating Systems AIX Profile environment variables lost after mksysb restore Post 302649469 by stephnane on Thursday 31st of May 2012 11:30:48 AM
Old 05-31-2012
Tks for your answer, I had this idea too, but the solution was elsewhere. In profile scripts, another scripts were called with the "hostname" command. As the hostname change during restore, scripts were not called ...
 

10 More Discussions You Might Find Interesting

1. AIX

mksysb restore errors

goodafternoon people. here are a couple of error messages I get during restore of mksysb from a AIX F80 to a F50. I have verified blocksize and have set them to 1024 which matches both the systems. backup system is F80 and restore system is F50. Both are 4.3.3 ML10 level Upon executing via... (1 Reply)
Discussion started by: Student37
1 Replies

2. Solaris

Profile and environment variable

Hi, I'm using solaris 8 and I need to know where I can add the following variable to have it applied to all my user Ids. I tried to add this to /etc/profile but not working when i check with "env" command : export PW_MATRIX=/usr/local/ccms/security/dat/.PASSWORD_MATRIX export... (2 Replies)
Discussion started by: unclefab
2 Replies

3. AIX

mksysb restore ( vgs on SAN disks)

I have my application vendor looking at this but I want to do my own investigation. I restored from mksysb and I see my vgs that contain my internal disks. But I do not see my vgs that contain disks from the SAN. This scares me .. {{ Ha, ha!! My AIX expert boss just told me I have nothing... (0 Replies)
Discussion started by: Skyybugg
0 Replies

4. AIX

NIM client mksysb restore

Can a NIM client mksysb restore be performed via NIM (smitty nim) without the NIM client machine having the NIM server's IP and hostname in its /etc/hosts file? (10 Replies)
Discussion started by: kah00na
10 Replies

5. AIX

mksysb restore - Wrong OS level for restore

Hi all, I am still working on my mksysb restore. My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored. 0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies

6. AIX

How to restore from mksysb backup

system is not booting ... i want to restore from mksysb backup. (2 Replies)
Discussion started by: AIXlearner
2 Replies

7. Shell Programming and Scripting

Environment variables getting lost

Guys, I am calling script BIADMDEV_oaaptest01.env from script oraenv. In script BIADMDEV_oaaptest01.env, I have bunch of environment variables. For example, I have MW_HOME=/ord/appserv/oracle/MW; export MW_HOME and similar stuff. I run script oraenv at the shell at command prompt. For example... (3 Replies)
Discussion started by: sshah1001
3 Replies

8. AIX

Restore mksysb image on cloned LPAR

Hi Folks, How to restore mksysb image on LPAR which is already having cloned AIX OS installed on hdisk0 (nothing configured, only full partition image is sitting on hdisk0) Let me know. Thank a lot. (1 Reply)
Discussion started by: snchaudhari2
1 Replies

9. AIX

AIX 7.2 MKSYSB Backup and Restore Best Practices?

Hello, Running AIX 7.2 on Power9 bare-metal (no LPAR and no NIM server), in the process of creating a guide on MKSYSB process. I understand that MKSYSB is a backup of the rootvg and we can exclude stuff via exclude.rootvg file, the rest of the data volumes are mapped to the system as LUNs via... (7 Replies)
Discussion started by: c3rb3rus
7 Replies

10. UNIX for Beginners Questions & Answers

Mksysb restore problem

Hello everybody, I have a little problem with my mksysb restore. My system: AIX 6100-09-11-1806. I make mksysb backup of my LPARs by NIM server. I am doing restore tests by NIM server on spare LPAR now. All LPARs were restored allright except for one. During restore it stops with this... (4 Replies)
Discussion started by: Necronomic
4 Replies
PAM_SELINUX(8)							 Linux-PAM Manual						    PAM_SELINUX(8)

NAME
pam_selinux - PAM module to set the default security context SYNOPSIS
pam_selinux.so [open] [close] [restore] [nottys] [debug] [verbose] [select_context] [env_params] [use_current_range] DESCRIPTION
pam_selinux is a PAM module that sets up the default SELinux security context for the next executed process. When a new session is started, the open_session part of the module computes and sets up the execution security context used for the next execve(2) call, the file security context for the controlling terminal, and the security context used for creating a new kernel keyring. When the session is ended, the close_session part of the module restores old security contexts that were in effect before the change made by the open_session part of the module. Adding pam_selinux into the PAM stack might disrupt behavior of other PAM modules which execute applications. To avoid that, pam_selinux.so open should be placed after such modules in the PAM stack, and pam_selinux.so close should be placed before them. When such a placement is not feasible, pam_selinux.so restore could be used to temporary restore original security contexts. OPTIONS
open Only execute the open_session part of the module. close Only execute the close_session part of the module. restore In open_session part of the module, temporarily restore the security contexts as they were before the previous call of the module. Another call of this module without the restore option will set up the new security contexts again. nottys Do not setup security context of the controlling terminal. debug Turn on debug messages via syslog(3). verbose Attempt to inform the user when security context is set. select_context Attempt to ask the user for a custom security context role. If MLS is on, ask also for sensitivity level. env_params Attempt to obtain a custom security context role from PAM environment. If MLS is on, obtain also sensitivity level. This option and the select_context option are mutually exclusive. The respective PAM environment variables are SELINUX_ROLE_REQUESTED, SELINUX_LEVEL_REQUESTED, and SELINUX_USE_CURRENT_RANGE. The first two variables are self describing and the last one if set to 1 makes the PAM module behave as if the use_current_range was specified on the command line of the module. use_current_range Use the sensitivity level of the current process for the user context instead of the default level. Also suppresses asking of the sensitivity level from the user or obtaining it from PAM environment. MODULE TYPES PROVIDED
Only the session module type is provided. RETURN VALUES
PAM_SUCCESS The security context was set successfully. PAM_SESSION_ERR Unable to get or set a valid context. PAM_USER_UNKNOWN The user is not known to the system. PAM_BUF_ERR Memory allocation error. EXAMPLES
auth required pam_unix.so session required pam_permit.so session optional pam_selinux.so SEE ALSO
execve(2), tty(4), pam.d(5), pam(8), selinux(8) AUTHOR
pam_selinux was written by Dan Walsh <dwalsh@redhat.com>. Linux-PAM Manual 06/18/2013 PAM_SELINUX(8)
All times are GMT -4. The time now is 05:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy