Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

Wrong permissions for . and .. in root after new install (no replies)

$
0
0
Hi

I had a strange problem with my ftp server (see http://serverfault.com/questions/829441/proftp-server-gives-no-such-file-or-directory-upon-login-even-though-director for my problem and the solution).

In a nutshell: the permissions for . and .. in the root directory were set to no permissions for anybody as follow (recreated from memory:

root@eef47fc12986:/# cd /
root@eef47fc12986:/# ls -la
total 72
d---------  34 root root 4096 Jan 30 19:42 .
d---------  34 root root 4096 Jan 30 19:42 ..
...


This happened after a new install from the rootfs. I changed them to the following:

root@eef47fc12986:/# cd /
root@eef47fc12986:/# ls -la
total 72
drwxr-xr-x  34 root root 4096 Jan 30 19:42 .
drwxr-xr-x  34 root root 4096 Jan 30 19:42 ..
...

and it is working. But I am wondering: How did that happen? I don't have the slightest cue, and it took me 3/4 of a day to sotrt it out...

Viewing all articles
Browse latest Browse all 3178

Trending Articles