ubuntu之開機自動掛載NTFS-解決chmod對NTFS失效的問題

來源:互聯網
上載者:User

ubuntu之開機自動掛載NTFS-解決chmod對NTFS失效的問題 今天在用C 語言 編寫啦一個 程式   在 我的  E 盤   準備去執行的時候發現  沒有執行的許可權  。然後  用 chmod  777  hello   然後沒有  命令執行成功  然後  用  ls -l 查看許可權 並沒有改變和之氣一樣 。。很鬱悶。。。。  www.2cto.com  通過一些搜尋。 思考和整理。。  解決該問題。。下面是解決方案:1  查看自己的  磁碟分析資訊       UUID      UGD    GID    資訊如  查看 UUID  如下 ls -l /dev/disk/by-uuidlrwxrwxrwx 1 root root 10  1月 12 21:45 0001AC6D000973C1 -> ../../sda5lrwxrwxrwx 1 root root 10  1月 12 21:45 0003A300000D437F -> ../../sda6lrwxrwxrwx 1 root root 10  1月 12 21:45 000ACA5D000CE1C1 -> ../../sda8lrwxrwxrwx 1 root root 10  1月 12 21:45 000E08DD00019CAA -> ../../sda7lrwxrwxrwx 1 root root 11  1月 12 21:45 158c8fbb-a3d4-4cb9-a7a5-1ecf13586280 -> ../../sda10lrwxrwxrwx 1 root root 10  1月 12 21:45 18354ee2-3c44-405a-af87-7c2316c45983 -> ../../sda1lrwxrwxrwx 1 root root 10  1月 12 21:45 f233ebb4-8c6e-48ca-832c-08ceb567f928 -> ../../sda9lrwxrwxrwx 1 root root 10  1月 12 21:45 FE14E80014E7BA33 -> ../../sda3lrwxrwxrwx 1 root root 10  1月 12 21:45 FE3438FC3438BA0B -> ../../sda2  www.2cto.com  查看自己的  磁碟是在sda?  可以通過  sudo fdisk -l 查詢  我推薦一個圖形化的工具   GParted 工具  你可以一眼看出

 2 超看GID  (組ID ) 和UID (使用者ID )可以通過  查看 該檔案  查看  vim /etc/passwd    2 修改  /etc/fstab 檔案   (讓系統啟動的時候 自動掛載 ) sudo gedit /etc/fstab  其中  umask  是許可權的  屏蔽   用  777-000 就是你的許可權    其中  uid  和 gia  就是 你上面查詢的使用者識別碼 組ID   [html] # windows ntfs  software D  UUID=0001AC6D000973C1 /media/SoftWare          ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0  # windows ntfs  student  E  UUID=0003A300000D437F /media/Student           ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0  # windows ntfs  Media  F  UUID=000E08DD00019CAA /media/Medai             ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0  # windows ntfs  Else   G  UUID=000ACA5D000CE1C1 /media/Else             ntfs     defaults,nls=utf8,umask=000,uid=1000,gid=1000        0       0   3 儲存重啟即可 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.