From 8aa6f931d68001d7f9cb390afdd32093aa3573ce Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 21 Apr 2004 14:28:06 +0000 Subject: r313: add the warning about fileaccess as user 'root' to a README file and DEBUG(0,()) it on each tree connect metze (This used to be commit d52eb75107f291635afcfbe5b79d863f54349793) --- source4/ntvfs/simple/README | 10 ++++++++++ source4/ntvfs/simple/vfs_simple.c | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 source4/ntvfs/simple/README (limited to 'source4') diff --git a/source4/ntvfs/simple/README b/source4/ntvfs/simple/README new file mode 100644 index 0000000000..f1de5d9f80 --- /dev/null +++ b/source4/ntvfs/simple/README @@ -0,0 +1,10 @@ +This module (ntvfs 'simple') provides a very, very simple posix backend. + +WARNING: All file access is done as user 'root'!!! + Only use this module for testing, with only test data!!! + +For activating this module use: + +[testshare] + path = /tmp/testshare + nfvfs handler = simple diff --git a/source4/ntvfs/simple/vfs_simple.c b/source4/ntvfs/simple/vfs_simple.c index e36e4a62c4..37edd8aa11 100644 --- a/source4/ntvfs/simple/vfs_simple.c +++ b/source4/ntvfs/simple/vfs_simple.c @@ -65,6 +65,8 @@ static NTSTATUS svfs_connect(struct request_context *req, const char *sharename) conn->fs_type = talloc_strdup(conn->mem_ctx, "NTFS"); conn->dev_type = talloc_strdup(conn->mem_ctx, "A:"); + DEBUG(0,("WARNING: ntvfs simple: connect to share [%s] with ROOT privileges!!!\n",sharename)); + return NT_STATUS_OK; } -- cgit