亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        非ROOT用戶能訪問另一個非ROOT用戶的文件

        字號:

        #include
            #include
            #include "ourhdr.h"
            int main (int argc , char *argv[] )
            {
            if (argc != 2) {
            printf("usage: a.out \n");
            exit (0);
            }
            if (access(argv[1],R_OK) <0)
            printf("%s could not read \n",argv[1] );
            else
            printf("read access ok\n");
            if (open(argv[1], O_RDONLY ) <0)
            printf ("open error %s\n",argv[1]);
            else
            printf ("open for reading ok\n");
            exit (0);
            }
            # ll a.out fstab
            -rwxr-xr-x 1 ftp ftp 12050 2003-12-20 16:16 a.out
            -rw-r----- 1 mail mail 626 2003-12-18 21:08 fstab
            # ./a.out fstab
            read access okOS is redhat 9.0
            open for reading ok
            分特
            你shell的提示符是#啊
            你在用root的身份來運(yùn)行程序,當(dāng)然可以訪問啦
            不好意思。。。用ROOT用慣了,一時沒注意。。
            發(fā)現(xiàn)用非ROOT也是用樣的提示符