UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old January 14th, 2005, 01:49 PM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
Solaris banners

Hi

I want to restrict warning banner message only to user logins on to our servers which is done using SSH. Once after logging as user the banner should be displyed and not when use 'su' to become root. I know how to store the banner message in /etc/issue and /etc/motd files.

Your help is appreciated.

Reply With Quote
  #2  
Old January 16th, 2005, 05:41 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 49 m 57 sec
Reputation Power: 9
Quote:
Originally Posted by chrs0302
Hi

I want to restrict warning banner message only to user logins on to our servers which is done using SSH. Once after logging as user the banner should be displyed and not when use 'su' to become root. I know how to store the banner message in /etc/issue and /etc/motd files.

Your help is appreciated.


the dotfiles are concerned, not ssh
in the dotfiles you can define what happen on login
ssh is a login session
su not
su - is also a login session (note the - )

Reply With Quote
  #3  
Old January 17th, 2005, 12:59 PM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
Solaris banners

Hi guggachj

Can you pl tell me in which file I have to make the changes to ensure that the banner is displaed only just after logging and not while using 'su'.

Thanks

Reply With Quote
  #4  
Old January 17th, 2005, 04:47 PM
stdunbar stdunbar is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2004
Location: Superior, CO, USA
Posts: 1,677 stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level)stdunbar User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 3 h 59 m 46 sec
Reputation Power: 301
Send a message via ICQ to stdunbar Send a message via Yahoo to stdunbar
According to the man page sshd will, by default, cat the contents of /etc/motd (see the PrintMotd option). This would not normally be printed by someone just doing an su, though it would be by someone doing an "su -" as guggach indicated.

The newest implementation of sshd available from OpenSSH includes a Banner option. You can take a look at the man page for it to get an idea of how to use this.
__________________
Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.

Reply With Quote
  #5  
Old January 27th, 2005, 12:04 PM
chrs0302 chrs0302 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 43 chrs0302 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 30 sec
Reputation Power: 4
Solaris banners

Hi stdunbar

Your response is interesting. We are ok with our Sun Fire V65 Intel systems. The issue is with Sparc. In that again we are ok with SunFire 280. The second Sparc which is an Ultra 5/10 is displaying the banner both at user login and su. I have commented out the concerned line in /etc/ssd/sshd_config of Ultra 5/10 and the file is simialr to that one on SunFire 280.Still the banner is displayed.

Any clues.

Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Solaris banners


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway