Access denied by padlock

kyozo Posted messages 109 Registration date   Status Membre Last intervention   -  
kyozo Posted messages 109 Registration date   Status Membre Last intervention   -
Hello,

First, I would like to clarify that I'm not using Ubuntu, but Xubuntu.

I switched systems after my old internal hard drive crashed. At the time, I was using an external hard drive to archive my large files (photos, videos, etc.). I wanted to access it with my new system, but the files are locked. I likely set this up back then with admin rights to prevent any mishaps from the kids who were still at home. Anyway, I wanted to reuse this hard drive, but I can't remember my admin name from that time. I've read several guides on various forums to try to remove these locks. I admit I'm a bit lost. Do you know of a solution to finally access my photos?

Thank you in advance

Configuration: Linux / Firefox 64.0

5 réponses

Reivax962 Posted messages 3742 Status Membre 1 011
 
Hello,

- Open a terminal
- Run this command:
sudo chown -R <user> <path/to/your/disk>
replacing <user> with your username and <path/to/your/disk> with the location of the external drive.
The effect of this command is to give you ownership of all the files on your external hard drive.

If you have trouble finding the path of the disk, it is usually located in /media/diskName. Use the file browser to confirm.

Xavier
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention  
 
Thank you for the response. I just tried the command in the terminal using obviously my current admin name and the response is as follows: "chown: incorrect user:".
0
Reivax962 Posted messages 3742 Status Membre 1 011
 
Are you sure you've typed the username correctly?
Run the command
whoami
to check.
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention   > Reivax962 Posted messages 3742 Status Membre
 
Indeed, I had typed the name admin. I repeated the action and here is the result.

chown: cannot access '/media/username/NEW': No such file or directory
0
Reivax962 Posted messages 3742 Status Membre 1 011
 
And if you run
cd /media/username/
then
ls -l
, what do you see?
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention   > Reivax962 Posted messages 3742 Status Membre
 
this command gives me the list of what is on my desktop
0
zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 501
 
Hello,

Usage rights: hard drive or partition shared among users

--
_______________________________ ☯ Zen my nuggets ☮ ______________________________
Make a gesture for the environment, close your windows and adopt a penguin…
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention  
 
Hello and thank you for your reply,
I obviously rushed to your link to see what it was like ;o). Unfortunately, here is the response: The command "gksudo" was not found, do you mean:

the command "gfsudo" from the deb gfarm-client

Try: sudo apt install <name of the deb>

(despite the fact that it is clearly written in black and white "gksudo", what should I do about it?
0
zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 501 > kyozo Posted messages 109 Registration date   Status Membre Last intervention  
 
Try simply with
sudo nautilus
;-)
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention   > zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention  
 
"command not found"
0
zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 501
 
Euh… is nautilus your file browser?
Otherwise, replace nautilus with the name of your file browser.
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention  
 
How do I find out what my file manager is???
Edit: If I understand correctly, it should be XFCE.
But no command works either, neither "gksudo XFCE" nor "sudo "XFCE".
0
zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 501 > kyozo Posted messages 109 Registration date   Status Membre Last intervention  
 
XFCE is the desktop environment. By deduction, I suppose your file manager must be thunar;-\
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention   > zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention  
 
WELL SPOTTED! It is indeed Thunar. I managed to follow the steps (see the details below) proposed in your link. After adopting root rights, I completed all the steps. Unfortunately, to my great regret, it didn't change anything; the locks are still present and it is impossible to delete anything.

"Open a terminal and enter gksudo nautilus (I replaced it with sudo thunar)
Enter the administrator password
The file manager opens with ROOT rights. Be careful, everything you do with this window will be with superuser rights (creating files, folders). Therefore, limit the use of what you do with it, as it can damage your system.
Go to the disk for which you want to change the usage rights
Right-click –> properties –> Permissions tab
In the group section, select "users", just below, in folder access, select "create and delete files", in the other section, you can do the same.
Close this menu and the file manager opened with ROOT rights.
This can also be done via command line.
"

One clarification. In the group section, I did select "users", however just below, in folder access and in the other section, there is no "create and delete files". The only options are: "none", "write only", "read only" (which is the case currently), and "read and write". But when I select the latter, it doesn't do anything.

I also just noticed that the locks are no longer present when I am in ROOT rights, but the ability to delete files is still impossible.
0
zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention   6 501 > kyozo Posted messages 109 Registration date   Status Membre Last intervention  
 
;-\

To try to move forward, can you tell us what file system is used on this disk?
How is it connected to the PC? Internally? Via USB? Via e-SATA? Other?

When in doubt, please send us the results of the following commands (for the
parted
command, it's a lowercase 'L'):
mount | grep '^/dev'
df -hT | grep '^/dev'
sudo parted -l
cat /etc/fstab
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention   > zipe31 Posted messages 34620 Registration date   Status Contributeur Last intervention  
 
The file system used on this disk is Fat 32.
External connection, via an IDE interface with USB cable with power supply.

If this can give you a hint; This morning I started the external hard drive thanks to an old live CD, TouTou Linux. The locks were absent, and I was able to delete the folders I no longer needed. However, of course, when I go back to Xubuntu, the locks return.

So, wouldn't it be possible to change the user rights or the password using TOUTOU?
0
redambb Posted messages 1 Status Membre
 
Hello,
I've had a lock problem for a long time without finding a solution. Moreover, I just saw in one of these files a very long number that I absolutely did not set up. I have about thirty files that are impossible to open. I didn't set a code. I didn't request for them to be under any user!!!

Thank you in advance.

Best regards.
0
kyozo Posted messages 109 Registration date   Status Membre Last intervention  
 
Personally, I have partially solved the problem with the indications from "Reivax962". I specify, partially, because the locks never went away. See my response in 39.
If you ever find a solution, I'm interested.
Good luck.
0