Operating System - OpenVMS
1823143 Members
3575 Online
109647 Solutions
New Discussion юеВ

duplicate name error in rights database when I add identifier

 
SOLVED
Go to solution
stevec123
Occasional Contributor

duplicate name error in rights database when I add identifier

Hi,

I have a username called "smsc"

I want to modify the system prompt from

PA41:[100,1]>

to.....

PA41:smsc>

I attempted the following to update the user identifier to a text value, hoping that it would appear in the prompt on login

UAF> add /identifier /user=[100,1]
%UAF-E-RDBADDERRU, unable to add SMSC value [000100,000001] to rights database
-SYSTEM-F-DUPLNAM, duplicate name


When I run the following two commands I noticed that the UIC numbers are not consistent .


SYSTEM> mc authorize show smsc
Username: SMSC Owner:
Account: UIC: [100,1] ([100,1])


UAF> show smsc /identifier
Name Value Attributes
SMSC [000100,177777]


Anyone have any idea what is happening here and how I can rectify it. I think its something to do with the rights database not being consistent with the sysuaf file?!??!

Very much appreciated
Steve
3 REPLIES 3
Daniel Fernandez Illan
Trusted Contributor
Solution

Re: duplicate name error in rights database when I add identifier

Hi
The value SMSC [000100,177777] indicates that this identifier has been defined as:
UAF>add/id smsc/val=uic:[100,*]

Generally to indicates a user group.

To solve this problem yo can remove this identifier and after add this new.
UAF>add/id smsc/val=uic:[100,1]


For the system prompt you can use on login.com this command:

$prompt="PA41:"+f$edit(f$getjpi("","username"),"collapse")+">"
$set prompt='prompt'
Jan van den Ende
Honored Contributor

Re: duplicate name error in rights database when I add identifier

Steve,

to start with:

Welcome to the ITRC VMS forum!

A number of issues have apparently come together here.

1) UAF> show smsc /identifier
Name Value Attributes
SMSC [000100,177777]

so, SMSC is the NAME (identifier for) the UIC _GROUP_ 100

You can verify this by
UAF> SHO /IDENT/VALU=UIC:[100,*]
-- the value for "*" is represented by the member high_value.

So, (barring explicitly specified entry) the FIRST username you entered with group UIC 100 was specified for ACCOUNT SMSC.
-- IF a user is added to a not-yet-populated group, AND an account name is specified, which is NOT yet an identiefier name, THEN the identifier is added, with RESOURCE attribute, and UIC-format value [
2) If a username is added, with an unused UIC, AND A NAME THAT IS NOT YET AN IDENTIEFIER, then that username is entered as identifier, with the UIC as value.
(If an existing UIC is used, by default the UIC identifier gets renamed to the new username. Can be overridden by /NOADD_IDENT)

3) you start your question with:

I have a username called "smsc"

I want to modify the system prompt from

PA41:[100,1]>


Obviously you somehow set the promt to the user identification (I guess PA41 is your nodename? Not that important for this discussion though)

You need to find out HOW you get this value in. I CAN think of some ways, but none are as simple as

$ node=f$getsyi("nodename")
$ user=f$edit(f$getjpi("","username"),"trim")
$ set prompt="''node'''user'>"

(to distinguish double quotes and apostrophies is the Forum rendering, please cut-&-paste into any non-proportional font, eg EDT, or even Notepad)

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
stevec123
Occasional Contributor

Re: duplicate name error in rights database when I add identifier

Thank you for the detailed responses. Its made it an awful lot clearer. By removing the identifier and adding it again . It worked !

Kind Regards
Steve