Access denied by padlock
kyozo
Posted messages
109
Registration date
Status
Membre
Last intervention
-
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
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
Hello,
- Open a terminal
- Run this command:
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
- 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
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…
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…
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?
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?
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.
"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.
;-\
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
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
partedcommand, it's a lowercase 'L'):
mount | grep '^/dev'
df -hT | grep '^/dev'
sudo parted -l
cat /etc/fstab
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?
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?
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.
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.
Run the command to check.
chown: cannot access '/media/username/NEW': No such file or directory