LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-11-2013, 02:54 AM   #1
Aarif
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Rep: Reputation: Disabled
Not able to do SSH by a particular user


i am not able to login the server through SSH session, by my user, however other OS users are able to do so.
while trying to su the user through root, i get "su: cannot set user id: Resource temporarily unavailable"

kindly Suggest

thanks,
Arif
 
Old 03-11-2013, 03:01 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
It is generally an issue with maximun no. of processs reached by your username. So check your processes, as:
Code:
~$ ps -aef | grep <username>
And kill some of them which are either not necessory or have finished but still alive like any open terminals or sessions (just close them), as:
Code:
kill <pid>
OR
kill -9 <pid>
 
Old 03-11-2013, 03:02 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
The affected user has reached the maximum number of process specified for him into the file /etc/security/limits.conf .

These commands, executed as root, can give you the number of process and of open files for the given user:

Code:
ps -U username | wc -l

lsof | grep username | wc -l
To fix the issue increase the NPROC Soft limit according to the user and applications needs; please look at the note below about the /etc/security/limits.conf file.

If third party software is involved, please contact the software vendor to advice about the proper limits to use
 
Old 03-11-2013, 03:07 AM   #4
Aarif
LQ Newbie
 
Registered: Nov 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
thanks a lot all...
killed the user processes and that solved the issue.
Cheers!

Last edited by Aarif; 03-11-2013 at 03:11 AM.
 
Old 03-11-2013, 03:10 AM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
@Aarif:

You can Mark the thread as solved (option is under Thread Tools on top menu), if you think it has so.
 
  


Reply



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
[SOLVED] User unable to log in via SSH, but only that user theillien Linux - Server 15 10-19-2011 10:48 AM
Which is safer? Only ssh +scp for 2 users? Or ssh (1 user) + vsftpd (1 virtual user) bvz Linux - Security 2 09-18-2011 08:55 PM
[SOLVED] Cant ssh for a user kirtikjr Linux - Server 6 08-05-2011 04:37 AM
[SOLVED] Adding a new user to Solaris 9 so that this user can ssh into the server rcforster Solaris / OpenSolaris 2 03-14-2011 06:10 AM
User Creationg : ssh/sftp user jail to $HOME only routers Solaris / OpenSolaris 2 10-29-2007 11:28 PM

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

All times are GMT -5. The time now is 05:39 AM.

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
Open Source Consulting | Domain Registration