Re: NIS+ User addtion
From: bgp (bgpark_at_boao.re.kr)
Date: 09/09/03
- Next message: Sean Burke: "Re: JNI problem on Solaris 9"
- Previous message: Logan Shaw: "Re: Lack of UNIX jobs (UK)"
- In reply to: Peter Bunclark: "Re: NIS+ User addtion"
- Next in thread: Neil W Rickert: "Re: NIS+ User addtion"
- Reply: Neil W Rickert: "Re: NIS+ User addtion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 10 Sep 2003 02:34:04 +0900
Thanks, but still I fail adding a new user.
Here I describe in more detail by copying
the commands and responses:
1. Adding new entry to password table (on the master server)
# echo "guest:*:901:900:Guest:/home/guest:/bin/tcsh" | nisaddent passwd
# nisclient -c guest
You will be adding DES credentials in domain aaa.bbb.ccc. for
guest
** nisclient will not overwrite any existing entries in the
** credential table.
Do you want to continue? (type 'y' to continue, 'n' to exit this
script) y
checking aaa.bbb.ccc. domain...
checking cred.org_dir.aaa.bbb.ccc. permission...
adding LOCAL credential for guest...
adding DES credential for guest...
Enter guest's login password:
Retype password:
Adding key pair for unix.970@aaa.bbb.ccc (guest.aaa.bbb.ccc.).
For all new NIS+ users added, you will need to update
their keys on all machines that they are currently logged
in by running keylogin(1), chkey(1), or nisclient(1M).
2. Now I tried to login to the client (or master server) using the new id.
# telnet server
login: guest
Choose a new password.
This password differs from your secure RPC password.
Please enter your old Secure RPC password:
This password does not decrypt your secure RPC password.
Please enter your old Secure RPC password:
New Password:
Re-enter new Password:
Connection closed by foreign host.
(Whatever password I type in cause the same error message.)
On the system messages file, the error message reads:
server login: [ID 865497 auth.error] Couldn't create a
D-H key-pair (len = 192, type = 0)
server login: [ID 376080 auth.crit] change password
failure: Authentication token can not be recovered
3. I tried to assign a new password for the user on master server.
# passwd guest
New Password:
Re-enter new Password:
Permission denied
Again, the system messages file adds the following errors:
server passwd[8211]: [ID 985563 user.alert] User has no NIS+ password
entry
server passwd[8211]: [ID 893259 user.alert] Failover to old protocol
server nisd[235]: [ID 130461 daemon.error] nislib:get_group() object
"fns_admins.aaa.bbb.ccc.aaa.bbb.ccc." lookup failed.
server nisd[235]: [ID 930059 daemon.error] nislib:get_group reason: Not
Found, no such name.
server nisd[235]: [ID 244599 daemon.error] lookup failure on group
"fns_admins.aaa.bbb.ccc.aaa.bbb.ccc." from object
"passwd.org_dir.aaa.bbb.ccc."
server passwd[8211]: [ID 989686 user.error] NIS+ password information
update failed
Could you figure out what's the problem? Please forgive me for changing
some information in the list (domain name & time information).
cheers,
bgp
Peter Bunclark wrote:
>
>
> bgp wrote:
>
>> Thanks for reply.
>>
>> I used solstice (AdminSuite 2.3) when the system was 2.6, but
>> now I do not have one. Furthermore, Sun does not provide
>> AdminSuite any more. Instead, they use smc (Solaris Management
>> Console) 2.0 but when I tried to use it I only found it is
>> so much buggy.
>>
>> On the command line, 'nisclient' script could be a solution, but
>> I also failed with the command. As you may know, 'nisclient -u'
>>
> Use nisclient -c to create the user's credentials.
> Pete.
>
>> is for the existing local user who wants to add himself to NIS+
>> name space. My problem is the very addition of the user for the
>> first time. If I add a user as a local user and then run
>> 'nisclient -u' as the user, the system complains that there is
>> no credential information for that user. --- if I try to
>> add the user to 'cred' table, then the system says that
>> there is no such user in the password table. Dilemma.
>>
>> What I really want to know is why the 'passwd guest' fails
>> with 'permission denied' even though I am Superuser.
>>
>> cheers,
>> bgp
>>
>> Peter Bunclark wrote:
>>
>>
>>> bgp wrote:
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>> I am administering NIS+ under Solaris 8.
>>>> Is there anybody who knows how to add a new user
>>>> to the NIS+ database? I guess there is some change
>>>> after Solaris 2.6. Here is the sequence I think
>>>> is correct, but it fails.
>>>>
>>>> # nistbladm -a name=guest uid=901 gid=900 gcos=Guest
>>>> shell=/bin/tcsh home=/home/guest passwd.org_dir
>>>>
>>>> # passwd guest
>>>> New Password:
>>>> Re-enter new Password:
>>>> Permission denied
>>>>
>>>> When my master server was Solaris 2.6, the above 'passwd'
>>>> command was no problem, and after that I added the user to
>>>> cred table and configure auto_home and mail_aliases, etc.
>>>>
>>>> However, now that the server has beed upgraded to Solaris 8,
>>>> even changing password for existing user fails with "Permission
>>>> denied" error message.
>>>>
>>>> Is there anybody who can figure out what is going wrong and
>>>> show me how to add user (and change password for exisiting users)?
>>>>
>>>> cheers,
>>>> bgp
>>>>
>>>>
>>>>
>>>>
>>>
>>> I must admit to using solstice to add users, but don't you need to do
>>> a nisclient to add the credentials?
>>>
>>> Pete.
>>>
>>>
>>
>>
>>
>>
>
- Next message: Sean Burke: "Re: JNI problem on Solaris 9"
- Previous message: Logan Shaw: "Re: Lack of UNIX jobs (UK)"
- In reply to: Peter Bunclark: "Re: NIS+ User addtion"
- Next in thread: Neil W Rickert: "Re: NIS+ User addtion"
- Reply: Neil W Rickert: "Re: NIS+ User addtion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|