1837103 Members
2247 Online
110112 Solutions
New Discussion

Clone user account

 
Yazan Yacoub
Regular Advisor

Clone user account

Hello,

I am trying to create new user account in my HP-UX machine, new user will have same permission as existing user in my system. in other words I am trying to clone existing user permission to new user.

Any idea?

Thanks
7 REPLIES 7
Dennis Handly
Acclaimed Contributor

Re: Clone user account

I assume you don't two users with the same UID?
But with the same GID?
Different home directories?
Anshumali
Esteemed Contributor

Re: Clone user account

I hope we shouldn't use the same UID. You can try creating the template with SAM and creating the account wref to that.
Else ... may be RBAC is useful here...

anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
whiteknight
Honored Contributor

Re: Clone user account


yazan,

you cannot have same uid for new user, please use sam to create new user account, the permission will be same.

WK
Problem never ends, you must know how to fix it
Yazan Yacoub
Regular Advisor

Re: Clone user account

Dennis,

I am have user name as following:

user name: rbs
user ID: 200
Home Directory: /sk20/rbs
Startup Prog: /usr/bin/ksh
Gropu: users

I wanna create new user account with name rbd, and grant him same permission as rbs account, since rbs account is used for special application, and it have special permission on specific files.

new user have different UID,
Thanks
Shrikant Lavhate
Esteemed Contributor

Re: Clone user account

>grant him same permission as rbs account.

In simple that means both users should be member of same groups. So, create new user with same method (through SAM 0r with template you used for previous user). It will have same permissions.
Will it remain a personal, if I broadcast it here!
Yazan Yacoub
Regular Advisor

Re: Clone user account

I have created new user account, with in the same group, but I still need to grant him access to all files as rbs account, is thier any way to Inherit same permission for the new user from existing user.

Thanks
Gabriel Suchter
Advisor

Re: Clone user account

Hi,

if you don't want new user have same UID like user rbs, you can find all files to which is user rbs owner and for which you want to have same permissions and add new user to ACL for that files and of course directories.

regards
Gabriel