6
1
I have a problem with a directory. If I run a ls -la
I get following output:
/rwx------ 7 1000 1000 4.0k Mar 1 09:11 Folder Name
It is supposed to be a folder. What does the slash mean in the permissions? I expected a d
since it is a folder.
I have this problem on my QNAP Nas. uname -a
shows Linux Q 3.19.8 #1 SMP Mon Feb 13 05:20:15 CST 2017 x86_64 unknown
I cannot access the folder or set other permissions / owners.
chown admin:administrators Folder\ Name
-> chown: Folder Name: No such file or directory
chmod 777 Folder\ Name
-> chmod: Folder Name: No such file or directory
cd Folder\ Name
-> -sh: cd: Folder Name: No such file or directory
mv Folder\ Name other_name
-> mv: unable to rename Folder Name: No such file or directory
--- Background:
I copied this folder via rsync from an ubuntu to my nas using:
rsync -ahhve "ssh" /home/foo/bar/ admin@10.0.0.1:"/share/homes/username/Folder\ Name"
Thank you for reading this question and I am happy for any help.
Can you see its attributes with
stat *
? – dirkt – 2017-03-01T15:38:22.413Gordon Davisson provided the solution in an answer beneath. I got it working by a workaround: I opened the webinterface in my QNAP and used the File Station to rename the folder. After renaming, it had the
d
in the permissions list and I could access it. – cPu – 2017-03-02T20:37:41.283