Go Back   The UNIX and Linux Forums > Operating Systems > AIX


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

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-20-2012
adilyos's Avatar
Registered User
 
Join Date: Jan 2012
Posts: 50
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 12-20-2012
Registered User
 
Join Date: Nov 2012
Location: on the road for work; home is private time
Posts: 247
Thanks: 6
Thanked 62 Times in 59 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 12-21-2012
adilyos's Avatar
Registered User
 
Join Date: Jan 2012
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
It works. Thank you MichaelFel.
    #4  
Old 12-21-2012
Registered User
 
Join Date: Nov 2012
Location: on the road for work; home is private time
Posts: 247
Thanks: 6
Thanked 62 Times in 59 Posts
Your welcome - Happy Holidays!
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:13 PM.