How to login in from separate terminals in same OS instance?
CentOs 7
I used su to login as root. I created several accounts,e.g. a1, b1, c1 Then I created two groups, gp1, gp2, and a directory, test with owner a1, and group as gp1. Then I added gp1 to a1. Now I like to test permissions via login on 3 terminals for a1, b1, and c1. But whenever I am in root and did this: Code:
[root@localhost ~]# login a1 The terminal closed immediately. And when in another user account with admin privileges, I do not get prompted for password. Nothing happens. the prompt just returns.... like so: Code:
[user1@localhost ~]$ login a1 Code:
... ... How to login in from separate terminals in same OS instance? Meaning all login accounts are active (not log-off), and I can easily switch between them via the terminals. Thank you. |
Not sure if I understand your problem.
Code:
su - user1 |
@Emerson :
That did the trick. Thank you. |
Fyi, 'exit', will also log you out of the other acct and back to the original. Its just a another terminal session, no special handling reqd.
|
All times are GMT -5. The time now is 10:54 PM. |