- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing GID for two users in NIS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 09:23 PM
тАО07-29-2009 09:23 PM
Re: Changing GID for two users in NIS
You should be having the source passwd file somewhere on the server. You can find it.
#find / -name -type f passwd* -print
Have you tried via SAM? I hope that you can do through SAM as well. Goto SAM->users and groups -> NIS users -> select the user -> actions -> modify the group membership.
Unfortunately I am not sitting infront of NIS server now, to test it for you.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2009 09:55 PM
тАО07-29-2009 09:55 PM
Re: Changing GID for two users in NIS
Uh, perhaps something more like this?:
find / -name 'passwd*' -type f -print
But that assumes some things which may not be
true.
If the source file is really lost, then
"ypcat passwd" might be a good way to start
its reconstruction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2009 12:27 AM
тАО07-30-2009 12:27 AM
Re: Changing GID for two users in NIS
one more try - a NIS server doesn't *copy* the users to the clients - at least not at my systems!
A client passwd has a '+' at the end, so the ws knows, that there are more users at the NIS server.
In your case: If the user doesn't exist at the NIS server, then he is not a global user, but a local user.
Then you have to change the usergroup at every client where the user exists - btw. that's the sense of NIS to do it only at one place.
When the group already exists, then you can edit the passwd file with 'vipw /etc/passwd'.
Change the group id of the user from 500 to 501 - that's all. The group id is after the third ':'. About vipw check the man pages too.
Can you tell us the output of 'ypwich' at workstation 1 and ws 2?
V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2009 08:03 AM
тАО07-30-2009 08:03 AM
Re: Changing GID for two users in NIS
I just checked. You can modify the group membership for NIS users via SAM as well.
Goto SAM -> Accounts for user and groups -> NIS users -> select the user -> Actions -> modify -> Primary group -> change here
Once you modify, you can run yppush on master or ypxfr on slave servers to propagate the changes to slave servers.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2009 09:41 AM
тАО07-30-2009 09:41 AM
Re: Changing GID for two users in NIS
> for NIS users via SAM as well.
And what, exactly, does "sam" do? If the
answer is "modify /etc/passwd" on the NIS
master server, then will it "work" as desired
in this case?
Are you talking about running "sam" on the
NIS master server, or will this "work" from
anywhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2009 10:10 AM
тАО07-30-2009 10:10 AM
Re: Changing GID for two users in NIS
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2009 07:06 PM
тАО07-30-2009 07:06 PM
Re: Changing GID for two users in NIS
>>>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"
Ganesh.
- « Previous
- Next »