r313: add the warning about fileaccess as user 'root'
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Apr 2004 14:28:06 +0000 (14:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:51:20 +0000 (12:51 -0500)
to a README file and DEBUG(0,()) it on each tree connect

metze
(This used to be commit d52eb75107f291635afcfbe5b79d863f54349793)

source4/ntvfs/simple/README [new file with mode: 0644]
source4/ntvfs/simple/vfs_simple.c

diff --git a/source4/ntvfs/simple/README b/source4/ntvfs/simple/README
new file mode 100644 (file)
index 0000000..f1de5d9
--- /dev/null
@@ -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
index e36e4a62c440cb742b15d07fb9b942d46fbafffe..37edd8aa11667c3e9f418a02e47eb8416bb9618c 100644 (file)
@@ -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;
 }