How to enable "banner" for a user in solaris?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to enable "banner" for a user in solaris?
# 1  
Old 02-10-2012
Question How to enable "banner" for a user in solaris?

Password:
Using keyboard-interactive authentication.
Do you agree with the banner terms (y/n)?: y


# 2  
Old 02-10-2012
You can add this condition in your default profile file(~/.profile or ~/.kshrc or ~/.cshrc)
Since when the user login profile gets executed.
This User Gave Thanks to kalpeer For This Post:
# 3  
Old 02-10-2012
The "banner" should show up after typing the password. Anyone could help adding the condition to (~/.profile or ~/.kshrc or ~/.cshrc ).

Adding condition to above files, is it a temporary one ( or ) permanent one
# 4  
Old 02-10-2012
# 5  
Old 02-10-2012
Be careful that you stop the user just escaping at this point by pressing CNTL-C or CNTL-Z. Usually an stty -isig can acheive this, but, of course, it may affect later functionality. You can turn it back on with stty isig

We acheived this by adding the following to /etc/profile:-
Code:
GROUP=`id -gn`
[ -f /usr/local/bin/$GROUP.startup ] && . /usr/local/bin/$GROUP.startup

This allows you to set up processing based on primary group. You could introduce a loop looking at all groups by changing it to id -Gn but that may produce unwanted results I suppose if people with more groups run several startup scripts and the order may not be predictable.

You will have to check the output of id for you operating system as this can vary.



Robin
Liverpool/Blackburn
UK

Last edited by rbatte1; 02-10-2012 at 06:43 AM.. Reason: Spelling and adding another option
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. AIX

How to enable "TCP MD5 Signatures" and "https" on AIX?

I have searched many times but nothing found. Somebody help please :(:(:( (1 Reply)
Discussion started by: bobochacha29
1 Replies

3. Solaris

Printer configuration Migration from Solaris 10 "LP" to Solaris 11 "CUPS"

Need to find a way to import an LP printers.conf file to CUPS. I have some new Solaris 11.1 boxes that need to have 300 printers added. (0 Replies)
Discussion started by: os2mac
0 Replies

4. UNIX for Dummies Questions & Answers

What is the significance of sh -s in ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh?

Please can you help me understand the significance of providing arguments under sh -s in > ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Discussion started by: Sree10
4 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Red Hat

how to turn off the banner "SSH-2.0-OpenSSH_5.2"?

how to turn off the banner "SSH-2.0-OpenSSH_5.2"? I am using RedHat Advanced Server 4 #telnet localhost 22 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. SSH-2.0-OpenSSH_5.2 (3 Replies)
Discussion started by: vishwanathhcl
3 Replies

7. AIX

boot process stuck on "Welcome to AIX" banner

Good afternoon, I'm currently working on an IBM 9110-510, with an AIX 6.1 on it. Currently, I've put an HyperTerminal on the machine vty0. Folowing the procedure given by a support guy(§details), I'm able to get to the AIX banner ... (6 Replies)
Discussion started by: nilleb
6 Replies

8. Shell Programming and Scripting

communicating wth another user aside from "wall" and "write"

Hi, Can anyone suggest a Unix command or c-shell algorithm to simulate to behavior of "wall" command minus the "all users"? What I'm trying to do is to send a notice to just one particular user but i dont want other remotely-logged-on users to receive the message (on the pseudo-terminals). I... (6 Replies)
Discussion started by: Deanne
6 Replies

9. AIX

Any way to get User Summary in AIX like "prstat -t" in Solaris

Hi Friends, Is there any command in AIX that can give me a summary of the users like we obtain by using "prstat -t" in Solaris? Request your help. Regards, Aeby Samuel. (4 Replies)
Discussion started by: aeby.samuel
4 Replies
Login or Register to Ask a Question