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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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 |
| ||||
| 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 |