LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   File permission, change ownership (https://www.linuxquestions.org/questions/linux-newbie-8/file-permission-change-ownership-625156/)

revenge80200 03-02-2008 11:40 AM

File permission, change ownership
 
Top of the morning,

I am trying to change the ownership of a storage drive's directories and respective files, but it's not quite working.

The /etc/fstab for the drive is as follows:
/dev/hdb1 /home/hdb1 vfat user,auto 0 0

I have tried to change the file ownership with:
su
chown user -R hdb1
which results in operation not permitted for all directories and respective files.

I have also tried:
su
chmod a+wrx -R hdb1
which result is about the same thing, operation not permitted.

Mind you, at one point, as a user I did have access to the storage drive with wrx permissions. I am just not sure as to what has changed.

Any ideas as to what I am doing wrong?
Thanks,
Eric.

Tinkster 03-02-2008 11:43 AM

Quote:

Any ideas as to what I am doing wrong?
Yup. You're using FAT. Or, rather, trying to make it understand
Linux' ideas of permissions and ownerships, which it can't.

What you CAN do is mount it with the appropriate uid added to
the line in /etc/fstab


Cheers,
Tink

revenge80200 03-02-2008 01:02 PM

Yup, that did the trick.

I'll make sure not to use the FAT32 when I add the next drives.

Thanks Tink,
Eric.


All times are GMT -5. The time now is 12:44 AM.