Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-01-2004, 12:28 PM   #1
LQ Newbie
Registered: Jul 2004
Location: Norway
Distribution: Mandrake
Posts: 1

Rep: Reputation: 0
Changing ownership of folders


I've got a problem with changing the ownership of my pictures folder.
I mounted my camera:
[root@localhost ellen]# mount -t vfat /dev/sda1 /mnt/camera/

then I put the pics in my pictures folder that are made in my windows partition. (I run dual-boot mdk 10 and win 2k)
[root@localhost ellen]# mount /dev/sda1 -t vfat /mnt/windows/BACKUP_BILDER/

Then I want to upload them to the net.
I have gFTP and use that. When I tried to change directory in gFTP I got this message: "Could not change local directory to /mnt/windows/BACKUP_BILDER: Permission denied"

So I thought I had to change the ownership to my regular user, ellen. But I can't.

[ellen@localhost ellen]$ su
[root@localhost ellen]# chown ellen /mnt/windows/BACKUP_BILDER/
chown: changing ownership of `/mnt/windows/BACKUP_BILDER/': Operation not permitted

why can't root change the ownership of this folder?
Old 08-01-2004, 01:00 PM   #2
LQ Guru
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,890

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
"why can't root change the ownership of this folder?"

The VFAT file system has no provision for ownership or permissions. So Linux fakes ownership and permissions by giving every directory and file in the mounted VFAT file system the same ownership and permissions as the mountpoint. You can change the permissions for everything in the file system en masse by changing /mnt/windows but you cannot change individual files or directories within the file system mounted on /mnt/windows. Also I think that you have to umount /mnt/windows before you can change its permissions and then remount it.

Be prepared. Create a LifeBoat CD.

Steve Stites


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing permissions and ownership on many files and folders Cinematography Linux - General 4 08-01-2005 04:20 AM
Changing ownership of vfat mount maamold Linux - Software 2 02-25-2005 03:27 AM
changing the ownership djh Slackware 3 11-08-2004 05:16 AM
Changing ownership of mysqld process macdav76 Linux - Newbie 0 12-08-2003 06:24 PM
changing ownership of downloaded file ergo_sum Linux - Newbie 2 09-19-2003 08:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration