embedded 만들시 파일시스템의 mknod 문제....

chxooi의 이미지

어제 문제는 sudo 로 일단 해결했습니다.
근본적인 궁금증이 생기기 시작했는데요...

여기 많은 분들이 embedded system 개발하실텐데....자기 PC 에서 하지 않는다면...
다 서버에서 하실텐데요....

그렇다면.....

파일 시스템 어떻게 만드시나요???

예를 들어 라젠카라는 사용자가 아래처럼 디렉토리에서 작업한다고 치면...
보시다시피...
lazenca 밑에 smtrootfs_openrootfs 가 있고 그 밑에 또 /dev/ 들이 있습니다.
문제는 이 파일 시스템중에 일부가 root 로 생성이 된다는건데요...

제가 밑에서 언급한거처럼 /dev/ 때문

(여기서는 /home/lazenca/platform_openrootfs/build_openrootfs/smtrootfs_openrootfs/dev )

에 mknod 도 쓰고....어떨때는 /sbin/hosts 같은것도 있고...

골때린건 이게 전혀 일반 유저가 쓰는 command 가 아니다 보니 계속 권한 에러가 나고
문제가 발생하는데....
embedded 개발 하시는 분들은.....이렇게 자기 local 에서 작업할때 어떻게 해서 root file system 건드리시나요???

모두 root 권한을 가지고 계신건가요????

이렇게 만들어진 디렉토리는 다시 tar 로 압축되고 해서 또 카피되고 다른 사용자가 쓰고 이럴 수 있어야 하는데....
이럴때마다 root 권한이 마구잡이로 오픈된다는게 이해가 안되서요...

궁금하네요...

|-- home
| |-- allo [error opening dir]
| |-- chachacha [error opening dir]
| |-- lazenca
| | |-- Desktop
| | |-- Media_Source
| | |-- platform_openroot
| | | |-- build_openrootfs
| | | | `-- smtrootfs_openrootfs
| | | | |-- bin
| | | | |-- dev
| | | | |-- etc
| | | | |-- home
| | | | |-- lib
| | | | |-- mnt
| | | | |-- proc
| | | | |-- sbin
| | | | |-- sys
| | | | |-- usr
| | | | |-- var
| | | | `-- wfs

asiawide의 이미지

sudo 권한을 조정해서 특정 커맨드만 root 권한을 줄 수 있게 제한하고요. 이것도 어짜피 루트 권한을 줘야 하니까 정 안되겠으면 rootfs 건드리는 개발자 각각이 PC에 colinux 를 깔아서 쓰는 것도 방법입니다. (귀찮기는 하죠..)

댓글 달기

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