Locked folder Ubuntu
Lyreen
-
Anonymous user -
Anonymous user -
Hello, I have a problem.
I recorded .mp3 files on a USB stick from another computer. On mine, I appear as the owner, but I still can't rename a file. I also can't change the permissions to set the file access for the owner to "read and write".
Thanks in advance.
I recorded .mp3 files on a USB stick from another computer. On mine, I appear as the owner, but I still can't rename a file. I also can't change the permissions to set the file access for the owner to "read and write".
Thanks in advance.
Configuration: Linux Firefox 3.0.9
18 answers
-
Hi, if you want to give permissions, you need to be in sudo
sudo chown +youruser yourfolder
and there you go -
http://www.wikituto.org/index.php/File_Permissions_Commands_Linux
http://www.multios.com/linhelp/permissions.html
http://www.trustonme.net/didactels/144.html
https://forums.commentcamarche.net/forum/affich-37622037-access_rights_security_gnu_linux -
papa@ubuntu:/$ chmod 777 /media/disk-1
chmod: changing permissions of `/media/disk-1': Read-only file system
It's made no difference...-
because it's the partition that is read-only....
a disk consists of tracks and sectors within those tracks.. it can be read from and written to. then the Windows, Linux and other systems create file systems that can be mounted as read or write... Mounting means saying that a folder, for example /home, is the file system /dev/sda1 and then you can mount it as read or write... or deny access. Under Windows you can also specify whether a folder is writable or not. Under Linux as well, but in a more nuanced way... the file has an owner, a group, and others.
if the file system is read-only... you will never be able to write to it. you can mount it as writable but I absolutely discourage that without knowing the reasons for this read-only status. Often it's due to a disk error. For example, I mounted a photo disk as read-only after a very bad manipulation. Backup software also mounts as read-only.
there are also services in Linux that kill programs trying to write to specific folders.
-
-
-
When I enter the code in the Terminal, it gives me this, and I'm no further ahead...
papa@ubuntu:~$ chmod u+w /media/disk-1
chmod: changing permissions of `/media/disk-1': Read-only file system -
To make a file maximally accessible ^^ do the following:
In a terminal, go to the location where the file you want to modify is located.
Type ls -l
type chmod 777 file_name
type ls -l again
to see what has changed.
(works for folders too) -
Mmh, I don't really know much about it, how do we get to the place where the file I want to modify is located in a terminal?
-
with the command " cd "
%cd /directory_name
%cd /directory_name2
...
%pwd
to find out where you are
%ls -l
to get the list of files/directories
The " % " should not be typed
https://www.commentcamarche.net/faq/4801-guide-d-utilisation-du-shell-pour-debutant#xxv-comment-se-deplacer-dans-l-arborescence -
You need to go to the directories located in "disk-1"
Disk-1 is your USB stick, right?
Try with the files on your stick. -
papa@ubuntu:/$ chmod 777 /media/disk-1/SOAD
chmod: changing permissions of `/media/disk-1/SOAD': Read-only file system
Same as always. -
Really weird all this. Copy the files into a folder on the PC and try again.
Just type the name of the file and not the entire path. -
-
-
To delete them,
type rm filename
http://wiki.linux-france.org/wiki/Les_commandes_fondamentales_de_Linux#rm -
or sudo chmod +tonuser tondossier? So I'm having a doubt
but sudo is for sure because to grant permissions you need to have them -
Yes, to perform these actions, you need to be in superuser mode.
sudo is for Ubuntu, otherwise for another distribution:
$su
$password
-
sudo mount -o remount,rw /the/path/to/the/usb
--
Gates vous a donné ^H vendu les fenêtres.
GNU nous a donné toute la maison. (Alexandrin) -
you do
cd "Folder name" (to avoid making mistakes with sudo rm -r because it's a dangerous command)
then sudo rm -r "Folder name that is located in the path you set with the cd command"
Example:
cd Documents/
sudo rm -r Folder