03-23-2010
Quote:
Originally Posted by
jim mcnamara
Corona is being more polite about it. But I don't think, short of rewriting base modules in UNIX, then recompiling, you are going to be able to do that. If you are on Linux or open solaris 10 you have a chance of being able to do this.
It
might be possible with linux PAM, which apparently makes everything possible and nothing easy
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi...
Can anyone help! I am in dire need to change the "login:" prompt to "username:" any ideas?
Thanks in advance :) (6 Replies)
Discussion started by: juilan
6 Replies
2. UNIX for Dummies Questions & Answers
Me again,
What is the difficulty to display the full directory Path before my prompt command ? (like DOS)
I'm using Solaris 8 + Bash
Thanks again
Fabien (4 Replies)
Discussion started by: unclefab
4 Replies
3. UNIX for Dummies Questions & Answers
Phew simple question,
I want to display the my directory path in prompt.
Did the following in .profile
PS1=`pwd`
export PS!
Worked, but it always points to HOME directory.
When i do a cd, it doesn't change.
What am i missing.
Thanks (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
4. UNIX for Dummies Questions & Answers
I know no one has ever asked this before {not :D } but I am trying to set the prompt in the .profile under sh. I have tried everything I have seen on the web in regards to this, with no success. The OS is SCO Unixware 7.1.1, {not by my choice}. All the examples I see seem to be for ksh, which is... (1 Reply)
Discussion started by: jcc5169
1 Replies
5. Solaris
I currently have this as my prompt when I log in (shell is sh):
PS1="`hostname ` # "
My question is how do I add the current directory to that prompt? Is there a way?
Thanks. (5 Replies)
Discussion started by: kjbaumann
5 Replies
6. Shell Programming and Scripting
hi all, please tell me why this 2 liner script is not working!!
#!/bin/bash
oldps1="$PS1"
PS1="myprompt>"
but when type this in terminal it works!! (7 Replies)
Discussion started by: tprayush
7 Replies
7. Shell Programming and Scripting
Hi,
I want to change the shell prompt, using the cd command.
I have a shell prompt like this -
p78-mfx(dgaw1078/9781)$
Now i do this -
p78-mfx(dgaw1078/9781)$ cd log4j
here the shell prompt should change like this -
p78-mfx(dgaw1078/9781)log4j$ (6 Replies)
Discussion started by: arunkumarmc
6 Replies
8. UNIX for Dummies Questions & Answers
Currently, when I cd to a directory I get the directory path in the command prompt, making it very long. I would like to change it so the path is not displayed.
If I am in directory ~/tatsh/hstmy/test, I just want my prompt to be the last directory name as shown just below
---------- Post... (1 Reply)
Discussion started by: kristinu
1 Replies
9. Shell Programming and Scripting
Hi, i was wondering if it is possible to change the default prompt for the shells that are availble on your system?
For example, i want to change the prompt for the C shell from % to something like ( or ).
Thanks,
Nav. (7 Replies)
Discussion started by: Navs_
7 Replies
10. Shell Programming and Scripting
Need assistance in changing prompt .
Trying to change prompt in csh,tcsh shell . Below are the commands i tried in .cshrc and sourcing this files.
set prompt = "$user@`uname -n` : ${cwd}> "
#above commands works for username and hostname but cwd doesnt change
directories
set... (16 Replies)
Discussion started by: ajayram_arya
16 Replies
LEARN ABOUT SUSE
pam_selinux
PAM_SELINUX(8) Linux-PAM Manual PAM_SELINUX(8)
NAME
pam_selinux - PAM module to set the default security context
SYNOPSIS
pam_selinux.so [close] [debug] [open] [nottys] [verbose] [select_context] [env_params] [use_current_range]
DESCRIPTION
In a nutshell, pam_selinux sets up the default security context for the next execed shell.
When an application opens a session using pam_selinux, the shell that gets executed will be run in the default security context, or if the
user chooses and the pam file allows the selected security context. Also the controlling tty will have it's security context modified to
match the users.
Adding pam_selinux into a pam file could cause other pam modules to change their behavior if the exec another application. The close and
open option help mitigate this problem. close option will only cause the close portion of the pam_selinux to execute, and open will only
cause the open portion to run. You can add pam_selinux to the config file twice. Add the pam_selinux close as the executes the open pass
through the modules, pam_selinux open_session will happen last. When PAM executes the close pass through the modules pam_selinux
close_session will happen first.
OPTIONS
close
Only execute the close_session portion of the module.
debug
Turns on debugging via syslog(3).
open
Only execute the open_session portion of the module.
nottys
Do not try to setup the ttys security context.
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_AUTH_ERR
Unable to get or set a valid context.
PAM_SUCCESS
The security context was set successfully.
PAM_USER_UNKNOWN
The user is not known to the system.
EXAMPLES
auth required pam_unix.so
session required pam_permit.so
session optional pam_selinux.so
SEE ALSO
pam.conf(5), pam.d(5), pam(8)
AUTHOR
pam_selinux was written by Dan Walsh <dwalsh@redhat.com>.
Linux-PAM Manual 06/16/2009 PAM_SELINUX(8)