File permissions again again

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
greenstar
Level 1
Level 1
Posts: 32
Joined: Sun Oct 15, 2017 4:14 pm

File permissions again again

Post by greenstar » Mon Jan 15, 2018 8:41 am

Hi, you folks must hate me for asking stupid questions!
I have been here before, and to be brutally honest, not had answers that were comprehensible. I am firm in the belief that permissions issues are so complex to sort out the system is not suitable for the user who simply wants something to work out of the box - ie, Ubuntu, Mint etc, are not, as widely claimed, sufficiently user friendly. I won't bother you any more with that. But I would like a bit more guidance as I waste hours of my time. There are answers on the net, but they don't always work, so I really think I am justified in that statement.

Ok, I have an external usb 1 Tb drive with my backup on it from other machines. It was just off the shelf from Amazon. I need urgently to back up files from my recent Mint install or it is useless. I also have an internal hard drive I cannot write to, and now find I cannot write to a new 32 Gb usb drive I bought for that purpose. How crap is that?

I found some advice on youtube.

Briefly, I opened nemo through the terminal as root. Gave me a window with 'elevated privileges'. Jolly good so far, looked hopeful, should work. Properties - permissions. Changed tab for owner to my name.
and ...

Sorry, could not change the owner of "Documents 200Gb": Error setting owner: Read-only file system

Well , f*)k! Yes, I don't want it to be read only , that's why I am in root trying fo change it!!!

Any ideas?

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: File permissions again again

Post by austin.texas » Mon Jan 15, 2018 9:34 am

What file system are you using on your external 1TB drive? NTFS? ext4? Or?
Mounting USB drives
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

User avatar
Flemur
Level 15
Level 15
Posts: 5919
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: File permissions again again

Post by Flemur » Mon Jan 15, 2018 9:50 am

greenstar wrote:Sorry, could not change the owner of "Documents 200Gb": Error setting owner: Read-only file system
Well , f*)k! Yes, I don't want it to be read only , that's why I am in root trying fo change it!!!
It says you were trying to change the owner. If you don't want it to be un-write-able, you should change the write permissions.
Any ideas?
Yes. Your post was pretty much "information free", so:
"Before you post please read how to get help" - right above your post:
http://forums.linuxmint.com/viewtopic.php?f=17&t=83444

IOW, the results of

Code: Select all

inxi -Fxz
and with the disk hooked up:

Code: Select all

sudo blkid 
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

Mute Ant
Level 13
Level 13
Posts: 4897
Joined: Tue Sep 03, 2013 7:45 pm

Re: File permissions again again

Post by Mute Ant » Mon Jan 15, 2018 9:57 am

"Read-only file system" You can't change the permissions because Linux has mounted the file system read-only. There's something wrong with it and it needs to be unmounted and repaired.
Data stored in an encrypted volume will only be accessible with the original password. Without this key, all the data will remain scrambled beyond hope of recovery.

greenstar
Level 1
Level 1
Posts: 32
Joined: Sun Oct 15, 2017 4:14 pm

Re: File permissions again again

Post by greenstar » Mon Jan 15, 2018 10:51 am

'There's something wrong with it and it needs to be unmounted and repaired'.

This IS helpful, although a problem indeed, as the drive contains all my backed up data for about 20 years - as it's my back up drive :) - so I am not inclined to reformat. Actually it is read-writable from my mac G4, which I used initially to partition it. All the partitions appear on the linux desktop and the files within read perfectly, so there can't surely be that much wrong. I'm not sure what file system I used, possibly NTFS.
Surely the problem is not fundamental given it's readable. I do not want to risk losing the data on it. I would rather buy another drive.

Meanwhile I managed to change my internal secondary hard drive to read/write, and have backed up the files I had accumulated on this linux machine.
The down side is that afterwards I find there is a glitch on my desktop. It boots up normally, but after a few minutes the wallpaper disappears, leaving a black background, and the files on the desktop do not open. Nemo seems to be working normally, and will open the same files as per usual, and I have been able to continue backing up.

