LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2015, 03:12 PM   #1
arisbe
LQ Newbie
 
Registered: Apr 2015
Posts: 12

Rep: Reputation: Disabled
strange issue with ulimits and VPS


I operate a dedicated server using Ubuntu 14.10 server. Recently, I needed to raise the number of file descriptors to accommodate the web software I'm running.
When I sit at the local terminal this is easy: I change /etc/security/limits.conf or set ulimits -n 4096 and everything's fine.
Strangely, when I try to do the same thing remotely using SSH, the ulimit -n command yields only 1024 file descriptors. The limits.conf has been changed and system remotely rebooted. I get the same warning message people have been complaining about for years: -bash: illegal operation.......
What's going on? I need to control this server remotely eventually.

Thanks for someone's help in advance, Arisbe

Last edited by arisbe; 10-13-2015 at 03:15 PM.
 
Old 10-13-2015, 06:28 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Have a look at your SSH PAM section.
 
1 members found this post helpful.
Old 10-21-2015, 02:46 PM   #3
arisbe
LQ Newbie
 
Registered: Apr 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
I saw nothing wrong with SSH PAM. After a number of trys, I finally got one to 'take.' Problem is resolved but issue remains. Thanks for the help.
 
Old 10-21-2015, 07:59 PM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 3,964

Rep: Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110Reputation: 1110
limits.conf and the limits.d directory are used by the pam_limits module. If /etc/pam.d/ssh doesn't have a pam_limits line, or if it doesn't enforce it, the conf file is ignored. Otherwise try the debug option of pam_limits.

Edit: On a Centos 6.4 server I am currently looking at, there is no pam_limits line in /etc/pam.d/sshd. Thus, limits.conf won't have any effect on an SSH session.

Last edited by berndbausch; 10-21-2015 at 11:53 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv6 on Debian VPS (Routing Issue) Cinos Linux - Networking 0 07-26-2012 03:00 PM
CAPTCHA issue on VPS renkcub Linux - Newbie 4 05-29-2012 08:33 PM
Debian and ulimits circus78 Linux - Server 1 02-28-2012 10:32 AM
Need help diagnosing a remote server (vps) issue. jim.thornton Linux - Server 7 07-08-2008 01:22 AM
New installation of a VPS with Slackware: Strange filtered ports fax8 Linux - Security 5 09-10-2005 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration