Unix Technical Forum

Re: login: ROOT LOGIN ttyp0 from xxx

This is a discussion on Re: login: ROOT LOGIN ttyp0 from xxx within the comp.unix.solaris forums, part of the Solaris Operating System category; --> In comp.unix.solaris cljlk <cljlk@hotmail.com> wrote: > I have Sparc 20 with SunOS4.1.4. Hi! Exitcodevaluement! > Anyone remote login to ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 02:55 PM
Anthony Mandic
 
Posts: n/a
Default Re: login: ROOT LOGIN ttyp0 from xxx

In comp.unix.solaris cljlk <cljlk@hotmail.com> wrote:
> I have Sparc 20 with SunOS4.1.4.


Hi! Exitcodevaluement!

> Anyone remote login to the machine as root, on the screen
> will show "login: ROOT LOGIN ttyp0 or ttyp2 from xxxx"


> How do I prevent it ?


Let me ask SPOCK'S BRAIN!

"Uncomment the line CONSOLE=/dev/console in /etc/default/login."

Just kidding, I knew that one myself!

> Thanks in advance.


Youz welcome!

-am © 2003
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 02:55 PM
Anthony Mandic
 
Posts: n/a
Default Re: login: ROOT LOGIN ttyp0 from xxx

In comp.unix.solaris cljlk <cljlk@hotmail.com> wrote:
> SunOS does not has /etc/default/login file, the /etc/default/login only
> exists in Solaris.


DOH!!! It's not SPOCK'S BRAIN's fault, I didn't notice the
4.1.4 part to tell him.

Tony Walton wants to know why you are running 4.1.4.

>
> I need to let user login as root, and the message sould to to consol window.


Okay, I don't remember if there's a system way to do it.

Ogg died and willed me no manuals.

Also, you have stated BOTH

a) I don't want to allow direct remote root login
b) I need to allow direct remote root login

If you want #a:

Here's a script way to do it. IIRC, I was never able to
CTL/C out of it to a shell at the right time to get a
root prompt. Try it yourself.

Assuming you're running a Bourne shell, edit this into
the top of /etc/profile:

trap "trap '' 0 1 2 3;exit 1" 0 1 2 3
uid=`id|sed 's/(.*//'`
if [ "$uid" = "uid=0" -a `tty` != "/dev/console" ]
then
echo "Root logins are only permitted on the console"
exit
fi
unset uid


When you need to su to root, use "su" instead of "su -".

And check/test/hack with /etc/syslog.conf to get the
logging you want.

-am © 2003

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 02:55 PM
Rich Teer
 
Posts: n/a
Default Re: login: ROOT LOGIN ttyp0 from xxx

On Thu, 28 Aug 2003, cljlk wrote:

Please don't top post.

> I need to let user login as root, and the message sould to to consol window.
> Please help. Thanks.


Why does your user need to login as root, as opposed to
using su? Network root logins are a security no-no. If
you open a terminal console, the console message should
appear there.

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 02:57 PM
Thom
 
Posts: n/a
Default Re: login: ROOT LOGIN ttyp0 from xxx

In article <Pine.GSO.4.44.0308282224500.1882-100000@zaphod>,
rich.teer@rite-group.com says...
> On Thu, 28 Aug 2003, cljlk wrote:
>
> Please don't top post.
>
> > I need to let user login as root, and the message sould to to consol window.
> > Please help. Thanks.

>
> Why does your user need to login as root, as opposed to
> using su?


Why are you answering his question with an unrelated question? You are
one of those assholes who creates more problems instead of solving
problems that already exist. God, how I hate those people.

PLONK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 02:58 PM
Rich Teer
 
Posts: n/a
Default Re: login: ROOT LOGIN ttyp0 from xxx

On Sat, 30 Aug 2003, Thom wrote:

> Why are you answering his question with an unrelated question? You are


A good consultant finds out what his customers' real needs are,
which aren't necessarily the same as the questions they ask.
For example, a person asking how to enable remote root logins
may not have heard of the su command. And the only way to find
that out is to ask questions that fools like you think are
unrelated to the original question.

There may be a solution to the OP's problem that doesn't require
the security of the system to be compromised.

--
Rich Teer, SCNA, SCSA

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-05-2008, 02:58 PM
Anthony Mandic
 
Posts: n/a
Default Re: login: ROOT LOGIN ttyp0 from xxx

In comp.unix.solaris Thom <thomas@sv.dmn> wrote:
> rich.teer@rite-group.com says...
> > On Thu, 28 Aug 2003, cljlk wrote:
> >
> > Please don't top post.
> >
> > > I need to let user login as root, and the message sould to to consol window.
> > > Please help. Thanks.

> >
> > Why does your user need to login as root, as opposed to
> > using su?

>
> Why are you answering his question with an unrelated question? You are
> one of those assholes who creates more problems instead of solving
> problems that already exist. God, how I hate those people.
>
> PLONK


Rich is a real troublemaker around here. < giggle >

BTW, Rich, direct root login as a specific user-root instance is secure.

-am © 2003
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:07 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com