My Kubuntu root user cannot chmod the files of an external hard drive

Dear all,

My Linux Kubuntu box is mystifying me.

The root user cannot chmod files on an external hard drive.

Here is my /etc/fstab file:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid,nouser 0 1
/dev/hda7 /home ext3 defaults,atime,auto,rw,dev,exec,suid,nouser 0 2
/dev/hda6 none swap sw 0 0
/dev/hdc  /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sda1 /mnt/usbdrive1 vfat defaults,uid=0,gid=0,noauto,rw,user 0 0
/dev/sda2 /mnt/usbdrive2 vfat defaults,uid=0,gid=0,noauto,rw,user 0 0
/dev/sda3 /mnt/usbdrive3 vfat defaults,uid=0,gid=0,noauto,rw,user 0 0
/dev/sda4 /mnt/usbdrive4 vfat defaults,uid=0,gid=0,noauto,rw,user 0 0

When I do the command

chmod 777 myfile

it just does nothing and does not give any error message.

Any clue..?

Thanks

Stephane
stephaneeybertAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

csgeekpyroCommented:
I'm assuming that it's one of those /dev/sda* disks that's giving you trouble...

vfat doesn't support file permissions, that's why you can't chmod anything on those.  You can pass the permissions to use on the devices when you mount them; see the manpage for mount for the syntax.
0
xDamoxCommented:
Hi,


What you will need todo is set a UMASK in your arguments in fstab e.g.

/dev/sda1 /mnt/usbdrive1 vfat defaults,uid=0,gid=0,noauto,rw,user,umask=0000 0 0

This will set /dev/sda1 to 777
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stephaneeybertAuthor Commented:
Thanks to you two!

It now works just fine!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.