LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to change permissions for usb card reader, but getting "no such file or directory" - how fix? (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-change-permissions-for-usb-card-reader-but-getting-no-such-file-or-directory-how-fix-4175659565/)

hddfsck 08-21-2019 07:48 PM

Trying to change permissions for usb card reader, but getting "no such file or directory" - how fix?
 
Trying to change permissions for usb card reader, but getting "no such file or directory" - how fix?

When I do 'sudo chmod 777 filename (which is a 'random' bunch of numbers and letters), I get "no such file or directory". The same with "chown". The ownership is currently 'root'.

debian10

evo2 08-21-2019 08:09 PM

Hi,

saying that a filename is 'random' in no way helps us understand your problem. Please be specific.

Evo2.

hddfsck 08-21-2019 08:25 PM

Quote:

Originally Posted by evo2 (Post 6028015)
Hi,

saying that a filename is 'random' in no way helps us understand your problem. Please be specific.

Evo2.

When I put the usb card-reader into the computer, the comp automatically gives the ext media a name, such as "lj4l5jlj069ofjrkle5kg05".

in a terminal:
whoami@server:/media/whoami/t9gjkg-tji-gjgj-gogjf-gjgu-i94k4-k5k $ sudo chmod 777 t9gjkg-tji-gjgj-gogjf-gjgu-i94k4-k5k
"no such file or directory"

evo2 08-21-2019 09:16 PM

Hi,

Quote:

Code:

whoami@server:/media/whoami/t9gjkg-tji-gjgj-gogjf-gjgu-i94k4-k5k $ sudo chmod 777 t9gjkg-tji-gjgj-gogjf-gjgu-i94k4-k5k
"no such file or directory"


From your prompt it seems that you already cd'd there, so you didn't specify the correct path. Can you see it with ls?

Evo2.

hddfsck 08-21-2019 10:04 PM

Quote:

Originally Posted by evo2 (Post 6028043)
Hi,



From your prompt it seems that you already cd'd there, so you didn't specify the correct path. Can you see it with ls?

Evo2.

I am in there, but that is the correct path. I found the answer: instead of putting in a name for the "filename" in "sudo chmod 777 filename" - just leave it blank and add a period: "sudo chmod 777 ."

It works. Same for "chown". Thanks for helping!!

evo2 08-21-2019 10:13 PM

Hi,
Quote:

Originally Posted by hddfsck (Post 6028059)
I am in there, but that is the correct path. I found the answer: instead of putting in a name for the "filename" in "sudo chmod 777 filename" - just leave it blank and add a period: "sudo chmod 777 ."

That was *exactly* my point.

Evo2.


All times are GMT -5. The time now is 02:40 PM.