VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Public directory (SOLVED)  (Read 371 times)

StrayBit

  • Vectorian
  • ****
  • Posts: 542
Public directory (SOLVED)
« 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?
« Last Edit: July 30, 2017, 12:01:29 pm by StrayBit »
Logged
7.2 STD B2 built on Feb-01-2017
HP 670 Win7 & VL7.0

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4430
Re: Public directory
« Reply #1 on: July 29, 2017, 11:19:32 am »

Filesystem "vfat" does not support unix permissions.
Are you sure the partition is mounted "rw"?
Logged

StrayBit

  • Vectorian
  • ****
  • Posts: 542
Re: Public directory
« Reply #2 on: July 29, 2017, 03:25:41 pm »

Would I need to change fstab shown above?
Logged
7.2 STD B2 built on Feb-01-2017
HP 670 Win7 & VL7.0

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4430
Re: Public directory
« Reply #3 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/
Logged

StrayBit

  • Vectorian
  • ****
  • Posts: 542
Re: Public directory
« Reply #4 on: July 30, 2017, 12:00:57 pm »

Many thanks, again, nightflier.
Logged
7.2 STD B2 built on Feb-01-2017
HP 670 Win7 & VL7.0