Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

su problem in nis environment

Posted on 2003-11-23
7
Medium Priority
?
595 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
Technology Partners: 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

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!

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

636 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