LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2019, 07:48 PM   #1
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Rep: Reputation: Disabled
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
 
Old 08-21-2019, 08:09 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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

Evo2.
 
Old 08-21-2019, 08:25 PM   #3
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
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"

Last edited by hddfsck; 08-21-2019 at 08:36 PM.
 
Old 08-21-2019, 09:16 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 08-21-2019, 10:04 PM   #5
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
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!!
 
Old 08-21-2019, 10:13 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by hddfsck View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Exists but... "-bash: No such file or directory" zachet Linux - Newbie 24 03-20-2016 01:13 AM
windows eclipse platform - crt1.o: No such file: No such file or directory jnettleton Programming 2 05-18-2012 09:01 PM
Bash says "No such file or directory" but directory exists Fm3m Linux - General 7 10-28-2011 12:33 AM
ProFTPd can't change directory "no such file or directory" mpmackenna Linux - Server 2 05-04-2010 03:52 PM
trying to fix usb sound, looking to change its permissions mjkelly93 Linux - Hardware 0 10-25-2007 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration