Skip to content

How to stop users writing something on top directory of DFC? #6192

Answered by sfayer
zhangxiaomei asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Have you tried setting the permissions on the "/" directory? There is no simple way to display the current permissions, but you can set them in the dirac-dms-filecatalog-cli with something like chmod 755 /. This is what we're using in GridPP to prevent this (although we only use the DirectorySecurityManager: I imagine FullSecurityManager behaves the same).

You can get the current permissions directly from the database, I think the root dir is always the directory with ID 1 (note that this shows the mode flags in decimal whereas chmod uses octal):

MariaDB [FileCatalogDB]> select * from FC_DirectoryInfo where DirID = 1;
+-------+-----+-----+---------------------+---------------------+--…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zhangxiaomei
Comment options

Answer selected by fstagni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants