tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: invisible!sycmail!javier () Sunmexico ! Sun ! COM
To: tru64-unix-managers
Subject: SUMMARY: su - problem 1/2
Date: Wed, 01 Mar 1995 12:34:35 +0000	[thread overview]
Message-ID: <96075318306346.tru64-unix-managers.marc@archive.invalid> (raw)

My original mail said...


--- Begin Included Message ---
Hi managers:

One stupid client was playing with /etc/passwd, suddenly appeared
like this on the line of root...

root:p7maek5FS2i6I:0:1:system PRIVILEGED account:/:/usr/bin

so when he tried to "su -" the answer was "no shell", so I booted
Single user and modified the /ettc/passwd manually and appeared
like this...

root:p7maek5FS2i6I:0:1:system PRIVILEGED account:/:/usr/bin/ksh

the result was the same.  Even if I tried to login at the console
as root, the answer was "root login refused on this terminal.".

So I repeated the procedure to change from /usr/bin/ksh to
/bin/sh, the result was the same.
I checked the file permissions on sh and ksh and look normal to me

% ls -l /usr/bin/ksh /usr/bin/sh 
-rwxr-xr-x   1 bin      bin       278528 Aug  8  1994 /usr/bin/ksh 
-rwxr-xr-x   2 bin      bin       139264 Aug  8  1994 /usr/bin/sh 

my /etc/inittab looks like this

cons:1234:respawn:/usr/sbin/getty console console vt100 

my /etc/securettys looks like this

/dev/console 
local:0          
:0

Do I need to do an extra configuration, or modify something else?

How can users can login to root even if they are not on the 
console?

Thanx in advance, I'll appreciate any idea.
--- End Included Message ---

Yes, I had /etc/passwd.dir and /etc/passwd.pag, and what I did...

# mkpasswd /etc/passwd

Instead of using "vi /etc/passwd" and then mkpasswd, it's better
to use "vipw".

Thanx to:

Dave Cherkus		Ofer Gan		John Kinsella
Danny Mitzel		Lionel Provost		Knut Helleboe
Lars Machenill		Sam Sarasin		Bob Sloane
Paul E. Rockwell	Mike Godsey		Thomas P. Blin
Dave Dittrich

THIS IS A GREAT MAIL LIST!


 ########################    Javier Scanlan Sierra
##-------------------------  Sistemas y Computadores
##-----%%%%%----%%%%%%-----  de Gestion, S.A. de C.V.
##----%%---%%--%%%---------  Technical Support Manager DEC Division
##----%%%%%-%%%%%%---------  Av. Revolucion #2042-8th. Floor, San 
Angel
##-------%%--%%-%%---------  Mexico, D.F. 01090,  Tel. 550-0740
##----%%%%---%%--%%%%%-----  e-mail:
##-------------------------  
invisible!sycmail!javier@Sunmexico.Sun.COM
 ########################
                             "God gave ROCK 'N' ROLL to you..."
                                                   Rod Argent.

                 reply	other threads:[~1995-03-01 12:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox