Click to See Complete Forum and Search --> : [HDD] Configure Access for users


-=Gerrit=-
09-24-2003, 04:52 PM
Hi, as you can see in my post number I am kinda new to Linux. I used it before, but now using it again for future use :)

I have reinstalled my system today after a major error in KDE (installed some wrong packeges).

You all say you rather not use your ROOT account to work under. So I created a own account. Now the following problem occured: I cannot write to the windows partitions. I need to do this function because of the larger space in FAT and my stuff from school on my windows partition.

But because I always worked as root i never bothered installing rights for the other users. Now I want to configure my account for write acces to my fat. How can i do that??? I allready added the user to some extra groups, but i doesnt work...

Btw: I am using Suse 8.1 Pro with KDE3.1 fully installed. The FAT systems are 2 WinXP Partitions (FAT32)... Root has no problem, my user has :(


BTW: Thumbs up for the form!!! Realy nice and useful!



--------
edit: mmmmm chmod of /windows/d and /windows/D has no effect :confused:

DMR
09-24-2003, 05:56 PM
1. You can't change the permissions of a Windows mount point with Windows partition mounted. Unmount the partition before trying to chmod the directory.

2. In /etc/fstab, you need to use the "umask" option in the entry for your Windows partition. For example, this is the entry for one of my FAT partitions:

/dev/hda1 /mnt/win98 vfat defaults,umask=000

<edit>
Here's my explanation from a previous post, I hope it helps (obviously, substitute your /dev/hdxy and /mnt/whatever_directory values for the ones in my example):

The default permissions for a mounted FAT32 volume are rwx for root, but only rx for normal users.

In Linux, permission control works differently for FAT32 and NTFS filesystems than it does for native Linux filesystems (ext2, ext3, reiser, etc.). Try this:

1. The UNIX permissions of a directory onto which you mount a Windows filesystem can't be changed while the fileystem is mounted. Unmount the Windows partition; you should then be able to chmod the permissions of /mnt/Windows.

2. Windows doesn't support UNIX-style permissions, and you can only apply permissions to the entire filesystem, not to individual Windows files/folders. This is done with the "umask" option of the mount command. In /etc/fstab, change the mount entry for your Windows partition to this:

/dev/hda5 /mnt/Windows vfat users,defaults,umask=000 0 0

(the "users" option allows anyone to mount/unmount the drive and overrides the default , which is that only root is allowed to mount/unmount.)

The value of the permission bits used with umask are the opposite of those used with the chmod command. For example, the following pairs are equivalent:

umask=000 and chmod 777
umask=022 and chmod 755
</edit>

-=Gerrit=-
09-25-2003, 02:01 AM
OK TNX \O/

I'll try this when I am back at home (i'm @ my work now...)


Does linux remember these settings?? If no, where can I tell SuSE to perform these steps (so manually umount and then remount again!)

Tha I cannot give permisions to a VFAT i allready noticed.. This is only a kind of emulation and the windows filesystems does not know specific rights... I noticed this when I wanted to execute a file....


but i'll try this and hope it works!