리눅스 삼바(프린터/파일)를 통하여 윈도우즈 컴퓨터에서 인쇠가

사랑천사의 이미지

안녕하세요?
이여송 사도요한입니다.

프린터를 쓰는데... 리눅스에 프린터를 연결하고, 윈도우즈 컴퓨터들이 인쇠를 하는데 리눅스쪽 프린터를 사용합니다. 순간의 실수로 yum을 통하여 cups를 업데이트 하니 LPRng가 나라가서 다시 깔았습니다. cups도... 그러고 나니 생긴 문제가.. 이전에는 잘 인쇠 되던 것이 지금은 안 되는군요... 윽... 윈도우즈에서요.. 리눅스에선 잘 됩니다. 그리고 윈도우즈에서 보면 프린터에 엑세스가 거부 되어서 연결 할 수 없다고 나옵니다. 그리고 lpq로 보면... nobody로 인쇠된 것은 모두 다 error로 나타납니다. root는 상관이 없지만... 흠...

문제점의 해결책을 혹시라도 아시면 좀 부탁 드리겠습니다.
모두 행복하세요!
이여송 사도요한 드림.

PS:참고로 LPRng 다시 깔았습니다. cups지우고... 그러니까.. 한마디로... SMB를 통해서 하면 안됩니다. 다른 사용자로도 얼마든지 되는 인쇠가 음... 꼭 SMB를 통해서 하면 nobody가 등록한 작업이 안 되는 걸로 나옵니다 음. 그냥 sudo로도 nobody가 되나 안되나 해 봤는데 아무 이상이 없습니다.
PS2:

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = /etc/printcap
   load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
   printing = lprng

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
  guest account = nobody

#============================ Share Definitions ==============================
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no
[homes]
   comment = Home Directories
   browseable = no
   writable = yes


# NOTE: If you have a BSD-style print system there is no need to 
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = yes
# Set public = yes to allow user 'guest account' to print
   guest ok = yes
   writable = yes
   public = yes
   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
[pubdir]
   comment = Public Shared Files
   path = /data/ftp/pub
   public = yes
   guest ok = yes
   writable = no
   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
[tmpdir]
  comment = Public Work Directory
  path = /smb
  public = yes
  writable = yes
  guest ok = yes

PS3:너무 길어서 쓸때 없어 보이는건 잘랐습니다 다시.
File attachments: 
첨부파일 크기
Image icon Win_Prints_Window.gif45.09 KB
사랑천사의 이미지

아무리 봐도 쉽지가 않네요... 혼자 뜻어 보느라 LPD쪽의 lpd.conf도 열어서 건드려 보고 여러가지를 해 봤건만.. 처음엔 잘 되던게 왜 지금은 안 될까요 음... 흠..

OS:Haansoft Linux 2005 Workstation
Kernel:2.6.12.3-3LANET (5LANET는 LANET의 3번째 컴파일. 원래는 릴리즈 번호인데 윽...)
Printer:HP Deskjet 656C (USB 사용, /dev/usb/lp0에 할당됨)

음... 커널은 직접 컴파일 했고 USB 프린터 지원등은 물론 사용합니다. 로컬에선 lpr등을 사용 하더라도, 기타 프로그램을 사용 하더라도 문제가 없습니다만, SMB로는 안 됩니다. 그리고 KDE에서 인쇠하면 작업 거부됨 이라고 나오면서도 인쇠는 됩니다 음. 허용됨이 아니리고 거부됨 ... 음...

사람천사

natas999의 이미지

프린터 섹션이 없네요.

저의 예를 들자면

[print$]
 comment = Print Drivers
 path = /etc/samba/printer
 browseable = yes
 guest ok = yes
 read only = yes
 write list = root

[HPLaserJet6LPro]
 Comment = HP LaserJet 6L Pro Network Printer
 printable = yes
 path = /var/spool/samba
 public = yes
 guest ok = yes
 printer admin = root

[printers]
 comment = All Printers
 path = /var/spool/samba
 browseable = no
 public = yes
 guest ok = yes
 writable = no
 printable = yes
 printer admin = root

프린터 전체에 대한 섹션인 [printers]섹션과 이 컴퓨터에 연결된 실제 프린터인 [HPLaserJet6LPro]섹션이 있습니다. [printer$]섹션은 프린터 드라이버 파일의 공유를 관리하는 섹션이구요.

질문하신분의 설정에는 실제 프린터에 해당하는 섹션이 존재하지 않습니다. 혹시 업데이트중에 설정파일이 예제파일로 덮어씌워진게 아닌지 확인 해보세요.

# emerge girl-friend
Calculating dependencies
!!! All wemen who could satisfy "girl-friend" have been masked.

사랑천사의 이미지

안녕하세요? 이여송 사도요한입니다.

아.. 일단 감사 드립니다 답변에 대해서는... 그러나...

natas999 wrote:
프린터 섹션이 없네요.

프린터 전체에 대한 섹션인 [printers]섹션과 이 컴퓨터에 연결된 실제 프린터인 [HPLaserJet6LPro]섹션이 있습니다. [printer$]섹션은 프린터 드라이버 파일의 공유를 관리하는 섹션이구요.

