LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-07-2023, 02:48 PM   #16
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled

Quote:
Originally Posted by Apprentice+ View Post
I don't understand where you are going with this!
I had already run ls in the question!
As I said, I wanted to check for a particular issue first, and fix it second. In this case, I checked for locked "hidden" files, and no, there weren't any.

And my next idea, is already Petri Kaukasoina's #15 above.
 
Old 01-07-2023, 04:24 PM   #17
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 994

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
When you did getfacl .../Spaces , was "Spaces" the directory containing your files? If not, and "Spaces" was only one of those files, it could be that your directory containing the files lack the executable permission. The read permission gives you right to list the contents of the directory, the executable permission gives you right to enter the directory and the write permission to a directory gives you the right to create and rename files.

Otherwise, regardless of the permissions on the files, it could be that your filesystem for some reason has been mounted readonly. Do a:

Code:
cat /proc/mounts
and look for the line with the filesystem. Is it mounted rw or ro?

regards Henrik
 
Old 01-07-2023, 05:35 PM   #18
Apprentice+
Member
 
Registered: May 2021
Distribution: Slackware64-Current
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
What is the error message when you try to rename:
Code:
# mv Conta* conta_renamed.txt
The file you mention has no problem, only the ones with locks
But your idea worked! For the graphical part I could not rename! I noticed that the terminal worked! This allows me to fix the files that are locked!
I have no idea what caused this for several files!

Code:
bash-5.2# ls -l
total 144
-rw-rw---- 1 hc hc    533 May 13  2018 Conta\ Espaços\ em\ Branco.txt
-rw-rw---- 1 hc hc 120003 May 13  2018 Count\ white\ spaces.png
-rw-rw---- 1 hc hc      3 Jan  7 11:04 test.txt
-rw-rw---- 1 hc hc   1494 Feb 15  2019 \ remove\ all\ extra\ blank\ spaces\ from\ giv.txt
-rw-rw---- 1 hc hc   1451 Feb 15  2019 \ trim\ both\ leading\ and\ trailing\ white\ s.txt
-rw-rw---- 1 hc hc   1374 Feb 15  2019 \ trim\ leading\ white\ space\ characters\ fr.txt
-rw-rw---- 1 hc hc   1342 Feb 15  2019 trim\ trailing\ white\ space\ characters\ fr.txt

bash-5.2# mv *remove*.txt test2.txt
 
Old 01-07-2023, 05:38 PM   #19
Apprentice+
Member
 
Registered: May 2021
Distribution: Slackware64-Current
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
What is the error message when you try to rename:
Code:
# mv Conta* conta_renamed.txt
I was always trying to rename from the graphical part, be it in konqueror, dolphin or thunar, and the message was that the file did not exist!
I don't know why I didn't try the terminal! Since the terminal got!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2023-01-07_20-36-28.png
Views:	17
Size:	13.9 KB
ID:	40182  
 
Old 01-07-2023, 05:41 PM   #20
Apprentice+
Member
 
Registered: May 2021
Distribution: Slackware64-Current
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by henca View Post
When you did getfacl .../Spaces , was "Spaces" the directory containing your files? If not, and "Spaces" was only one of those files, it could be that your directory containing the files lack the executable permission. The read permission gives you right to list the contents of the directory, the executable permission gives you right to enter the directory and the write permission to a directory gives you the right to create and rename files.

Otherwise, regardless of the permissions on the files, it could be that your filesystem for some reason has been mounted readonly. Do a:

Code:
cat /proc/mounts
and look for the line with the filesystem. Is it mounted rw or ro?

regards Henrik
/dev/sda5 /mnt/dados ext4 rw,relatime 0 0
 
1 members found this post helpful.
Old 01-07-2023, 05:51 PM   #21
Apprentice+
Member
 
Registered: May 2021
Distribution: Slackware64-Current
Posts: 43

Original Poster
Rep: Reputation: Disabled
The problem was solved by renaming in terminal! Which I hadn't tried, since I only tried things from the graphical part as I show in the screenshots in my question.

Thanks again to Petri Kaukasoina

The question that remains then is:
What happened to these files? Why did they give this problem? And from what I saw it affected the graphics part the most!
In the terminal, the cat command did not work, and the TAB command to write their names

Could it be a problem caused by kioslave5?
 
Old 01-07-2023, 09:56 PM   #22
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maye file has bytes but no visible characters (from screenshot 1 in op)
Code:
cat ' trim with space .txt'
(nothing)
xxd ' trim with space .txt'
00000000: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................
...
 
Old 01-08-2023, 07:24 AM   #23
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 994

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
Quote:
Originally Posted by Apprentice+ View Post
The problem was solved by renaming in terminal!
From all your examples you have shown so far, commands in terminal has been run as root. Depending upon permissions, root might be more capable than an ordinary user, but usually you should avoid doing things as root.

Quote:
Originally Posted by Apprentice+ View Post
The question that remains then is:
What happened to these files?
It could also be that you graphical applications gets trouble because of broken filenames. It is possible, but a bad idea to name a file "*.*". One day someone might want to delete that file and depending upon how it is done it might end in disaster. Examples of good filenames are:

"fileA.txt"
"fileB.txt"

Example of a bad filename is:

"fileA.txt fileB.txt"

What would happen if you would want to remove the file with the bad filename "fileA.txt fileB.txt"? Depending upon how it is done it might instead affect the two files with good filenames.

It is possible, but a bad idea to put whitespaces in filenames.

regards Henrik
 
2 members found this post helpful.
  


Reply

Tags
file access, permission denied



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File permissions question - Cento & Ubuntu / same file / same permissions but... Robert.Thompson Linux - Newbie 10 03-17-2016 09:49 AM
[SOLVED] Permissions Permissions Permissions! makem Linux - Newbie 13 07-30-2015 11:54 AM
File Permissions- Once again the Permissions questions?? fusionstate Linux - Newbie 2 01-04-2014 12:47 PM
File permissions v. directory permissions Completely Clueless Linux - Newbie 7 07-09-2009 08:33 AM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration