0

I need to mount a NTFS drive with permissions set to 777 on debian. The code i have in fstab now is:

/dev/sdb2       /disk    ntfs    defaults,nls=utf8,umask=000,uid=1000,windows_names        0       0

But when using this all files get the permissions 600, anybody know whats wrong?

1 Answer 1

1

You must change the umask of the user(s) writing to the directory. And BTW do NOT set execute permissions when they are not needed.

A umask is a negative mask of permissions which should be applied. By default, all files would be created with 666 and all directories with 777. With a umask of 002, for example, these become 664 and 775.

Now, how to set the umask depends on the program which actually writes the file, and whether this setting is available in its configuration file. see this explanation here: http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html

Another, less known way, would be to set POSIX ACLs to the upload directory: for this, you can use setfacl with the -d option (provided your OS, and filesystem, support it both).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .