sudo chmod 775 -R then add folder location
Well g'day there.
Got myself a raspberry pi to play with, version 4B 4GB.
I wanted to copy some mp3's across to it via usb but get the error about not having permissions. So, I need to know how to set read/write permissions for anyone for an entire directory.
I have searched and read about it but these here permissions are really confusing.
Look Here -> |
sudo chmod 775 -R then add folder location
loopyloo (23-08-21)
I'm doing it wrong aren't I ?
chmod775755 -R
command options are case sensitive
edit: deboobified
Last edited by wotnot; 24-08-21 at 12:28 AM.
loopyloo (24-08-21)
try
sudo chmod 755 -R /media/pi/Storage
Last edited by fandtm666; 23-08-21 at 10:08 PM.
loopyloo (24-08-21)
Is the USB drive from a Windows machine? It might be formatted as NTFS. Try putting it back in the Windows machine and setting “Everyone: Full Control”.
I’m not sure if it matters, but I have always put the -R switch before the new permissions e.g.
chmod -R 755 /media/pi/Storage
loopyloo (24-08-21)
Technically more correct, but chmod parses the entire command line ...until it finds something that doesn't make sense =)
For instance;
Both forms work the same.Code:root@gallah:~# ls -ls docs total 12 8 -rw-rw-r-- 1 root root 4518 Jul 19 2017 faqs.md 4 -rw-rw-r-- 1 root root 2131 Jul 19 2017 localization_howto.md root@gallah:~# chmod 0755 -R docs root@gallah:~# ls -ls docs total 12 8 -rwxr-xr-x 1 root root 4518 Jul 19 2017 faqs.md 4 -rwxr-xr-x 1 root root 2131 Jul 19 2017 localization_howto.md root@gallah:~# chmod -R 0644 docs root@gallah:~# ls -ls docs total 12 8 -rw-r--r-- 1 root root 4518 Jul 19 2017 faqs.md 4 -rw-r--r-- 1 root root 2131 Jul 19 2017 localization_howto.md
loopyloo (23-08-21)
Tried a few different things but still get the error
You're going to need pick in up a notch ~ you're typing 775 not 755 ...accuracy in typing is everything.
loopyloo (23-08-21)
wotnot (24-08-21)
LOL!.... point taken =)
loopyloo (24-08-21)
Still get permission denied error. I just don't get it.
I remember hating linux before, now it's all coming back.
do;
ls -l /media/pi/Storage/music
reply with result =)
I actually did this just before your last comment.
Last edited by loopyloo; 24-08-21 at 12:55 AM.
That makes no sense.
Last edited by loopyloo; 24-08-21 at 12:53 AM.
do;
sudo chmod -R 0666 /media/pi/Storage/music
That should let you read/write to the dir
Nup, permission denied again
If I double click on any of the songs, VLC jumps in and plays it so no problem reading the usb.
I'll try again in the morning.
Last edited by loopyloo; 24-08-21 at 01:10 AM.
Is /media/pi/Storage/music just a directory you created? (the 'music' dir)
try logging as root in command then do the chmod
su
then enter password for root
then
chmod 755 -R /media/pi/Storage
Bookmarks