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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-24-2003, 09:57 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: St.Petersburg
Distribution: Mandrake 10.1
Posts: 18
Rep:
|
vfat ownership
I have a vfat partition and it is mounted at boot time, it is set to supermount (Mandrake 9.1). I log on under my account (not root!), however, the owner of all files on the vfat partition is still root and it is impossible to change the ownership with 'su' and 'chown' - it says permission denied.
My goal is to have the vfat partition mounted at boot time and have myself (not root) be the owner of all files there. Is it possible? If so, what should I do to achieve it. Thanks!
|
|
|
09-24-2003, 10:00 AM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
you'll have to add an extra option in the /etc/fstab file for the entry to mount the fat drive...
both options below will work, you only need to use one of them, but remember the UID option is only going to specify one user, and the umask is for all if you have multiple users....
umask=000
and.
UID=XXX where XXX is the user ID of the user that wants access (in this case you  )
|
|
|
09-24-2003, 10:16 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: St.Petersburg
Distribution: Mandrake 10.1
Posts: 18
Original Poster
Rep:
|
Hmm, as long as I remember "umask 0 0 0" is already there (i can't check it now unfortunately since it is on my PC at home). But I will check it this evening!
|
|
|
09-24-2003, 10:30 AM
|
#4
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
well maybe if you tried to do it before and you actually typed 'umask 0 0 0' then thats probably why its not working....it is umask=000, all as one string..
but like you said, just check it out when you get home..
|
|
|
09-24-2003, 10:59 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
It's umask=0 (there doesn't have to be 3 zeroes). The umask=0 0 0 you saw is umask=0 with two other zeroes that have nothing to do with it. The umask=0 will set all permissions on the drive to rwxrwxrwx.
|
|
|
09-24-2003, 01:23 PM
|
#6
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
vfat doesn't support ownerships, therefore whoever mounted the partition owns everything.
You'll have to add "users,noauto" option to the fstab, then mount it yourself with some kind of script after you login.
|
|
|
09-24-2003, 03:25 PM
|
#7
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
negative...if he automounts at bootup it with the proper options anyone can access it
|
|
|
09-24-2003, 03:29 PM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
Anyone can access it, but it's still owned by root.
|
|
|
09-25-2003, 03:30 AM
|
#9
|
LQ Newbie
Registered: Jul 2003
Location: St.Petersburg
Distribution: Mandrake 10.1
Posts: 18
Original Poster
Rep:
|
Well, I have checked it yesterday. By default it was
/dev/hda5 /data vfat iocharset=utf8,umask=0 0 0
i made it first like
/dev/hda5 /data vfat iocharset=utf8,defaults,umask=000 0 0
and it did not work, any ideas why ?
then I made it like
/dev/hda5 /data vfat iocharset=utf8,umask=000,defaults,uid=501 0 0
and only then it worked
Again, the problem was not in accessing vfat, the problem was with the ownership of the files like aaa said.
But why can it not be done in such a way that the files on vfat are owned by the user who logs on ?
Anyways, thank you everybody for your help!
|
|
|
All times are GMT -5. The time now is 10:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|