VectorLinux

The nuts and bolts => Networking & Security => Topic started by: StrayBit on July 29, 2017, 09:02:44 am

Title: Public directory (SOLVED)
Post by: StrayBit on July 29, 2017, 09:02:44 am
I have a partition set aside as a general repository and one devoted to Iso as fstab shows:
Quote
/dev/sda3   /mnt/Public   vfat   defaults 0 0
/dev/sdb5   /mnt/Iso   reiserfs   defaults 0 0
In the past, there was never any issue accessing/reading/writing in them.  Now, only root can write Public though I can read the files.  I have no problem with Iso.
Quote
root:# ls -l /mnt       
drwxrwxr-x  7 root users  552 Jul 27 09:07 Iso/
drwxr-xr-x  2 root root  8192 Jul 29 09:24 Public/
I have tried
Quote
root:# chown -R bruce:users /mnt/Public
chown: changing ownership of '/mnt/Public/bookmarks1707.html': Operation not permitted
chown: changing ownership of '/mnt/Public/Test.abw': Operation not permitted
chown: changing ownership of '/mnt/Public': Operation not permitted
vector://mnt/Public
root:# chown -R :users /mnt/Public
chown: changing group of '/mnt/Public/bookmarks1707.html': Operation not permitted
chown: changing group of '/mnt/Public/Test.abw': Operation not permitted
chown: changing group of '/mnt/Public': Operation not permitted
The only thing I can think of is a couple of months ago, I lost sda and had to replace it.
Is there anything I can do do to get it writable by every body?
Title: Re: Public directory
Post by: nightflier on July 29, 2017, 11:19:32 am
Filesystem "vfat" does not support unix permissions.
Are you sure the partition is mounted "rw"?
Title: Re: Public directory
Post by: StrayBit on July 29, 2017, 03:25:41 pm
Would I need to change fstab shown above?
Title: Re: Public directory
Post by: nightflier on July 30, 2017, 04:28:15 am
Sorry, didn't read op closely enough, looks like the permissions on folder where sda3 is mounted (/mnt/Public) restricts write to root only.

A search suggests a need for a umask option in fstab:
http://www.linuxquestions.org/questions/linux-newbie-8/write-permissions-in-etc-fstab-for-vfat-filesystem-376215/
Title: Re: Public directory
Post by: StrayBit on July 30, 2017, 12:00:57 pm
Many thanks, again, nightflier.