How to permanently obtain the read and write permissions for a folder in ubuntu

Source: Internet
Author: User
Because my notebook is a ubuntu + XP SP2 dual system, you need to access and read and write windows fat32 and ntfs partitions in ubuntu. The following is my method: 1. After ubuntu is installed, the system will automatically mount the fat32 and ntfs partitions. However, some folders in the fat32 partition have only the access permission and must be changed to the read and write permissions, the method is to enter: sudochmod-R777 [Folder path] in the terminal. For example, because my laptop is ubuntu 7.04 + XP SP2, sudochmod-R needs to access and read and write windows fat32 and ntfs partitions in ubuntu.

The following is my method:

1. After ubuntu is installed, the system will automatically mount the fat32 and ntfs partitions. However, some folders in the fat32 partition have only the access permission. To change the permission to read and write, enter the following in the terminal: sudo chmod-R 777 [Folder path].

For example, sudo chmod-R 777/media/sda6/

After you press enter, the sda6 partition will have the read and write permissions. Note that partitions in linux are also viewed as files. The sda6 in the above command is actually a fat32 partition in xp. To view the number of the partition in ubuntu, open the media folder in the root directory.

2. Temporarily obtain the root permission to access the root directory: sudo nautilus -- browser

3, read and write NTFS partition method: of course is the combination of ntfs-3G and fuse, google will have a lot of methods, but a little attention, that is, the latest version of ntfs-3g and fuse can be directly obtained and installed in the new software package manager, the version is much newer than the old version on the network. However, the method for implementing read/write permissions is just referring to the net document. I succeeded.

The method is also listed here:
First install the ntfs-3g and fuse, to the new in a search there are, a total of four software packages. They are: fuse-utils, libfuse2, libntfs3g0, ntfs-3g.

Then:
(1) determine the NTFS partition to be mounted:
Sudo fdisk-l | grep NTFS
(2) back up and modify the fstab file:
Sudo cp/etc/fstab. bak
Gksu gedit/etc/fstab

Find the partition number you want to mount. For example, if I am sda5, add # before the original configuration for future recovery. Then add the following:

UUID = uuid_code/media/sda5 ntfs-3g silent, umask = 0, locale = en_US.utf8 0 0
(This is the setting of my machine)

(3) modify the modules file:
Gksu gedit/etc/modules

Add fuse in the last line. If yes, you do not need to add it.

Restart, OK!
Related Article

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.