2014-09-16 3 views
1

"vi"또는 "script1.py"스크립트를 실행할 수없는 문제가 있습니다. 아래에 나와 있습니다. 다른 파일 "script2.py"가 동일한 사용자가 만들고 액세스 할 수 있습니다. 차이점은 파일 끝에 대한 사용 권한 끝에 "+"가 표시되어 액세스 할 수 없다는 것을 의미합니다. 파일을 "script1.py"위키에서"vi"를 사용하거나 "python script1.py"로 excute를 시도 할 때 사용 권한을 얻지 못했습니다.

Not able to access below 
-rwxr--r--+ 1 username users 44198 Sep 15 20:05 script1.py 

Able to access below 
-rwxr--r-- 1 username users 44203 Sep 12 09:01 script2.py 
+0

왜'root' 권한을 사용하려고 노력하지 않아요? 어떤 유닉스 OS를 가지고 있습니까? –

답변

0

.P "파이썬 scrip1.py"로 스크립트를 실행하는 VI 또는 수를 사용하여 열 : http://en.wikipedia.org/wiki/File_system_permissions

In some permission systems additional symbols represent additional permission features: 
+ (plus) suffix indicates an access control list that can grant additional permissions 

setfacl 명령을 사용하여 액세스 제어 목록을 수정할 수 있습니다.

은 자세한 내용은 다음 링크를 참조하십시오
http://linux.about.com/library/cmd/blcmdl1_setfacl.htm
http://doc.opensuse.org/documentation/html/openSUSE_121/opensuse-security/cha.security.acls.html

+0

+ 권한을 없애는 방법은 무엇입니까? –

+0

나는 erro [Errno 13]을 얻는다. "python script1.py"와 같이 스크립트를 실행하려 할 때 허가가 거부되었다. –

+0

'getfacl script1.py'와'getfacl script2.py'의 출력을 붙여 넣을 수 있니? – cppcoder