greenstar
Level 1
Level 1
Posts: 32
Joined: Sun Oct 15, 2017 4:14 pm

Re: File permissions again again

Post by greenstar » Mon Jan 15, 2018 10:56 am

Code: Select all

tony@tony-G31M-ES2L ~ $ inxi -Fxz
System:    Host: tony-G31M-ES2L Kernel: 4.8.0-53-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.4.3 (Gtk 3.18.9-1ubuntu3.3)
           Distro: Linux Mint 18.2 Sonya
Machine:   System: Gigabyte product: G31M-ES2L
           Mobo: Gigabyte model: G31M-S2L Bios: Award v: F8 date: 02/05/2009
CPU:       Dual core Pentium E5300 (-MCP-) cache: 2048 KB
           flags: (lm nx sse sse2 sse3 ssse3 vmx) bmips: 10400
           clock speeds: max: 1800 MHz 1: 1200 MHz 2: 1200 MHz
Graphics:  Card: NVIDIA G98 [GeForce 8400 GS Rev. 2] bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: nouveau (unloaded: fbdev,vesa)
           Resolution: 1680x1050@59.95hz
           GLX Renderer: Gallium 0.4 on NV98
           GLX Version: 3.0 Mesa 17.0.7 Direct Rendering: Yes
Audio:     Card Intel NM10/ICH7 Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.8.0-53-generic
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: c000 bus-ID: 03:00.0
           IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 215.5GB (17.5% used)
           ID-1: /dev/sda model: ST340810A size: 40.0GB
           ID-2: /dev/sdb model: WDC_WD1600AAJB size: 160.0GB
           ID-3: USB /dev/sdg model: DataTraveler_2.0 size: 15.5GB
