From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075318306346.tru64-unix-managers.marc@archive.invalid> From: invisible!sycmail!javier () Sunmexico ! Sun ! COM Date: Wed, 01 Mar 1995 12:34:35 +0000 To: tru64-unix-managers Subject: SUMMARY: su - problem 1/2 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075318306346 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.