[완료] Vista와 XP의 cygwin 파일 권한 문제

jellypo의 이미지

직장과 집 컴퓨터에 각각 cygwin이 설치되어 있습니다.

직장 컴퓨터는 XP, 집 컴퓨터는 Vista 이고요.

외장 하드 디스크가 있습니다.

0) 직장과 집, 양쪽 다 cygwin의 ssh를 설치. 로그인 방식은 윈도쪽 끌어다 쓰는걸로 설정함(연관이 있나요?)
1) 직장에서 외장 하드 디스크의 moinmoin 데스크탑 에디션을 실행해서 문서를 잔뜩 생성하고
2) 집에와서 열어보려 하니 권한이 없다고 나옵니다.
3) chown -Rf JellyPo moin 으로 소유자를 변경하려 하니

$ chown JellyPo wiki.log
chown: changing ownership of `wiki.log': Permission denied

이런 식으로 나오네요.

비스타에서 moin속성-보안-사용권한을 이리저리 만져보고 있지만 나아지지는 않네요.

혹시 이런 문제 경험하신 분은 없나요?

cygwin에서 부여하는 소유주, 퍼미션이
윈도우(특히 비스타)의 소유주, 퍼미션과 연관이 있는 모양인데... 이를 해결할 방법이 떠오르질 않네요...;;;

파일이 잔뜩 있지만 권한은 다음과 같습니다.

drwx------+  7 JellyPo  None         0 Jan 30 05:50 wiki/
-rw-r--r--   1 ???????? ????????     0 Jan 30 09:03 wiki.log
-rwx------+  1 JellyPo  None      1643 Dec 25 00:19 wikiconfig.py*
-rw-rw----   1 ???????? None      1553 Jan 30 05:51 wikiconfig.pyc

회사에서도 윈도XP 유저 네임은 JellyPo입니다만, UID가 다른 모양이네요.

/etc/passwd 파일을 보니 뭔가 복잡하네요 -_-;

JellyPo:unused_by_nt/2000/xp:1000:513:U-JellyHome\JellyPo,S-1-5-21-0000000000-32
00000000-0000000000-1000:/home/JellyPo:/bin/bash
aero의 이미지

방법은 구글에서 "vista 관리자 권한으로 실행" 으로 검색~

jellypo의 이미지

아 이런 간단한 문제를 -_-

ssh로 접속해서 작업하다보니 cygwin shell을 관리자 권한으로 실행한다는 생각조차 못하고 있었네요.

chown -Rf JellyPo moin
으로는 똑같이 퍼미션이 없다고 해서

find moin -exec chown JellyPo {} \;
이렇게 해결했습니다.

댓글 달기

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