Linux Lite Forums

Full Version: Permissions on a secondary hard drive
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a secondary hard drive that all my files live on.  I have read+write access to everything except ONE FOLDER.  I don't get it.  I can't change the permissions either.

Any ideas?

Thanks
How do the owner/permissions set on ONE FOLDER differ from a directory that works as expected ?
How was ONE FOLDER created compared to a working directory ?
The whole file system was created and on the disk before I installed LINUX LITE on an SSD.  And the werid thing is that all the other folders work.

In this folder I cannot add or delete pics but I can in all the other folders.  This is the only folder that appears with a lock on its' icon.

Screenshot example:  [attachment=330]
Can you show us the permissions please ?
Check these with the 'ls -l' command.
Open a terminal by pressing Ctrl, Alt and T together,
Run the command below replacing the text 'path-to-the-directory-above ONE FOLDER' between the two / characters with your path to the parent directory of ONE FOLDER.  Keep the / characters in the command.

Code:
ls -al /path-to-the-directory-above ONE FOLDER/

Copy and paste the results.
Code:
ls -al /media/cw-lite/SECOND/Docs/Spa Stuff/Good pics/
ls: cannot access '/media/cw-lite/SECOND/Docs/Spa': No such file or directory
ls: cannot access 'Stuff/Good': No such file or directory
ls: cannot access 'pics/': No such file or directory

Like that?
We need to help the Linux cli interpreter if there are spaces in paths.
Assuming 'Spa Stuff' is the parent directory, try
Code:
ls -al /media/cw-lite/SECOND/Docs/"Spa Stuff"/
Code:
ls -al /media/cw-lite/SECOND/Docs/"Spa Stuff"/
total 148288
drwxrwxr-x 1 cw-lite cw-lite    24576 Mar 31 09:00  .
drwxr-xr-x 1 cw-lite cw-lite    65536 Feb 18 08:36  ..
drwxrwxr-x 1 cw-lite cw-lite     4096 Nov 11  2017 '3D manuals'
drwxrwxr-x 1 cw-lite cw-lite     4096 Nov 11  2017  BackUp-DB
drwxrwxr-x 1 cw-lite cw-lite        0 Nov 11  2017 'Bad pics'
drwxrwxr-x 1 cw-lite cw-lite    49152 Nov 11  2017  Buttons
drwxrwxr-x 1 cw-lite cw-lite     8192 Sep 15  2022  catalogs
-rwxrwxr-x 1 cw-lite cw-lite    14646 Jun 13  2008 'Category 2 list.docx'
-rwxrwxr-x 1 cw-lite cw-lite   250773 May 31  2009  cover_colors.jpg
drwxrwxr-x 1 cw-lite cw-lite    12288 Nov 11  2017  DataCat
-rwxrwxr-x 1 cw-lite cw-lite   239153 Feb 21  2008  DataCat.swf
drwxrwxr-x 1 cw-lite cw-lite        0 Nov 11  2017  Dbase2
drwxrwxr-x 1 cw-lite cw-lite    98304 Nov 11  2017  DbasePics
-rwxrwxr-x 1 cw-lite cw-lite  2324835 Dec  9  2009  DC-260-790C5E5122.pdf
-rwxrwxr-x 1 cw-lite cw-lite    24576 Mar 19  2008 'Digital Catalog Agreement Draft 3-17-08.doc'
drwxrwxr-x 1 cw-lite cw-lite     4096 Nov 11  2017  EPVs
-rwxrwxr-x 1 cw-lite cw-lite  2741159 Dec 16  2009 'Filter Cartridge pages 12-16-09.pdf'
-rwxrwxr-x 1 cw-lite cw-lite  2654070 Dec 17  2009 'Filter Cartridge pages 12-17-09 final.pdf'
-rwxrwxr-x 1 cw-lite cw-lite  2949440 Dec 15  2009 'Filter Cartridges 091215.pdf'
-rwxrwxr-x 1 cw-lite cw-lite  1175252 Dec  7  2009 'Filter Pages 1 and 2.pdf'
-rwxrwxr-x 1 cw-lite cw-lite  2284360 Dec 10  2009 'Filter pages thru 327.pdf'
dr-xrwxr-x 1 cw-lite cw-lite    65536 Mar 27 16:27 'Good pics'
-rwxrwxr-x 1 cw-lite cw-lite      925 Sep 10  2019 'Good pics - Shortcut (2).lnk'
-rwxrwxr-x 1 cw-lite cw-lite      925 Nov 11  2017 'Good pics - Shortcut.lnk'
-rwxrwxr-x 1 cw-lite cw-lite    11659 Jun 22  2010 'Google Voice Instructions.docx'
-rwxrwxr-x 1 cw-lite cw-lite  3100160 Mar  4  2009 'HeaterPhotos&Specs.xls'
-rwxrwxr-x 1 cw-lite cw-lite     2510 Dec 10  2007  mainmenu.php
-rwxrwxr-x 1 cw-lite cw-lite    26112 Jan 29  2009 'ObsoleteList(1).xls'
-rwxrwxr-x 1 cw-lite cw-lite     4625 Jun 25  2008  PDF-Placeholder.gif
drwxrwxr-x 1 cw-lite cw-lite     4096 Nov 11  2017  ProductInfoXLS
drwxrwxr-x 1 cw-lite cw-lite     4096 Nov 11  2017  professor
drwxrwxr-x 1 cw-lite cw-lite        0 Nov 11  2017  Receipts
-rwxrwxr-x 1 cw-lite cw-lite   297889 Sep 28  2009  save.jpg
-rwxrwxr-x 1 cw-lite cw-lite   164456 Aug  5  2009  supplier.pdf
drwxrwxr-x 1 cw-lite cw-lite        0 Sep  2  2011  SupplierProductInfo
drwxrwxr-x 1 cw-lite cw-lite        0 Nov 11  2017  UnitedManuals
drwxrwxr-x 1 cw-lite cw-lite  2629632 Jan  6 08:42  Uploaded
drwxrwxr-x 1 cw-lite cw-lite        0 Nov 11  2017 'Web Ideas'
drwxrwxr-x 1 cw-lite cw-lite        0 Nov 11  2017 'Wiring Diagrams'
-rwxrwxr-x 1 cw-lite cw-lite 30367362 Aug  5  2008 'Wiring Diagrams READY FOR WEBSITE.zip'
-rwxrwxr-x 1 cw-lite cw-lite 94624119 Aug  6  2008 'WWW missing photos.zip'
Code:
drwxrwxr-x 1 cw-lite cw-lite     4096 Nov 11  2017  EPVs
dr-xrwxr-x 1 cw-lite cw-lite    65536 Mar 27 16:27 'Good pics'
  ^

If we compare two directories, we can see the write permission ('-' instead of 'w') for 'Good Pics' is not set for the owner.

Earlier you said
Quote:I can't change the permissions either.
What methods have you tried and what happened in each case.
I right-clicked the folder, went into PERMISSIONS and tried to change it from READ to READ & WRITE.  It did not work.

Now I just tried the same thing and it did work....  I don't get it, but now I can add and delete photos.

Not sure what changed it but thank you for taking the time to help me.
Quote:thank you for taking the time to help me
You're welome - sorry we didn't get to the cause/fix.

Quote:The whole file system was created and on the disk before I installed LINUX LITE

Linux file systems have user, user groups, ownership and permission concepts to control file and directory rights.
This can cause problems when using disks in the way you've hinted at.
Non-linux file systems with no compatible concepts of owners and permissions are particularly prone.

But the problem as described is inconsistent so doesn't fit with the common causes and potential fixes.