su 로 로그인 했을 때 에러 Message 입니다. 어디가 잘못인지 봐

ikuku의 이미지

일반 유저로 계정 접속후, su - root 하면 로그인이 되지를 않습니다.
var/log/messages 에 남아 있는 로그 기록입니다.
도대체 어느 파일을 손봐야 되는지 아시는 분 봐주세요~~

Dec 23 04:26:47 ns su(pam_unix)[7521]: authentication failure; logname=users uid=501 euid=0 tty= ruser= rhost= user=root
Dec 23 04:26:47 ns PAM-warn[7521]: service: su [on terminal: <unknown>]
Dec 23 04:26:47 ns PAM-warn[7521]: user: (uid=501) -> root [remote: ?nobody@?nowhere]

y93161의 이미지

저와 현상이 같은지는 제도 초보라서 잘 모르겠지만요
제경험을 말씀드리겠습니다.

전 최근에 Redhat 9.0을 인스톨을 했는데 인스톨 한후에는 다른계정으로 들어가서
su , su - 명령어가 잘 되더군요.
그런데 한번 PC를 부팅하면 위 명령어를 칠때마다 터미널이 다운이 되더군요
전 message를 볼 생각도 못해봐서 message가 어떻게 생겼는지 잘 모르겠구요
su 라는 명령어를 다른 리눅스에서 카피해서 해봤는데도 마찬가지더군요.
여러 게시판을 뒤지다가 저와 같은 문제를 가진 분이 올리신 글에서
커널을 업그레이드하라고 하시더군요.
그분도 확실히 어떤 문제인지는 잘 모르겠다고 하시면서 ...

그래서 저 같은 경우에는 커널 2.4.23을 다운 받아서 업그래이드를 했습니다.
그랬더니 su 명령어가 잘 되더군요.

전 지금까지 그 문제가 왜 생겼는지 잘 모르구요.
만약 아시는 분이 있으시면 리플달아주세요.
무척 궁금하군요. 8)

monpetit의 이미지

PAM 인증 과정에서 나타나는 거부인듯 합니다.
root로 계정을 변경하기 위해서는 특별히 허가된 그룹에 속해져 있어야 할 겁니다. FreeBSD에서는 wheel 그룹이었는데 리눅스도 이러한지는 지금 당장 생각 나지 않습니다만...
여하튼 이 그룹에 속해져 있지 않은 사용자는 root로 계정을 변경할 수 없도록 되어 있습니다. 참고하시길...

ikuku의 이미지

제가 Pam.d/ 아래의 보안 설정을 다시 하면서 일어 났던 문제 였습니다.

모두 답변 감사 합니다.

pam.d/su 파일에 문제 가 있었네요.

password required /lib/security/pam_stack.so service=system_auth

=> 이부분을
password sufficient /lib/.......

이렇게 수정하니까 제대로 su 로그인이 제대로 되네요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.