Partition: ID-1: / size: 35G used: 23G (71%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 2.68GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 36.0C mobo: N/A gpu: 34.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 197 Uptime: 26 min Memory: 1067.9/2502.5MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 

Code: Select all

tony@tony-G31M-ES2L ~ $ sudo blkid 
[sudo] password for tony: 
/dev/sda1: UUID="88e38993-5427-4547-8312-79d95e4b3802" TYPE="ext4" PARTUUID="8d0ce3d3-01"
/dev/sda5: UUID="c8270b20-8943-4755-8622-17a123ff09ae" TYPE="swap" PARTUUID="8d0ce3d3-05"
/dev/sdb1: UUID="311c71e8-8c24-41c2-8f8e-042da5bfc694" TYPE="ext4" PARTUUID="000f3d98-01"
/dev/sdg1: PARTLABEL="Apple"
/dev/sdg3: UUID="0c5f57b2-2495-38cd-a474-4d8bd4ee4f27" LABEL="400 Gb 2" TYPE="hfsplus" PARTLABEL="Apple_HFS_Untitled_1"
/dev/sdg5: UUID="6cec18e1-2e60-3b8e-9332-1de582d57ce7" LABEL="OS 9,2 200 Gb" TYPE="hfsplus" PARTLABEL="Apple_HFS_Untitled_2"
/dev/sdg7: UUID="10792e5f-2219-3766-ae67-88dd0b9e1778" LABEL="Tiger  BU 20 Gb" TYPE="hfsplus" PARTLABEL="Apple_HFS_Untitled_3"
/dev/sdg9: UUID="b27a5f5b-ce3d-3f21-bb7e-9cb13a430dd0" LABEL="Documents 200Gb" TYPE="hfsplus" PARTLABEL="Apple_HFS_Untitled_4"
/dev/sdg11: UUID="d832c9d0-18af-3868-98b9-b71c34343906" LABEL="AV Media 100Gb" TYPE="hfsplus" PARTLABEL="Apple_HFS_Untitled_5"
/dev/sdg12: UUID="92842c30-bbd0-3cb9-9545-c3fc011bf08a" LABEL="Boot OSX" TYPE="hfsplus" PARTLABEL="eXternal booter"
/dev/sdg13: TYPE="ufs" PARTLABEL="Apple_UFS_Untitled_6"
tony@tony-G31M-ES2L ~ $
Last edited by Moem on Mon Jan 15, 2018 11:28 am, edited 1 time in total.
Reason: Adding [code] tags. They retain some formatting that makes your output easier to read.

Mattyboy
Level 6
Level 6
Posts: 1196
Joined: Thu Mar 26, 2015 2:17 pm

Re: File permissions again again

Post by Mattyboy » Mon Jan 15, 2018 1:39 pm

Sounds like its apples fault.
HFS+ is the files system used on many Apple Macintosh computers by Mac OS. You can mount this filesystem in Ubuntu with read only access by default. If you need read/write access then you have to disable journaling with OS X before you can continue.
https://help.ubuntu.com/community/hfsplus

greenstar
Level 1
Level 1
Posts: 32
Joined: Sun Oct 15, 2017 4:14 pm

Re: File permissions again again

Post by greenstar » Thu Jan 18, 2018 6:52 am

Hi, thanks, I have made limited progress.
I have now reformatted an empty 400 Gb partition of my 1Tb external drive as HSF+. (I cannot reformat the partitions with my backed up data on without losing it of course. I have also attempted to copy the data to a 500Gb usb stick, formatted s HSF+, but find multiple errors such as empty folders, and i have nowhere else to back up the total of 300 Gb worth). But 400Gb will be enough.

With the drive on my Mint machine, by opening Nemo as root (sudo nemo) I have been able to change owner and read write on the 400Gb HSF+ partition. Owner was 'root', changed to myself, 'tony'.
Owner is then shown as 'tony' when opened as root or normally.
However, I find subsequently, in root or other, that read/write has defaulted to -------------- and i cannot write folders or files there. 'more info' just tells me 'read only'.



And also now I have a black background and dysfunctional desktop whenever I open nemo. That can wait.

Mute Ant
Level 13
Level 13
Posts: 4897
Joined: Tue Sep 03, 2013 7:45 pm

Re: File permissions again again

Post by Mute Ant » Thu Jan 18, 2018 8:30 am

"500GB USB stick formatted as HSF+, but find multiple errors such as empty folders" Yah there's a lot of fake stuff.

This is a real one...
$300
512GB SanDisk SDXC Memory Card, Class 10, 4K UHS-I Class 3 (U3), 95MB/s Read, 90MB/s Write

This is a fake...
$30
Ultra Micro SD Card 512GB Class 10 TF Flash Camera Memory SDHC SDXC + Adapter UK
Data stored in an encrypted volume will only be accessible with the original password. Without this key, all the data will remain scrambled beyond hope of recovery.

User avatar
JerryF
Level 9
Level 9
Posts: 2756
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: File permissions again again

Post by JerryF » Thu Jan 18, 2018 9:14 am

Mattyboy wrote:Sounds like its apples fault.
HFS+ is the files system used on many Apple Macintosh computers by Mac OS. You can mount this filesystem in Ubuntu with read only access by default. If you need read/write access then you have to disable journaling with OS X before you can continue.
https://help.ubuntu.com/community/hfsplus
+1
IF AND WHEN your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

User avatar
BG405
Level 6
Level 6
Posts: 1237
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: File permissions again again

Post by BG405 » Fri Jan 19, 2018 3:55 pm

greenstar wrote:sudo nemo
Therein lies a likely cause of your disappearing wallpaper etc., you should always use gksudo for launching graphical applications with elevated privileges. You can check this with

Code: Select all

sudo find $HOME ! -user $USER -type f
... if anything other than the prompt appears you'll need to correct it.
Dell Inspiron 1525 - LM17.3 CE 64-------------------Acer D255E 2GB - Manjaro KDE, LM17.3 KDE 32
Toshiba NB305 - LM17.3 Xfce 32---------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Dell PII 350 64MB - Puppy 4.3 & Win98-SE

greenstar
Level 1
Level 1
Posts: 32
Joined: Sun Oct 15, 2017 4:14 pm

Re: File permissions again again

Post by greenstar » Sun Jan 21, 2018 7:00 am

Thanks Mattyboy, but when I initially formatted with OsX I had a choice of journaled or not, and chose not and found it worked with usb sticks. So it's not the mac's fault, seems unlikely anyway.
BG405, great, that's good to know, I found 'sudo nemo' as advice online, so it worked for someone, I stand corrected.
But how do I fix it?

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: File permissions again again

Post by austin.texas » Sun Jan 21, 2018 9:12 am

greenstar wrote:But how do I fix it?
First, is there a problem?
What is the result of that command?

Code: Select all

sudo find $HOME ! -user $USER -type f
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: File permissions again again

Post by Cosmo. » Sun Jan 21, 2018 9:52 am

There is no need for sudo for this command, Recommending sudo, if it is not needed does give the risk, that sudo gets used wrongly, as we can see here (in correlation with nemo).

So out of the current situation I repeat the old warning: Never us sudo for launching any(!) graphical program! This creates new problems, until the chance, that you can not log into your account at the next time.

User avatar
BG405
Level 6
Level 6
Posts: 1237
Joined: Fri Mar 11, 2016 3:09 pm
Location: England

Re: File permissions again again

Post by BG405 » Sun Jan 21, 2018 3:37 pm

Cosmo. wrote:There is no need for sudo for this command
Thanks for pointing that out, I just pulled it from my bash history and seem to recall seeing errors using it without sudo. Was a long time ago. :oops:

Hopefully it's harmless in this case.
Dell Inspiron 1525 - LM17.3 CE 64-------------------Acer D255E 2GB - Manjaro KDE, LM17.3 KDE 32
Toshiba NB305 - LM17.3 Xfce 32---------------------K7S5A AMD 1.2GHz - LM17.3 Xfce 32 & WinXP-Pro
Acer Aspire E11 ES1-111M - LM18.2 KDE 64 ----Dell PII 350 64MB - Puppy 4.3 & Win98-SE

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: File permissions again again

Post by Cosmo. » Sun Jan 21, 2018 4:19 pm

Yes, in this case sudo is harmless. But as I pointed out already, the OP seems to use sudo as a kind of Swiss army knife, useful for everything and if in doubt to be used. So I pointed ut, that sudo is neither a universal tool nor is it necessarily harmless.

greenstar
Level 1
Level 1
Posts: 32
Joined: Sun Oct 15, 2017 4:14 pm

Re: File permissions again again

Post by greenstar » Sun Jan 21, 2018 5:17 pm

tony@tony-G31M-ES2L ~ $ find $HOME ! -user $USER -type f
find: ‘/home/tony/.cache/dconf’: Permission denied

I am finding now that the workaround allowing me to back up is failing.
I had reformatted my usb sticks to HFS+ (not journaled) and performed an initial backup, having reorganised my files to fit lower capacity sticks. That worked well.
But now I find the same sticks have become 'read only', owned by root, and when I open nemo in root and change it as above, it reverts immediately to read only. Hours of work.

greenstar
Level 1
Level 1
Posts: 32
Joined: Sun Oct 15, 2017 4:14 pm

Re: File permissions again again

Post by greenstar » Sun Jan 21, 2018 5:19 pm

And
tony@tony-G31M-ES2L ~ $ sudo find $HOME ! -user $USER -type f
[sudo] password for tony:
/home/tony/.cache/dconf/user
tony@tony-G31M-ES2L ~ $

Pippin
Level 3
Level 3
Posts: 125
Joined: Wed Dec 13, 2017 11:14 am
Location: NL/DE/TH

Re: File permissions again again

Post by Pippin » Sun Jan 21, 2018 5:31 pm

Code: Select all

/home/<user>/.cache/dconf/user
it`s the case here also, it`s root root
"One good thing about music, when it hits you feel no pain.”
B.M.

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: File permissions again again

Post by Cosmo. » Sun Jan 21, 2018 5:39 pm

Forget this special case. This is the result of a long standing bug in Mint (more exactly the update manager), existing since LM 18 and heaven knows, why it does not get fixed. If there are no additional entries in the output for the command there is nothing to worry regarding ownership problems.

Post Reply

Return to “Newbie Questions”