질문하신분의 설정에는 실제 프린터에 해당하는 섹션이 존재하지 않습니다. 혹시 업데이트중에 설정파일이 예제파일로 덮어씌워진게 아닌지 확인 해보세요.

말씀 해 주신대로...
-- SMB.CONF --

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = yes
# Set public = yes to allow user 'guest account' to print
   guest ok = yes
   writable = yes
   public = yes
   printable = yes

[hp656c]
   comment = HP Deskjet 656C Network Printer IN Love-Angel Network
   path = /var/spool/samba
   browseable = yes
   guest ok = yes
   writable = no
   public = yes
   printable = yes
   printer admin = root

[print$]
   comment = Printer Drivers
   path = /var/spool/samba
   writeable = no
   read only = yes
   guest ok = yes
   public = yes
   browseable = yes
   write list = root

대강 이런 식으로 집어 넣고 서버를 재시작 했습니다. 그래서... 아래 첨부파일 1번과 같은 상태가 되었습니다. 프린터에 접근이 안 된다는 소리는 안 나오더군요.
그래서 시험 인쇠를 해 봤습니다 음...
그러니 아래와 같이 되는군요.
[root@lanet ~]# lpq
Printer: hp656c@l1004net
 Queue: no printable jobs in queue
 Server: no server active
 Status: job 'nobody@l1004net+546' saved at 00:01:13.400
 Rank   Owner/ID               Pr/Class Job Files                 Size Time
error  nobody@l1004net+546          A   546 ERROR: too many errors
[root@lanet ~]#

와 같이 됩니다. 그래서 다시...
[root@lanet ~]# lpr
테스팅...
한글 출력.
Testing...
Engglish Testing...
[root@lanet ~]# lpq
Printer: hp656c@l1004net
 Queue: 1 printable job
 Server: pid 7702 active
 Unspooler: pid 7703 active
 Status: IF filter 'foomatic-rip' filter msg - 'foomatic-gswrapper: gs '-dBATCH'
 '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sD
eviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 656' '-dDEVICEWIDTHPOI
NTS=612' '-dDEVICEHEIGHTPOINTS=792' '-r300' '-sIjsParams=Quality:Quality=0,Quali
ty:ColorMode=2,Quality:MediaType=0,Quality:PenSet=1' '-dIjsUseOutputFD' '-sOutpu
tFile=| cat >&3' '/dev/fd/0' 3>&1 1>&2' at 00:18:42.072
 Rank   Owner/ID               Pr/Class Job Files                 Size Time
active root@l1004net+700            A   700 (STDIN)                 52 00:18:40
error  nobody@l1004net+546
[root@lanet ~]# lpq
Printer: hp656c@l1004net
 Queue: 2 printable jobs
 Server: pid 7702 active
 Unspooler: pid 7703 active
 Status: waiting for subserver to exit at 00:22:46.859
 Rank   Owner/ID               Pr/Class Job Files                 Size Time
stalled(250sec) root@l1004net+700   A   700 (STDIN)                 52 00:18:40
2      nobody@l1004net+744          A   744 (STDIN)                 47 00:22:46
error  nobody@l1004net+546          A   546 ERROR: too many errors
[root@lanet ~]# lpq
Printer: hp656c@l1004net
 Queue: 1 printable job
 Server: pid 7702 active
 Unspooler: pid 7751 active
 Status: IF filter 'foomatic-rip' filter msg - 'KID3 exited with status 0' at 00
:24:15.901
 Rank   Owner/ID               Pr/Class Job Files                 Size Time
active nobody@l1004net+744          A   744 (STDIN)                 47 00:22:46
done   root@l1004net+700            A   700 (STDIN)                 52 00:18:40
[root@lanet ~]#

이렇게 되네요... 그러니까 nobody 자체로 인쇠가 안 되는건 아니라는 겁니다. 그리고 root에서도 되고요... 지금 프린터 열심히 나오네요 음... 윽... 느려.. 윽..

아무튼 뭐가 문제인지 잘 알 수가 없네요 음... 이전엔 분명히 잘 되었는데... 그리고 smb.conf도 사실상 처음 것이나 나중 것이나 같더군요 음... 왜 그런지 알 수가 없네요 음...

아무튼 답변 감사 드립니다 음..
다시 혹시나 아시는분 계시면 답변 부탁 드리겠습니다.
(네트워크에서 프린터 관리 하는건 거의 해 본 적이 없어서요 윽.)

모두 행복하세요.
이여송 사도요한 드림.

댓글 첨부 파일: 
첨부파일 크기
Image icon 0바이트

사람천사

사랑천사의 이미지

LPRng에 보면... 각 사용자의 관리 권한에 대해서 허가나 거부하는 설정이 있어 수정 해 본 적이 있습니다. 물론, 안 되서 해결하기 위해서... lpd.conf에 보면 여러가지 설정 부분이 있는데, 음... 전부 주석처리 되어 있더군요.

# Purpose: allow these users or UIDs to set owner of job.  For Samba front endin
g
#   default allow_user_setting=  (EMPTY STRING)

이런 부분이 있어 이걸 어떻게 해 보면 될까 해서 좀 설정을 해 봤더니 그것 역시 안 되더군요. 이제는 SMB에선 정상적으로 접근은 되는듯 합니다. 어디서 문제가 있는건진 알 수가 없고요 여전히 흠...

사람천사

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.