Quote:
Originally Posted by johnnyxxxcakes
I recently plugged in my 8GB flash drive after a fresh install of Mandriva Linux 2009.0 Xfce on my Eee PC, and when I try to delete something, it says something along the lines of: [snip]
I figured I should open the terminal and try to delete the folder with a sudo command. Well, I tried that and noticed that the files all have locks next to their folder icons.
What should I do to remove these restrictions?
|
You may try this:
Open a terminal, not a file manager window. You'll see no folder icons, if you do that right. Change to the mount point. Look at the data.
Code:
$> cd /media/disk-1
$> ls -al ./
total 1009916
drwxr-x--- 55 someone someone 4096 30. Mai 12:44 .
drwxr-xr-x 6 root root 4096 4. Jan 04:07 ..
drwx------ 2 someone someone 4096 15. Apr 23:13 madwifi-hal-0.10.5.6-r4031-20090529
-rw-r--r-- 1 someone someone 266 9. Dez 2008 anything_else
[snip]
You might happen to be not the user "someone". Change that, if you are allowed to do so on that system.
Code:
$> chown johnny:johnny ./madwifi-hal-0.10.5.6-r4031-20090529
$> ls -al ./
total 1009916
drwxr-x--- 55 someone someone 4096 30. Mai 12:44 .
drwxr-xr-x 6 root root 4096 4. Jan 04:07 ..
drwx------ 2 johnny johnny 4096 15. Apr 23:13 madwifi-hal-0.10.5.6-r4031-20090529
-rw-r--r-- 1 someone someone 266 9. Dez 2008 anything_else
[snip]
Now you own it and can do to it whatever you want. ("Lock" symbols will disappear in graphical file managers.)
You may choose to do it another way, if sudo doesn't work/is configured to give enough rights to you: Become the superuser by "su", do what you want, "exit". You might want to take over everything inside, sub-dirs, files, not just a single directory/file.
Code:
$> chown -R johnny:johnny ./
$> ls -al ./
total 1009916
drwxr-x--- 55 johnny johnny 4096 30. Mai 12:44 .
drwxr-xr-x 6 root root 4096 4. Jan 04:07 ..
drwx------ 2 johnny johnny 4096 15. Apr 23:13 madwifi-hal-0.10.5.6-r4031-20090529
-rw-r--r-- 1 johnny johnny 266 9. Dez 2008 anything_else
[snip]
Another way would be to extend permissions to group and add yourself as a member to that group "someone".
Code:
$> chmod g+rwx ./madwifi-hal-0.10.5.6-r4031-20090529
$> useradd -G someone johnny
$> ls -al ./
total 1009916
drwxr-x--- 55 someone someone 4096 30. Mai 12:44 .
drwxr-xr-x 6 root root 4096 4. Jan 04:07 ..
drwxrwx--- 2 someone someone 4096 15. Apr 23:13 madwifi-hal-0.10.5.6-r4031-20090529
-rw-r--r-- 1 someone someone 266 9. Dez 2008 anything_else
[snip]
Attention: You need to log out an log-in again to make the group change effective.
The above are all fictive examples. Think before you type blindly, please. Man pages are your friends to get familiar to the *nix standard tools. - Have fun.