Solved

su problem in nis environment

Posted on 2003-11-23
7
591 Views
Last Modified: 2013-12-27
Hi Experts,

Recently I had problem in my solaris system, to recover that I had restored the data from the backup (netbackup).

What I did:

I kept this problem system's harddisk in another solaris system. Formated the system, Created partitions as it has earlier. Mounted these partitions on the system with some names (Ex: "remoteroot" and "remotevar"). These are the two slices available in old system.
I had restored the data back onto these system from backup.

I could able to boot the system successfully. But when I try to login as a ordinary user(without root privleges), I got error msg " no shell. Some how I fixed it (The user was having tcsh shell, which was pointed to a different location).

The system is an NIS slave server.

I did try to do an NIS slave server setup on the system by using the command > ypinit -s servername.

I could able to login to the system with the account in nis environment but could not change to root using su.

Please help.

Thanks,
Rajesh
0
Comment
Question by:avrajesh_99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9808544
could u login as a root directly without logging first as a nis user.

can u login with any other normal user on the system and then do su and get the root access.
0
 
LVL 1

Author Comment

by:avrajesh_99
ID: 9809441
Hi,

One more input.

I am able to login using the NIS user ID's into the system. but when i try to su - to root i get the error as "su: sorry".

Thanks,

Rajesh
0
 
LVL 1

Author Comment

by:avrajesh_99
ID: 9809459
Hi Shivsa,

Yes, I could login to the system using root, from console. But when I login as NIS user and then when i change to su - I could not able to login .. the system throws an error "su: sorry"

Thanks,

Rajesh
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 24

Accepted Solution

by:
shivsa earned 100 total points
ID: 9809492
This is nis security issue.

check the permission on /usr/bin/su. is it 4750. change it to work with u.
check the group for /usr/bin/su /sbin/su.static, if u are not in that group, u can not run su.

0
 
LVL 1

Author Comment

by:avrajesh_99
ID: 9809530
I could able to resolve the problem myself.

Thanks a lot.

You can close the issue.

Rajesh
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9809557
Hi Rajesh,

good u got it.
U can accept the answer and award points.
and close the question.


0
 
LVL 24

Expert Comment

by:shivsa
ID: 9811857
Good to know you got the issue resolved. You can close the question by following this guidelines:

http://www.experts-exchange.com/help.jsp#hs5
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question