LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not able to do SSH by a particular user (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-do-ssh-by-a-particular-user-4175453582/)

Aarif 03-11-2013 02:54 AM

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

shivaa 03-11-2013 03:01 AM

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>


eklavya 03-11-2013 03:02 AM

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

Aarif 03-11-2013 03:07 AM

thanks a lot all...
killed the user processes and that solved the issue.
Cheers!

shivaa 03-11-2013 03:10 AM

@Aarif:

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


All times are GMT -5. The time now is 10:59 PM.