By default, fuse mountpoints are only accessible by the same uid as
that which mounted the fuse filesystem. When we're running as root,
specify -oallow_other so by default anyone can access the afs
mountpoint.
Change-Id: Idc732a22136fbe6bc585b76ac6291d8518f1f9de
Reviewed-on: http://gerrit.openafs.org/6390
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
* in df/mount/mnttab/etc output. */
fuse_opt_add_arg(&fuse_args, "-ouse_ino,fsname=AFS");
+ if (getuid() == 0) {
+ /* allow other users to access the mountpoint. only do this for
+ * root, since non-root may or may not be able to do this */
+ fuse_opt_add_arg(&fuse_args, "-oallow_other");
+ }
+
code = uafs_Setup("/afs");
if (code) {
errno = code;