summaryrefslogtreecommitdiff
path: root/source4/ntvfs/simple
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-04-21 14:28:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:20 -0500
commit8aa6f931d68001d7f9cb390afdd32093aa3573ce (patch)
treeb573d13607ffb7c1fc069c5ab3dbfd0511646a09 /source4/ntvfs/simple
parentee0588bb6fbfbb250f5f2a3373556b100f2eb399 (diff)
downloadsamba-8aa6f931d68001d7f9cb390afdd32093aa3573ce.tar.gz
samba-8aa6f931d68001d7f9cb390afdd32093aa3573ce.tar.bz2
samba-8aa6f931d68001d7f9cb390afdd32093aa3573ce.zip
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)
Diffstat (limited to 'source4/ntvfs/simple')
-rw-r--r--source4/ntvfs/simple/README10
-rw-r--r--source4/ntvfs/simple/vfs_simple.c2
2 files changed, 12 insertions, 0 deletions
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;
}