Telnet group config ??

I use Unix system V 5.5.1 and have the problem with telnet.

Problem is :
I have rights for sysadmin , but when i use telnet , and connect to server, i cann't use command "su" ?Also i cann't login as root , the password that i suplay is correct , why??

How i can change this ?
Mariner080498Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mpassCommented:
You say you have Unix system V 5.5.1. Is this Solaris 2.5.1? If it is, you need to edit the /etc/default/logins file. It's pretty well documented, so you should be able to comment out or uncomment what you want. If it's not a Solaris system, please reject my answer so someone else can try. Hope this helps.
0
Mariner080498Author Commented:
Yes you are right I use Solaris. But your explanation in not full.
I have concret question and need full answer.

This is file /etc/default/login
what i shoud do with it ? Outcomment #SUPATH=/usr/sbin:/usr/bin ?

$ view /etc/default/login
#ident  "@(#)login.dfl  1.7     93/08/20 SMI"   /* SVr4.0 1.1.1.1  */

# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.
#
#CONSOLE=/dev/console

# SUPATH sets the initial shell PATH variable for root
#
#SUPATH=/usr/sbin:/usr/bin

Regards Mariner
0
struyfsjCommented:
Could you state the error messages you get in attempting to log in?
Can you login as regular user with telnet?
You should be able to login as root on the server because the CONSOLE variable is not set in /etc/default/login

JS
0
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

Mariner080498Author Commented:
Yes i can login as a regular user with telnet.
I set CONSOLE variable , and now i can login as root with telnet.
but when i type :
  SU
i get message :
"Unknown id: root"

i apply fragment from file /etc/default/su :

# SULOG determines the location of the file used to log all su attempts
#
SULOG=/var/adm/sulog

# CONSOLE determines whether attempts to su to root should be logged
# to the named device
#
#CONSOLE=/dev/console

# PATH sets the initial shell PATH variable
#
#PATH=/usr/bin:

# SUPATH sets the initial shell PATH variable for root
#
SUPATH=/usr/sbin:/usr/bin:/etc
                                   

i set SUPATH but this have not effect.

Any sugestions ?

Regards Mariner
0
struyfsjCommented:
Can you login as root on the console of the server?
I think that the entry for root has disappeared in /etc/passwd (also check /etc/shadow if you have one)
Normally you can read /etc/passwd as regular user but you can not change it without being root.
You will have to boot from the cdrom and mount the root filesystem on /a.  Then edit /a/etc/passwd to add the root entry.

JS
0
Mariner080498Author Commented:
Yes i can login as root from console and from any other remote terminal !

the root record in passwd file is ok.
and look like :

"passwd" [Read only] 60 lines, 3638 characters
root:x:0:0:Super-User:/:/sbin/sh

shadow file is ok also.
0
struyfsjCommented:
Execute : ls -ald `which su` and post the output.
The eprmissions should be : -r-sr-xr-x    1  root sys

JS
0
Mariner080498Author Commented:
yes result is :

-r-xr-xr-x   1 root     sys        15820 May  3  1996 /usr/bin/su
0
struyfsjCommented:
do : chmod u+s /usr/bin/su as root

This will probably solve your problem

JS
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mariner080498Author Commented:
Thank you struyfsj

This realy solve my problem !

i increase point to 150 for you !


With best regards Mariner
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.