LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-02-2008, 12:40 PM   #1
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Rep: Reputation: 30
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.
 
Old 03-02-2008, 12:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 03-02-2008, 02:02 PM   #3
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Yup, that did the trick.

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

Thanks Tink,
Eric.
 
  


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
change file permission of a mouse device file permanently alexandre_fs Linux - General 5 01-09-2007 07:30 AM
how to change the file permission ?? AK prince Slackware 17 08-05-2005 01:16 PM
Cannot Change File Permission dsuratman Linux - Newbie 12 11-03-2003 02:47 PM
scp - peserve file ownership and permission eyt Linux - Newbie 6 10-24-2003 04:41 PM
cp command change the file permission? myunicom Linux - General 6 09-24-2003 09:15 AM

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

All times are GMT -5. The time now is 10:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration