1833777 Members
2212 Online
110063 Solutions
New Discussion

SAM user account

 
SOLVED
Go to solution
Teck Sim
Frequent Advisor

SAM user account

I don't know what the terminology for my problem, but apparently, users whom I created through SAM, not only can access to A server of which I created through SAM, but they also can log in to other servers even though they have no home directory there.

I log on to SAM on "A" server, and clicked on NIS Users to create a new user. I click on Option, and Add, and also create default home directory. Default start up program is /usr/bin/sh, and set the password, and click OK.
The following message appears "One of more changes were made in the Users and Groups area that will result in changes to the NIS maps", and I clicked YES.

Now, when I go to another server "B", and I can log in and move around the operating system without a home directory, and I am able to create a file or something.

Is there any way I can restrict any access to other server except the server "A" where I ran SAM to create this user?

Thanks in advance.

Teck.

10 REPLIES 10
Jeff Machols
Esteemed Contributor

Re: SAM user account

you need create a local user, not an NIS user
Helen French
Honored Contributor

Re: SAM user account

hey,

Once you enter the User window in SAM, select "local users" instead of "NIS users". This will create a local user for ur system.

HTH,
Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor
Solution

Re: SAM user account

Hi Teck,

Try this link,

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=c9ceb685031c3cbd5e/screen=ckiDisplayDocument?docId=200000026600846

Alternately you can add a user as local user and not as NIS user. For that the user entry should be available onlt in the /etc/passwd file of that system and not in the password map of NIS.

Hope this helps.

regds
Teck Sim
Frequent Advisor

Re: SAM user account

1)I only have Group and NIS users icons in SAM.

2)I created a test.sh with the work around code:
if [ ! -d $HOME ]
then
echo "Cannot cd to $HOME....exiting"
echo "exit"
fi

but it didn't exit or log out the user.

3)Which .profile should I edit?

Please help.
Thanks.

Teck
Jeff Machols
Esteemed Contributor

Re: SAM user account

you can put it in /etc/profile (no dot). you can create a local user by running the useradd command.
Helen French
Honored Contributor

Re: SAM user account

hey,

U can create local user with 'useradd' command. It will create a local user.

see man useradd

HTH,
Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: SAM user account

Hi Teck,

This should be done in /etc/profile

Hope this helps.

Regds
Teck Sim
Frequent Advisor

Re: SAM user account

Since all my user accounts (more than 100) were created in NIS users in SAM in Server A, is there anyway at all I can log out users from entering to other servers?
I have try the work around script, and edited in /etc/profile, and it doesn't not log out users from entering to the server, like the OS level.
Anyone can help?

Thanks.
Steve Miller_4
Occasional Advisor

Re: SAM user account

Your test script has:

echo "exit"

instead of just:

exit

Try putting it in /etc/profile. It should work just fine. I just tested it.

Good luck,
Steve
Technology is only as good as those that know how to use it.
Teck Sim
Frequent Advisor

Re: SAM user account

Thank you so much to all. Everything is working just fine now.
Have a wonderful holiday!