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


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-15-2017
makauser makauser is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 15 March 2017, 11:08 PM EDT
Posts: 36
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-15-2017
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 24 June 2017, 12:13 AM EDT
Posts: 1,055
Thanks: 29
Thanked 305 Times in 268 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
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 23 June 2017, 11:03 AM EDT
Location: Lancashire, UK
Posts: 3,141
Thanks: 1,316
Thanked 600 Times in 542 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
Reply

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



All times are GMT -4. The time now is 06:33 AM.