Example of Mounting FUSE
This example shows you how to mount FUSE and perform operations as a regular user.
The following example is a quick introduction to mounting FUSE and accessing the mount point as a regular user.
Assume that you have a mount point /mapr that you want to mount on FUSE and access as user kate.
Perform the following steps:
- Create the user kate: Run
adduser kate
- Generate a ticket with impersonation as user kate. You will use this ticket to
mount and access FUSE. Run:
maprlogin generateticket -type servicewithimpersonation -user kate -out /var/tmp/sample_ticket
NOTEFor more information on generating a ticket with impersonation, see How Impersonation Works and Generating a Service with Impersonation Ticket - Edit the
/opt/mapr/conf/fuse.conf
file and setfuse.ticketfile.location=/var/tmp/sample_ticket
- The mount point /mapr is already set in the
fuse.conf
file.NOTEChangefuse.mount.point=/mapr
if your mount point is different from /mapr. - Create the /mapr directory. Run:
mkdir /mapr
- Start the MapR FUSE POSIX client, either basic or platinum as per your
licence. For example:
service mapr-posix-client-basic start
The /mapr directory is now mounted on FUSE. You can perform all operations on /mapr/ as the user kate.