cancel
Showing results for 
Search instead for 
Did you mean: 

Netbackup User and Groups - how to create a flat file

Kathe_F
Level 3

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

1 ACCEPTED SOLUTION

Accepted Solutions

vjuhola
Level 4
Partner

Feel free to mark my post as a solution.

View solution in original post

7 REPLIES 7

sdo
Moderator
Moderator
Partner    VIP    Certified

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?

nbutech
Level 6
Accredited Certified

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

vjuhola
Level 4
Partner

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.

Kathe_F
Level 3

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!

 

Will_Restore
Level 6

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

 

 

 

vjuhola
Level 4
Partner

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

vjuhola
Level 4
Partner

Feel free to mark my post as a solution.