Solved

su problem in nis environment

Posted on 2003-11-23
7
585 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now