PCLinuxOS New User Guide : ChangeHDDPermissions

HomePage :: PCLinuxOS Forum | Index | Categories | Changes | Login/Register
Most recent edit on 2007-05-21 20:11:34 by SySy [moved]

Additions:
moved to http://docs.mypclinuxos.com/ChangeHDDPermissions

Deletions:

How to change files on other harddisks

Back to The Installed PCLinuxOS FAQ
THIS PAGE BEING MOVED TO http://docs.mypclinuxos.com/ChangeHDDPermissions
Disclaimer: this page isn't completely finished yet.
Linux by default only allows reading of other harddisks in your computer. This prevents anything from doing harm to those harddisks, including preventing virusses, spyware and hackers. But you do obviously want to change files yourself! So you'll need to change some permissions. We'll presume in this example that you want write-access to /mnt/hdd1, there are a few ways to go here.

The partition isn't a Windows partition

If the partition you want access to isn't a Windows partition, and also isnt' the root partition of another Linux, this is what you can do.
Using the PCLinuxOS Control Center
<Needs to be written still>
The manual Terminal/Console way.
Open a terminal/console and type
$ su
<enter root password>
# chown -R <username>.<username> /mnt/hdd1
# chmod 1777 /mnt/hdd1

Where <username> is substituted for the name you use when you log in. And /mnt/hdd1 is substituted to the /mnt folder you want write-access to.
What you basically do with these commands is to make you the owner of the files on the /mnt/hdd1 partition. If you are using your system with other people (and accounts) this might not always give the best result.

The partition IS a Windows partition

Windows comes with two file partition flavors. The first one being FAT, the other one being NTFS.
FAT Partitions
FAT (and FAT16 and FAT32 varieties) are Windows 9x filesystems, so FAT is not a native Linux file system and it has no permission structure like Linux/Unix filesystems do. You can change permissions for the entire partition through the options in the fstab file. You can't change permissions inside a FAT32 partition with the usual commands because they don't have any native permissions. If you would, you will be getting error messages saying "# chown: changing ownership of `<filename.of.each.file.on.partition>': Operation not permitted". Here's a typical fstab entry for a FAT32 partition with read/write access by all users:
/dev/hda1 /mnt/win_c vfat umask=0,user,codepage=850,iocharset=iso8859-1,exec 0 0
If you you delete everything after vfat in your problem entry and insert what I gave you above, i.e. "umask=0,user,codepage=850,iocharset=iso8859-1,exec 0 0", it should work. The most important option in the above line is "umask=0"; that's what determines what permission structure linux will graft on to FAT32. There are other ways to set up fstab and many posts on this very topic but this should work. Be sure to unmount and remount the partition for the fstab edit to take effect.
NTFS Partitions
NTFS filesystems come with Windows NT/XP. At the moment, out-of-the-box (on a fresh installation) PCLinuxOS does not support writing to NTFS partitions. There are some work-arounds, but at this moment they are not available via this Wiki.

CategoryFAQ




Edited on 2007-05-18 19:19:16 by IanDawson [Porting to new wiki]

Additions:
THIS PAGE BEING MOVED TO http://docs.mypclinuxos.com/ChangeHDDPermissions



Edited on 2006-02-04 03:54:03 by LexNL [Footer correction]

Additions:



Deletions:




Edited on 2006-02-04 03:51:47 by LexNL [Added footer]

Additions:

CategoryFAQ




Edited on 2006-02-04 03:32:16 by LexNL [Minor corrections]

Additions:
Linux by default only allows reading of other harddisks in your computer. This prevents anything from doing harm to those harddisks, including preventing virusses, spyware and hackers. But you do obviously want to change files yourself! So you'll need to change some permissions. We'll presume in this example that you want write-access to /mnt/hdd1, there are a few ways to go here.
Where <username> is substituted for the name you use when you log in. And /mnt/hdd1 is substituted to the /mnt folder you want write-access to.
What you basically do with these commands is to make you the owner of the files on the /mnt/hdd1 partition. If you are using your system with other people (and accounts) this might not always give the best result.


Deletions:
Linux by default only allows reading of harddisks. This obviously prevents a whole load of problems, including prevents virusses, spyware and hackers from doing harm. But you do want to changes files yourself! So you'll need to change some permissions.
We'll presume in this example that you want write-access to /mnt/hdd1, there are a few ways to go here.
Where <username> is substituted for the name you use when you log in.




Oldest known version of this page was edited on 2006-02-04 03:28:04 by LexNL [Initial text]
Page view:

How to change files on other harddisks

Back to The Installed PCLinuxOS FAQ

Disclaimer: this page isn't completely finished yet.

Linux by default only allows reading of harddisks. This obviously prevents a whole load of problems, including prevents virusses, spyware and hackers from doing harm. But you do want to changes files yourself! So you'll need to change some permissions.

We'll presume in this example that you want write-access to /mnt/hdd1, there are a few ways to go here.

The partition isn't a Windows partition


If the partition you want access to isn't a Windows partition, and also isnt' the root partition of another Linux, this is what you can do.

Using the PCLinuxOS Control Center

<Needs to be written still>

The manual Terminal/Console way.

Open a terminal/console and type
$ su
<enter root password>
# chown -R <username>.<username> /mnt/hdd1
# chmod 1777 /mnt/hdd1

Where <username> is substituted for the name you use when you log in.

The partition IS a Windows partition


Windows comes with two file partition flavors. The first one being FAT, the other one being NTFS.

FAT Partitions

FAT (and FAT16 and FAT32 varieties) are Windows 9x filesystems, so FAT is not a native Linux file system and it has no permission structure like Linux/Unix filesystems do. You can change permissions for the entire partition through the options in the fstab file. You can't change permissions inside a FAT32 partition with the usual commands because they don't have any native permissions. If you would, you will be getting error messages saying "# chown: changing ownership of `<filename.of.each.file.on.partition>': Operation not permitted". Here's a typical fstab entry for a FAT32 partition with read/write access by all users:

/dev/hda1 /mnt/win_c vfat umask=0,user,codepage=850,iocharset=iso8859-1,exec 0 0

If you you delete everything after vfat in your problem entry and insert what I gave you above, i.e. "umask=0,user,codepage=850,iocharset=iso8859-1,exec 0 0", it should work. The most important option in the above line is "umask=0"; that's what determines what permission structure linux will graft on to FAT32. There are other ways to set up fstab and many posts on this very topic but this should work. Be sure to unmount and remount the partition for the fstab edit to take effect.

NTFS Partitions

NTFS filesystems come with Windows NT/XP. At the moment, out-of-the-box (on a fresh installation) PCLinuxOS does not support writing to NTFS partitions. There are some work-arounds, but at this moment they are not available via this Wiki.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.2205 seconds