moinmoin에서 Anonymous 접근금지모드 관련 질문.

동이의 이미지

익명사용자 페이지편집 접근방지에 대해서 알고 싶습니다.

kall의 이미지

config.php 에
$security_class='needtologin';를 넣어보세요.

----
자신을 이길 수 있는자는
무슨짓이든 할수있다..
즉..무서운 넘이란 말이지 ^-_-^
나? 아직 멀었지 ㅠㅠ

익명 사용자의 이미지

kall wrote:
config.php 에
$security_class='needtologin';를 넣어보세요.

이건 모니위키 설정이고, 질문하신 분의 의도는 MoinMoin을 여쭤본게 아니신지??

MoinMoin 1.1이라면 Security class를 찾아보면 있고 이걸 수정하면 된다고 알고 있습니다.

현재 최신모인모인 1.3에 대해서는 잘 모르겠군요..

kall의 이미지

...모인모인 이었군요 ;;
간만에 보니 헷갈려서 ;;

모인모인이라면 moin_config.py 의 끝부문에

# security (deactivated by default)
if 1:
    allowed_actions = ['DeletePage', 'AttachFile']

    from MoinMoin.security import Permissions
    class SecurityPolicy(Permissions):
        edit = 1
        delete = 1
        def __init__(self, user):
                self.user = user
                self.edit = self.edit and user.valid

저기서 기본 설정이 if 0: 이었던걸로 기억합니다..
그걸 1로 바꿔주면 되었던 듯..
모인모인을 안쓴지 좀 돼서 확실하진 않습니다..;;

----
자신을 이길 수 있는자는
무슨짓이든 할수있다..
즉..무서운 넘이란 말이지 ^-_-^
나? 아직 멀었지 ㅠㅠ

동이의 이미지

kall wrote:
...모인모인 이었군요 ;;
간만에 보니 헷갈려서 ;;

모인모인이라면 moin_config.py 의 끝부문에

# security (deactivated by default)
if 1:
    allowed_actions = ['DeletePage', 'AttachFile']

    from MoinMoin.security import Permissions
    class SecurityPolicy(Permissions):
        edit = 1
        delete = 1
        def __init__(self, user):
                self.user = user
                self.edit = self.edit and user.valid

저기서 기본 설정이 if 0: 이었던걸로 기억합니다..
그걸 1로 바꿔주면 되었던 듯..
모인모인을 안쓴지 좀 돼서 확실하진 않습니다..;;

젠투리눅스에서 portage로 설치했습니다. 답변주신대로 했습니다만, 웹활성화 할때 500 오류내더군요..

하나보다 둘이 낫다. 그리고 둘보다 셋이....셋보다 넷이..

yong27의 이미지

모인모인 1.3부터는 사용자권한과 관련해서, ACL이란것을 사용합니다. 페이지별, 사용자별 다양한 권한 설정이 가능합니다.

자세한 사항은 http://moinmoin.wikiwikiweb.de/HelpOnAccessControlLists 페이지를 참고 하세요.

간단하게, anonymous 가 편집못하도록 하시려면, 해당 위키의 config.py 파일을 아래와 같이 바꿔주시면 됩니다.

    # Enable acl (0 to disable)
    acl_enabled = 1

    # IMPORTANT: grant yourself admin rights! replace YourName with
    # your user name. See HelpOnAccessControlLists for more help.
    # All acl_right_xxx must use unicode [Unicode]
    acl_rights_before = u"Known:read,write,delete,revert,admin All:read"
    acl_rights_default = u"Known:read,write,delete,revert All:read"

All 이 모든 사용자를 뜻하며, read만 주었으므로, 읽기만 가능합니다.

좀더 다이나믹하게~

댓글 달기

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