Troubleshoot issues where Linux cannot use chmod to change permissions

Source: Internet
Author: User

I installed the WIN10 and Ubuntu dual system, found in Ubuntu mount Windows hard disk without the command chmod change the permissions of the file, the workaround is logged as follows:

For an issue that uses the command $ chmod 777 dirname cannot change permissions.

1.lsattr-a View the permissions of all the files in the current directory, determine if the file permissions you want to change have I, as follows:

-------------e--./.gnome
---i------------./. IntelliJIdea2016.1
-------------e--./.mozilla
-------------e--./.dbeaver
-------------e--./.gksu.lock
-------------e--./.xsession-errors

File. IntelliJIdea2016.1 has permission I lock, next unlock

2,chattr-i . IntelliJIdea2016.1 Remove the I permission from the file (believe that you can then change the file permissions using chmod).

If Lsattr does not find the word "I", then there is another case where the NTFS system you are using is mounted without using the command. Use the following command:

sudo mount-t ntfs-o rw,auto,user,fmask=0022,dmask=0000,exec/dev/sda6/media/rjh/work/

for English good children's shoes, please refer to:http://askubuntu.com/questions/11840/how-do-i-use-chmod-on-an-ntfs-or-fat32-partition

Troubleshoot issues where Linux cannot use chmod to change permissions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.