LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   trouble accessing a directory (https://www.linuxquestions.org/questions/slackware-14/trouble-accessing-a-directory-4175457929/)

Cultist 04-12-2013 01:07 PM

trouble accessing a directory
 
I have an NTFS-formatted external harddrive that I'm going to reformat to ext3. Before reformatting, I rsynced all the contents to a different drive (ext4 on this one). Now I'm unable to access any of the rsynced files from the new drive, even as root. from the cli, doing a cd into the directory just shows 'permission denied' when doing an ls, and attempting to mount the directory from dolphin gives the same error. This happens when trying to access it as the user and as root. Googling around showed a similar problem being solved with chattr, but I couldn't figure out how to use it in my case.

output of ls -l in directory containing the rsynced directory: (chmod on this directory also gives permission denied)
Code:

drwx------  11 matthew matthew 0 Apr 11 18:31 media-backup/
The ntfs drive was properly accessible before I moved things around. The rsync was done with the options -aviP.

I'm not really sure how to proceed from here. Thanks for any help!

rg3 04-12-2013 02:01 PM

Can you post the output of "lsattr -d media-backup"?

Cultist 04-12-2013 02:05 PM

Quote:

Originally Posted by rg3 (Post 4930479)
Can you post the output of "lsattr -d media-backup"?

Code:

lsattr: Inappropriate ioctl for device While reading flags on media-backup

rg3 04-12-2013 02:08 PM

Whoa... maybe I got something wrong. Aren't the contents of media-backup stored as ext4?

Cultist 04-12-2013 02:11 PM

Quote:

Originally Posted by rg3 (Post 4930482)
Whoa... maybe I got something wrong. Aren't the contents of media-backup stored as ext4?

I was running it from the wrong terminal (it's mounted as a samba share, ran it from the client machine rather than the server). Correct output is
Code:

-------------e-- media-backup/
Also something I forgot to mention before, I can go into the directory from the server machine, it's the client machine that the share is mounted on that I can't access the directory in (even though the rest of the share can be accessed like it should be).

rg3 04-12-2013 02:31 PM

That's a pretty important point, indeed. If the files are fine while accessing them locally, everything points to a problem in the way the directory is shared. Unfortunately, I don't use samba and can't help you, but somebody else may chime in.

Cultist 04-12-2013 05:49 PM

Not sure what's changed but it's working now. Marking as solved.


All times are GMT -5. The time now is 06:17 AM.