Samba: 444 instead of 644?

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Samba: 444 instead of 644?

Post by ^rooker »

[PROBLEM]
I've mounted a samba share and set the access flags in the fstab using "file_mode=0664,dir_mode=0775".
But suddenly, I've encountered a folder where most files had 644 (as defined) and some were set to 444! :shock:

Even worse:
I couldn't simply "chmod 644" on those files, because I was greeted with a "Permission denied" error.

[SOLUTION]
"444" = "r--r--r" and means "readonly".
So, when checking the access rights on the Windows side, the "read-only" flag was checked. Unchecking it solved the problem.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply