Operating System - HP-UX
1832984 Members
2647 Online
110048 Solutions
New Discussion

Changing GID for two users in NIS

 
SOLVED
Go to solution
Vishu
Trusted Contributor

Re: Changing GID for two users in NIS

Thanks Ganesan,

SAM worked in this case to just edit the GID for those users. Closing this thread now.

But still does not know how we can achieve this from the Command Line. but after so many posts, i still did not get anything for CLI. I dont know if i could not explain my exact problem to anyone else except Ganesan.

But thanks to all who replied. If someone still has something on it, please reply on it or tell me, i will open a new thread for it.

Thanks
Ganesan R
Honored Contributor

Re: Changing GID for two users in NIS

Hi Ranju,

>>>But still does not know how we can achieve this from the Command Line. but after so many posts, i still did not get anything for CLI.<<<

As for as I know, if you want to do it through CLI you should have the source passwd file. Modify the user attributes and run ypmake command to update the changes to NIS maps. We explained this in previous replies. But in your case, you don't have source file. That's why we recommanded you to do it through SAM.

usermod will not work with NIS users. Read this from useradd man page..

http://docs.hp.com/en/B3921-60631/usermod.1M.html

"The usermod command is aware of NIS user and group entries. Only local users and groups may be modified with this command. Attempts to modify an NIS user or group will result in an error. NIS users and groups must be administered from the NIS server. This command may fail with the error"
Best wishes,

Ganesh.