Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
|
|
02-17-2003, 05:49 AM
|
#1
|
Member
Registered: Aug 2002
Distribution: SME Server, CentOS
Posts: 219
Rep:
|
Permissions problem in mounted vfat partition
I have an old HD drive that used to have a dual boot Linux/Windows installation on it. I recently added the drive to a Linux installation that I wanted to use for experimenting with Samba. I was hoping that I could use the old Windows vfat partition as a Samba share.
But, I am finding that I cannot change the permissions on the old vfat shares so that a low level Samba client can write to the share. I've tried a variety of different mount options and switches and it makes no difference. I keep getting "Operation not permmited" messages whenever I try using chmod to allow others to write to that directory or those files where the partition is mounted.
I thought maybe that there was a permissions set under Windows that is causing the problem. But I can no longer boot to that installation, so that would not be a solution.
Does anyone have any idea what the problem here is?
|
|
|
04-01-2003, 03:05 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
You need a mix of uid/gid and maybe an umask setting for the partition, and even then it'll be writable only by that single user.
Look at "man mount" under "Mount options for fat".
|
|
|
04-02-2003, 07:41 PM
|
#3
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,368
|
vfat permissions, etc.
vfat file systems have no file table entries for permissions, owner, etc. Linux fakes these things by applying the mount point directory characteristics to all of its subdirectories and their files.
Linux is also sticky about changing the characteristics of an active mount point. So the way that I would approach your problem would be to dismount the vfat partition so that the mount point is just an ordinary empty directory. Then set the ownership and permissions to whatever works best for every file on the vfat partition. Then remount the partition.
|
|
|
04-04-2003, 05:19 PM
|
#4
|
Member
Registered: Mar 2003
Posts: 41
Rep:
|
mount it with umask=0222 option and that should fix your problem
|
|
|
All times are GMT -5. The time now is 11:19 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
|
|