The output of running ls -lsa
on your Disk-on-Key (which got a corrupted due to the Hebrew fonts):
4 drwxr-xr-x 3 root root 4096 אפר 25 14:11
drwxr-x---+ 3 root root 4096 אפר 30 10:40 .. 16
drwx------ 2 root root 16384 אפר 25 14:11 lost+found
There are two issues:
1) Folders are owned by Root, and can be read/write by root only
Please execute the below command to set you as the owner of the folder:
sudo chown your-user-name /folder-of-usb-dok
2) Folder holds +
which means ACL
The meaning of the +
at the end of drwxr-x---+
is Access Control List
File_system_permissions
+
(plus) suffix indicates an access control list that can control additional permissions.
FilePermissionsACLs
Listing Access list can be done using
getfacl /folder-name
Updating Access List can be done using setfacl
The following command should grant you full access to the folder.
replace username with your user-name, and /folder-of-usb-dok with the usb-dok-folder
setfacl -m u:username:rwx /folder-of-usb-dok
ls -lsa
on the usb-stick root directory – Yaron Apr 26 '17 at 05:514 drwxr-x---+ 3 root root 4096 אפר 30 10:40 ..
16 drwx------ 2 root root 16384 אפר 25 14:11 lost+found
– Dudu Arbel Apr 30 '17 at 07:41+
in the result ofls -lsa
) - Please review my answer. note that you should locate the folder name which holds the+
, as the output provided by you was corrupted due to hebrew fonts – Yaron Apr 30 '17 at 13:06