krisse13
asked on
NIS - possible to extend group membership locally
Hello experts,
let's pretend there is a Solaris-box (5.7) which gets logon-information via NIS from a server where I don't have root-access.
Is it possible to extend group membership locally - where I have root-access?
E.g. asking NIS, "user1" is in "group1".
I want him to be in "group1" AND -locally- in "group2" .
Trying "usermod -G group1,group2 user1" brings "user1 does not exist".
If I try to "useradd user1" on the local machine it says "already in use".
I hope you get my point and have an idea how to solve this.
Many thanks in advance, krisse.
let's pretend there is a Solaris-box (5.7) which gets logon-information via NIS from a server where I don't have root-access.
Is it possible to extend group membership locally - where I have root-access?
E.g. asking NIS, "user1" is in "group1".
I want him to be in "group1" AND -locally- in "group2" .
Trying "usermod -G group1,group2 user1" brings "user1 does not exist".
If I try to "useradd user1" on the local machine it says "already in use".
I hope you get my point and have an idea how to solve this.
Many thanks in advance, krisse.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually, you can edit /etc/nsswitch.conf
-----
passwd: files nis <=== take out nis
group: files nis <== take nis
----
And use "usermod".
Then put "nis" back.
Wesly
-----
passwd: files nis <=== take out nis
group: files nis <== take nis
----
And use "usermod".
Then put "nis" back.
Wesly
ASKER
I thought that if usermod can't do that, there would be no effect in editing /etc/group by hand. I was wrong.
Thank You, Wesly.