Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Restrict ssh for particular user

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-16-2017   -   Original Discussion by makauser
makauser makauser is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 26 July 2017, 5:24 AM EDT
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Restrict ssh for particular user

Dear Concern,

We want to restrict ssh for particular user "oracle". Our HP UX version is as below. Please advise.


Code:
# uname -a
HP-UX tabsdb02 B.11.31 U ia64 2963363594 unlimited-user license

Sponsored Links
    #2  
Old Unix and Linux 03-16-2017   -   Original Discussion by makauser
Peasant's Unix or Linux Image
Peasant Peasant is online now Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 22 November 2017, 11:17 AM EST
Posts: 1,088
Thanks: 31
Thanked 320 Times in 280 Posts
Have you checked man sshd_config, especialy AllowUsers directive mentioned in it ?

Regards
Peasant.
Sponsored Links
    #3  
Old Unix and Linux 03-17-2017   -   Original Discussion by makauser
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 21 November 2017, 12:04 PM EST
Location: Lancashire, UK
Posts: 3,373
Thanks: 1,456
Thanked 665 Times in 598 Posts
How are people logging in as that account? Do they have a password or SSH key perhaps?

The easiest way would be to change the password and remove any unauthorised entries from ~oracle/.ssh/authorized_keys

Then, only allow access to people with a sudo rule and keep that list very restricted.

What is the actual issue you are trying to solve?



Robin
Sponsored Links
Closed

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
How to restrict user to a particular directory? aaron8667 AIX 7 04-02-2015 02:30 PM
Restrict user access hedkandi Red Hat 9 01-03-2012 10:06 PM
Restrict user to a particular directory Hari_Ganesh Red Hat 5 07-30-2010 10:03 AM
New user and restrict path lo-lp-kl AIX 1 01-18-2009 06:54 AM
restrict a user to certain command vikas027 Solaris 1 03-07-2008 09:52 AM



All times are GMT -4. The time now is 12:17 PM.