?
Solved

su problem in nis environment

Posted on 2003-11-23
7
Medium Priority
?
593 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 300 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

771 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