LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-01-2004, 11:28 AM   #1
Nurfen
LQ Newbie
 
Registered: Jul 2004
Location: Norway
Distribution: Mandrake
Posts: 1

Rep: Reputation: 0
Changing ownership of folders


Hi

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
Password:
[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, 12:00 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,354

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
"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.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply


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 03:20 AM
Changing ownership of vfat mount maamold Linux - Software 2 02-25-2005 02:27 AM
changing the ownership djh Slackware 3 11-08-2004 04:16 AM
Changing ownership of mysqld process macdav76 Linux - Newbie 0 12-08-2003 05:24 PM
changing ownership of downloaded file ergo_sum Linux - Newbie 2 09-19-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

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