7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Linux】su: cannot set user id: Resource temporarily unavailableが出力された時の対処

Posted at

業務でとあるユーザーにスイッチする際に、
su: cannot set user id: Resource temporarily unavailable
が出力されました。
上記のメッセージが出力された時の対処メモになります。

対処内容

該当のユーザーは、/etc/limits.confで使用できるプロセス数の上限を設定していました。
プロンプト上には、使用しようとしたプロセスが「1025」なのに対し、設定では以下のようになっていました。

cat /etc/security/limits.conf
<表示結果>
soft nproc 1024
hard nproc 1024
~省略~

あら~使用できるソフトプロセス1024じゃん~と気付き、2倍の「2048」に変更したところ、
無事にスイッチできました。
尚、/etc/limits.confを修正してもOSの再起動は不要です。

以上。
久々の投稿になりました。
こういう自分のためのアウトプットは続けないとなと反省しておりまっす。

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?