使用者權限 - Linux

By Quintina
at 2012-04-09T16:11
at 2012-04-09T16:11
Table of Contents
有點離奇的問題
我在使用mini2440開發版
Linux版本‐2.6.32.2
我將一個complie後的 gz檔案丟到我的開發版進行解壓縮
此時這個gz檔案的使用者是root
解壓縮產生的檔案卻變成 1000 (為什麼?)
[root@FriendlyARM mjpg_streamer]# ls -l
-rw-r--r-- 1 1000 1000 17987 Jan 1 2010 LICENSE
-rwxr-xr-x 1 1000 1000 57530 Jan 12 2010 input_s3c2410.so
-rwxr-xr-x 1 1000 1000 169416 Jan 12 2010 input_testpicture.so
-rwxr-xr-x 1 1000 1000 51949 Jan 12 2010 input_uvc.so
-rw-r----- 1 root root 263821 Apr 8 23:54
mjpg-streamer-mini2440-bin-r6.tar.gz
因此我用 chown -R root:root mjpg_streamer
將整個mjpg_streamer資料夾都改成 root:root
此時一切完美
-rw-r--r-- 1 root root 17987 Jan 1 2010 LICENSE
-rwxr-xr-x 1 root root 57530 Jan 12 2010 input_s3c2410.so
-rwxr-xr-x 1 root root 169416 Jan 12 2010 input_testpicture.so
-rwxr-xr-x 1 root root 51949 Jan 12 2010 input_uvc.so
-rw-r----- 1 root root 263821 Apr 8 23:54
mjpg-streamer-mini2440-bin-r6.tar.gz
但當我執行其中一個檔案時
[root@FriendlyARM mjpg_streamer]# ./ start_uvc.sh
-/bin/sh: ./: Permission denied
可以請問這是怎麼回事嗎?
感謝!
--
我在使用mini2440開發版
Linux版本‐2.6.32.2
我將一個complie後的 gz檔案丟到我的開發版進行解壓縮
此時這個gz檔案的使用者是root
解壓縮產生的檔案卻變成 1000 (為什麼?)
[root@FriendlyARM mjpg_streamer]# ls -l
-rw-r--r-- 1 1000 1000 17987 Jan 1 2010 LICENSE
-rwxr-xr-x 1 1000 1000 57530 Jan 12 2010 input_s3c2410.so
-rwxr-xr-x 1 1000 1000 169416 Jan 12 2010 input_testpicture.so
-rwxr-xr-x 1 1000 1000 51949 Jan 12 2010 input_uvc.so
-rw-r----- 1 root root 263821 Apr 8 23:54
mjpg-streamer-mini2440-bin-r6.tar.gz
因此我用 chown -R root:root mjpg_streamer
將整個mjpg_streamer資料夾都改成 root:root
此時一切完美
-rw-r--r-- 1 root root 17987 Jan 1 2010 LICENSE
-rwxr-xr-x 1 root root 57530 Jan 12 2010 input_s3c2410.so
-rwxr-xr-x 1 root root 169416 Jan 12 2010 input_testpicture.so
-rwxr-xr-x 1 root root 51949 Jan 12 2010 input_uvc.so
-rw-r----- 1 root root 263821 Apr 8 23:54
mjpg-streamer-mini2440-bin-r6.tar.gz
但當我執行其中一個檔案時
[root@FriendlyARM mjpg_streamer]# ./ start_uvc.sh
-/bin/sh: ./: Permission denied
可以請問這是怎麼回事嗎?
感謝!
--
Tags:
Linux
All Comments

By John
at 2012-04-10T14:38
at 2012-04-10T14:38

By Barb Cronin
at 2012-04-14T08:45
at 2012-04-14T08:45

By Margaret
at 2012-04-16T15:23
at 2012-04-16T15:23

By Sarah
at 2012-04-20T15:59
at 2012-04-20T15:59

By Elizabeth
at 2012-04-25T02:02
at 2012-04-25T02:02

By Todd Johnson
at 2012-04-27T21:54
at 2012-04-27T21:54
Related Posts
usb安裝

By Quanna
at 2012-04-09T02:11
at 2012-04-09T02:11
大型cluster的useradd與ssh?

By Sierra Rose
at 2012-04-09T00:59
at 2012-04-09T00:59
懇請接手 Debian Installer 之翻譯工作

By Jacky
at 2012-04-08T22:07
at 2012-04-08T22:07
只有瀏覽器的Linux

By Victoria
at 2012-04-08T18:50
at 2012-04-08T18:50
似乎是gedit產生的隱藏檔?

By Skylar Davis
at 2012-04-08T16:19
at 2012-04-08T16:19