關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 改變 Windows 檔案權限指令

    Posted on April 12th, 2006 Sam Tang No comments

    要在 Windows 以指令模式改變檔案的權限,可以使用以下指令:

    CACLS files /e /p {USERNAME}:{PERMISSION}

    指令的內容為:

        * /p : 設定新的權限
        * /e : 編輯現有權限
        * {USERNAME} : 用戶名稱
        * {PERMISSION} : 權限內容:
            o R – Read
            o W – Write
            o C – Change (write)
            o F – Full control

    以下指令會給予 win_user 全部控制權:

    C:> CACLS files /e /p win_user:f


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word