UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
September
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Our Sponsors

Latest Postings
Owning Servers
by HighLander
Yesterday at 11:59 PM
any way I can get mac os x leopard?
by Gizmo
09/03/08 01:45 PM
WGA - removing windows genuine authentication notice
by Gizmo
09/02/08 04:14 AM
my old account still exists!
by Gizmo
08/19/08 02:27 PM
Topic Options
#46170 - 07/10/08 03:49 PM Pre Login message?
Shinobi Offline
UGN Member

Registered: 09/25/02
Posts: 390
Loc: Asheville, NC
Ok here is a question that I have yet to find an answer to so hopefully you nerds can help me.

I'm planning on using my BSD box for free shell accounts and what I need is for when someone connects via SSH/telnet something along these lines pop up

Welcome to ninjaBSD. If you are a new user please login with new

login:


Only real thing I have found in regards to changing the message is editing the default: line in /etc/gettytab but that didn't seem to work, in ssh anyway, didn't try in telnet/local login situations.


So anyone who knows how this can be accomplished/if it can be please let me know

Oh its freebsd 7.0
_________________________
"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security

Top
Our Sponsors
Sponsor Our Sponsors

Top  
#46179 - 07/11/08 12:37 AM Re: Pre Login message? [Re: Shinobi]
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6933
Loc: Portland, OR; USA
To enable a SSH Banner you'll need to:
  • Create a banner:
    nano -w /etc/ssh/sshd-banner
  • Populate the banner file with:
    Welcome to NinjaShell! (UGN Security was here)
  • Open your SSHd Config:
    nano -w /etc/sshd/sshd_config
  • Add in a line pointing to your banner:
    Banner /etc/ssh/sshd-banner
  • Save the file and restart your SSHd server:
    /etc/init.d/sshd restart
  • Test by logging into server; it should respond:
    Welcome to NinjaShell! (UGN Security was here)
    Gizmo@ undergroundnews.com's password:
_________________________
Donate to UGN Security here.
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#46191 - 07/11/08 01:07 PM Re: Pre Login message? [Re: Gizmo]
Shinobi Offline
UGN Member

Registered: 09/25/02
Posts: 390
Loc: Asheville, NC
will this carry over to say telnet, or will I have to do the samething with telnet
_________________________
"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security

Top
#46192 - 07/11/08 01:32 PM Re: Pre Login message? [Re: Shinobi]
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6933
Loc: Portland, OR; USA
Originally Posted By: Shinobi
will this carry over to say telnet, or will I have to do the samething with telnet
Telnet discloses all text you type and recieve in your session in plaintext; you should disable telnet and force usage of SSH
_________________________
Donate to UGN Security here.
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#46196 - 07/12/08 05:26 PM Re: Pre Login message? [Re: Gizmo]
Gizmo Administrator Offline
Community Owner
*****

Registered: 02/28/02
Posts: 6933
Loc: Portland, OR; USA
BTW, just an FYI; applying a banner for telnet is much the same with the configuration file. On a RedHat Linux (or derivative, such as CentOS, RHEL, or Fedora) machine, it should simply feed out what is in the "/etc/issue.net" file as the Telnet Banner.
_________________________
Donate to UGN Security here.
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#46201 - 07/13/08 08:35 PM Re: Pre Login message? [Re: Gizmo]
Shinobi Offline
UGN Member

Registered: 09/25/02
Posts: 390
Loc: Asheville, NC
I got the banner using round about your method. However it only displays the message after the person tries to login IE:
login: user
Welcome to NinjaBSD! Login with new if new user
password:


in the gettytab man pages it specifies something about using im and if however both are already specified and the if string is currently pointing to the banner. Here is a c&p of my current gettytab

default:\
:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:
:if=/etc/issue:\
_________________________
"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security

Top
#46202 - 07/13/08 08:36 PM Re: Pre Login message? [Re: Shinobi]
Shinobi Offline
UGN Member

Registered: 09/25/02
Posts: 390
Loc: Asheville, NC
i only have 387 posts? wtf?
_________________________
"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security

Top
#46203 - 07/13/08 10:01 PM Re: Pre Login message? [Re: Shinobi]
IceMyst Administrator Offline
UGN Elite Poster

Registered: 10/22/03
Posts: 1449
Loc: Where ever Gizmo is
that's what you get for disappearing shin :P
_________________________
*Hell hath no fury like a womens anger and damn be the fool who gets in her way*

Donate to the "Baby Trey's Digital Camera" fund here .

Top
#46204 - 07/13/08 10:44 PM Re: Pre Login message? [Re: IceMyst]
Shinobi Offline
UGN Member

Registered: 09/25/02
Posts: 390
Loc: Asheville, NC
yeah well.........


wow I joined in 02 that was before either of my kids were born....


Edited by Shinobi (07/13/08 10:45 PM)
_________________________
"The secret to creativity is knowing how to hide your sources."
-Albert Einstein

Tech Ninja Security

Top



Moderator:  Infinite 
Forum Stats
6870 Members
44 Forums
10506 Topics
45252 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6933
UGN Security 3480
§intå× 3250
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
Sparkz, heeheehaahaa, ssploo7, red queen, byopc
6869 Registered Users
Who's Online
0 Registered (), 9 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Sept 03, 2008
by Gizmo
09/04/08 09:37 AM
Update Humpday - Aug 27, 2008
by Gizmo
08/28/08 12:58 AM
Update Humpday - Aug 20, 2008
by Gizmo
08/21/08 01:48 AM
Update Humpday - Aug 14, 2008
by Gizmo
08/14/08 08:33 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!