Saturday, 15 June 2013

linux - Unknown users rights (-????????? ? ? ? ? ? myFile.php) -



linux - Unknown users rights (-????????? ? ? ? ? ? myFile.php) -

i have weirds user rights on files.

log user1, have set user2 owner of files. did worked.

-rw-r-xr-x 1 user2 user2 21090 jun 18 16:28 myfile.php drw-r-xr-x 2 user2 user2 4096 jun 18 16:30 font

but then, when log user2 have weirds unknown rights.

-????????? ? ? ? ? ? myfile.php d????????? ? ? ? ? ? font/

top directory contains these files has no "x" bit set.

chmod u=rwx test2/; ls -l test2 total 4 drwxr-xr-x 2 user grouping 4096 jun 19 14:43 dir -rw-r--r-- 1 user grouping 0 jun 19 14:43 file chmod u=rw test2/; ls -l test2 ls: cannot access test2/file: permission denied ls: cannot access test2/dir: permission denied total 0 d????????? ? ? ? ? ? dir -????????? ? ? ? ? ? file

to prepare this, please add together "x" bit next section of root directory. "group" part relevant might "others" or "user" depending on situation.

chmod g+x /path/to/directory

for farther reading please consult http://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions

linux admin chmod rights

No comments:

Post a Comment