adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.42k stars 186 forks source link

"fdupes: could not chdir to /home/[user]/[folder] #131

Open jmvp opened 4 years ago

jmvp commented 4 years ago

"fdupes: could not chdir to /home/[user]/[folder]" The above error message shows up when I try and run:

fdupes /home/[my]/[folder]

And I can't figure it out. I see the line in your code which causes this error message to pop up, but lack the technical ability to suss out what I should do from there. I'm running Linux Mint 18.3.

Hoping someone will advise me here.

adrianlopezroche commented 4 years ago

It's probably a permissions issue. Try running "cd /home/[user]/[folder]" and see what happens. You probably need to change permissions on that folder or run as a user that has permission to access it.

On Mon, Feb 24, 2020, 11:36 PM jmvp notifications@github.com wrote:

"fdupes: could not chdir to /home/[user]/[folder]" The above error message shows up when I try and run:

fdupes /home/[my]/[folder]

And I can't figure it out. I see the line in your code which causes this error message to pop up, but lack the technical ability to suss out what I should do from there. I'm running Linux Mint 18.3.

Hoping someone will advise me here.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/adrianlopezroche/fdupes/issues/131?email_source=notifications&email_token=ABPQT7JY5GTKSROUJNJFBF3RESG43A5CNFSM4K225BB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IP55NLA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPQT7JDFPZLYFMRLWUFZU3RESG43ANCNFSM4K225BBQ .

jmvp commented 4 years ago

I should have clarified: I am the only user on the machine. I get the same result whether or not I preface the command with 'sudo'. Also, I have just confirmed, I get the same result when I run the command as root. There are no other commands on my machine that do this.

adrianlopezroche commented 4 years ago

If it's not a permissions issue then I have no idea what's going on. Just in case, try the following command:

namei -l /path/to/folder/giving/you/problems

and look at the permissions for each part to spot any issues with permission bits.

On Fri, Feb 28, 2020 at 9:37 PM jmvp notifications@github.com wrote:

I should have clarified: I am the only user on the machine. I get the same result whether or not I preface the command with 'sudo'. Also, I have just confirmed, I get the same result when I run the command as root. There are no other commands on my machine that do this.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/adrianlopezroche/fdupes/issues/131?email_source=notifications&email_token=ABPQT7OILKB5VLSJ3KFXBZLRFG35BA5CNFSM4K225BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENKYCFI#issuecomment-592806165, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPQT7I6SEPW265SYTP2Z7LRFG35BANCNFSM4K225BBQ .

YannisCS50 commented 3 years ago

"fdupes: could not chdir to /home/[user]/[folder]" The above error message shows up when I try and run:

fdupes /home/[my]/[folder]

And I can't figure it out. I see the line in your code which causes this error message to pop up, but lack the technical ability to suss out what I should do from there. I'm running Linux Mint 18.3.

Hoping someone will advise me here.

Hi, I had the same problem on MacOS Catalina. I don't know if this works for you but give it a try. I typed directly in the prompt "fdupes -r Documents" , without " " and without / before Documents. Earlier I tried "fdupes -r /Documents" and I was receiving the same error message as you.