Unix/Linux Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Disabling SSH direct access for an AIX user

AIX


Tags
aix, unix

Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-20-2012
adilyos's Unix or Linux Image
adilyos adilyos is offline
Registered User
 
Join Date: Jan 2012
Last Activity: 31 July 2013, 8:28 AM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Disabling SSH direct access for an AIX user

Hello everyone,

Can anyone help me please. I want to disable SSH direct access for an AIX user.

For example, if I have USER1 and USER2. I want to disactivate direct access for USER2. The user must enter his login (USER1) and his password and then he can do
Code:
su - USER2

.

Thanks,
Sponsored Links
    #2  
Old Unix and Linux 12-20-2012
MichaelFelt MichaelFelt is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 August 2015, 7:24 AM EDT
Location: on the road for work; home is private time
Posts: 338
Thanks: 6
Thanked 82 Times in 77 Posts
It should be enough to use:

Code:
# chuser rlogin=false USER2

You may also want to turn off "local/console" logins as well.


Code:
# chuser login=false rlogin=false USER2

Additionally, you can create a special group and put USER1 (i.e. any user permitted to su to USER2 account) into that group (e.g., su_user2)

Code:
# chuser sugroups=su_user2 USER2

Sponsored Links
    #3  
Old Unix and Linux 12-21-2012
adilyos's Unix or Linux Image
adilyos adilyos is offline
Registered User
 
Join Date: Jan 2012
Last Activity: 31 July 2013, 8:28 AM EDT
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
It works. Thank you MichaelFel.
    #4  
Old Unix and Linux 12-21-2012
MichaelFelt MichaelFelt is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 13 August 2015, 7:24 AM EDT
Location: on the road for work; home is private time
Posts: 338
Thanks: 6
Thanked 82 Times in 77 Posts
Your welcome - Happy Holidays!
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
does disabling requiretty in sudo have security implications with SSH? kettlewell UNIX for Dummies Questions & Answers 0 10-05-2010 03:28 PM
Direct/scsu access to unix account runnerpaul Solaris 2 05-21-2010 09:00 AM
ssh - disable direct root login mahesh_raghu Linux 1 04-14-2010 04:18 AM
Force user to use ssh/prevent telnet access peragin UNIX for Dummies Questions & Answers 4 09-21-2009 11:07 AM
Direct disk access Lopatonosec Programming 3 05-31-2005 12:39 PM



All times are GMT -4. The time now is 10:33 PM.