Visit Our UNIX and Linux User Community


cloning users access with different user name


 
Thread Tools Search this Thread
Operating Systems AIX cloning users access with different user name
# 1  
Old 10-29-2008
cloning users access with different user name

Hi!

this would be my first time to post here in this forums, hope you can help me with my queries.

i would like to create a different user name but have the same access rights. Example: root > rootbaby.

thanks
# 2  
Old 10-29-2008
root is maybe a bad example.
We do it like this:
- Installed sudo
- Edited the sudoers file with visudo accordingly
- Log in with my personal account/user
- Do a "sudo su -" which is allowed via sudoers and I become root
So login in direct as root is not possible and we can see who logged in. We also control who may become root.
Maybe this is an alternative.

If root is not really necessary, just use "smit user" and create an account similar to the user you want to "imitate". You can use this also to read the users current settings.
# 3  
Old 11-04-2008
Thanks Zaxxon,

Is it possible for me to create different username with the same UID or if not, different Username with same access rights on files, folders and objects without them joining in a group? ... Can you show me how?
example:
USR1
USR2
USR3

Also, i have tried creating a user name with the same configuration. USR1 with USR2. but with different UID's. USR2 cannot execute some commands that USR1 can execute? and also the same with files, folders and objects... How can I resolve this. by the way this is in AIX v.5. I use the smitty users to create the user.




thanks

Last edited by HPL1706; 11-04-2008 at 02:09 AM..
# 4  
Old 11-04-2008
Sorry, but this sounds a bit strange to me. Why do you want to clone users and keep the UID? Why not have every user his own unique UID etc. and put them together in groups? You can always try to manipulate your /etc/passwd but I can not foretell what will happen, up to you experimenting.
Maybe you describe a bit more what this stuff should be good for so we can offer alternatives.
# 5  
Old 11-04-2008
Hi Zaxxon,

Greetings

Actually, I am creating a log in ID for AIX. I just want to make another login ID that has the same rights with the existing ID's. So we can log names of users who login. Example. The existing ID is ADM001. I want to make a login id ADMJOE. And I want them to have the same access, execution, commands rights.

I've tried making ADMJOE as similar to ADM001 using the smit user. But there are certain commands that ADMJOE cannot execute.

Please bear with me, this is just my first 1 month to handle Security Administration in AIX. Thank you for your responses. Hope you can help me...

HPL1706
# 6  
Old 11-05-2008
it's possible to create "different" users with the same userid

just add 3 users for example
Code:
useradd test                                               
useradd test1                                              
useradd test2

set them to the same userid in /etc/passwd

Code:
test:*:207:1::/home/test:/usr/bin/ksh                                  
test1:*:207:1::/home/test1:/usr/bin/ksh                                
test2:*:207:1::/home/test2:/usr/bin/ksh


thats it (in this example no home directories are created)

they can have different or the same home directories, und they have their own passwords in /etc/security/passwd, since the name and not the id is important for passwords

Code:
test:
        password = nsm/mRaQTA5PU
        lastupdate = 1225873934
       
test1:
        password = phIupR.beuc0k
        lastupdate = 1225873941
     
test2:
        password = 8tTP0i.8T3Tss
        lastupdate = 1225873947

and so you can put them in the same group in /etc/group

testgroup:!:207:test,test1,test2



but the better and more common way to handle this is with different user ids and same group permissions


sudo ist also a very good way as mentioned above

Previous Thread | Next Thread
Test Your Knowledge in Computers #290
Difficulty: Easy
Free and open-source software (FOSS) is software that anyone is freely licensed to use, copy, study, and change the software in any way, and but the source code must be maintained secretly.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

How to check sudo access of other users?

Hi, I always use "sudo -U user -l" as root and it gives me list of sudo access, that person have. But on one Solaris server, I can't run it. recently only I installed latest patchset on this server. Not sure, if that changed something on this. However, sudo package is showing old one. # id -a... (1 Reply)
Discussion started by: ron323232
1 Replies

2. Ubuntu

Users Access - AD Authentication - User can't log in?

I have a user who's having troubles logging into one of my servers, that is authenticating with AD. After glancing over /etc/passwd, I found the users account is different than mine and others who aren't having any issues. What's the difference between these two accounts? What's the "1 60 14 60" ?... (1 Reply)
Discussion started by: Nvizn
1 Replies

3. Solaris

samba read write access to owner and no access to other users

Hi All, I want to configure samba share permission so that only directory creator/owner has a read and write permission and other users should not have any read/write access to that folder.Will that be possible and how can this be achieved within samba configuration. Regards, Sahil (1 Reply)
Discussion started by: sahil_shine
1 Replies

4. HP-UX

access to .beroot for users

Hp info HP-UX tmelps04 B.11.31 U ia64 issue I created a user in his primary group is sysadmin. However when this user executes HPPI he gets shot down because he is not a super user. How do I grant the user permissions to access the beroot script? Sorry, user xxxxxx is not allowed to execute... (2 Replies)
Discussion started by: sctxms
2 Replies

5. UNIX for Dummies Questions & Answers

kernel giving access for multiple users to access files

hi all, i want to know y kernel is giving access for multiple users to access a file when one user may be the owner is executing that file. Because other user can manipulate that file when the other user is executing that file, it will give the unexpected result to owner . plz help me... (1 Reply)
Discussion started by: jimmyuk
1 Replies

6. UNIX for Dummies Questions & Answers

Access another users files

Hi, I want to access another users files and directories.Is there any command to do in unix ??.I think CHOWN would work.May i know the exact command for it. Regards, (1 Reply)
Discussion started by: William1482
1 Replies

7. Cybersecurity

File owned by oracle user and dba group need readonly access to other users

Under oracle user file abc.txt was created. Oracle user belong to dba group on UNIX Server. However other non Oracle users which belongs to some other network groups need read only access to this file. Every time when I login as other then oracle user and try to view this file it saying that I... (2 Replies)
Discussion started by: groosha
2 Replies

8. Solaris

List users who have administrative access

Hi , Could you please give me the commands for the following. 1.list users who have direct access to solaris database at os-level 2.list users who have administrative access at os-level in solaris Please also let me know how to figure out these specific users i need from a... (6 Replies)
Discussion started by: James777
6 Replies

9. UNIX for Advanced & Expert Users

Restrict access to specific users.

Hi All! I would like to know if there is any specific way by which I can restrict access to apecific users (ip addresses). OS : Red hat linux Thanks! nua7 (6 Replies)
Discussion started by: nua7
6 Replies

10. UNIX for Advanced & Expert Users

Creating USERs with restricted Access

Hi There, i need to creat USERS in UNIX with restricted access to different directories. for example user1 should have access to dir1 and dir2 user2 should have access to dir2 and dir3 Please help me (4 Replies)
Discussion started by: ramanan25
4 Replies

Featured Tech Videos