Solved

su problem in nis environment

Posted on 2003-11-23
7
588 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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…
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…
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…
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.

831 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