Forum Discussion

Kathe_F's avatar
Kathe_F
Level 3
10 years ago
Solved

Netbackup User and Groups - how to create a flat file

Hi..

 Is there a way to create a flat file for the users and groups before I start cleaning up user and groups.

I'd like to create a flat file in the event I will need to restore the users and groups. Please advise how to do this. Thank-you!

 

~kate

7 Replies

  • Hi Kate, could you explain in a bit more detail what the problem is, plus, why you think you need to do what it is that you need to do, please?

    What are these users and groups?

  • You have mentioned operating system as Windows 7...So is this w.r.t to Windows Users and Groups.. if you are doing full back up your Win 7 system.. I think you should be good...but looks to me your query might be outside netbackup

  • Open command prompt.

    For groups:

    net localgroup "Groupnamehere" >> C:\temp\groups.txt

    Repeat for every group.

    For users:

    net user "Usernamehere" >> C:\temp\users.txt

    Repeat for every user.

  • Hi Everyone, Thank-you for your response.

     

    In NBU 7.6.1 -- we have user and groups in NBU Access Management environment.

    Before I delete any NBU users or Groups, is there a way to export to a flat file to user and groups so in the vent I mess up I can re-import them.

     

    I've attach a jpg file. Please advise. Thank-you!

     

  • NBAC users & groups?

    Click the right-hand pane, Ctrl-A to highlight all the users, Ctrl-C to copy, then Ctrl-V to paste into text file. Then do the same for groups.

     

    180px_groups_0.png

     

     

     

  • There is no such command that you could do export/import, however, there are a couple of commands that can be used to direct permissions to a readable form.

     

    Run on command prompt:

    For groups:

    bpnbaz -ListGroups > C:\temp\nbac_groups.txt

    For users in a group:

    bpnbaz -ListGroupMembers GroupNameHere > C:\temp\nbac_group_xyz.txt

    For permissions:

    bpnbaz -ListMainObjects > C:\temp\nbac_permissions.txt