Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Sep 2014 17:03:17 -0700
From:      Gleb Kurtsou <gleb@freebsd.org>
To:        "Russell L. Carter" <rcarter@pinyon.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: pefs doesn't work as regular user
Message-ID:  <20140907000316.GA1888@reks>
In-Reply-To: <540B7F42.5070803@pinyon.org>
References:  <540B7F42.5070803@pinyon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On (06/09/2014 14:40), Russell L. Carter wrote:
> Greetings,
> So this is odd.  I followed the instructions at
> 
> http://www.bsdnow.tv/tutorials/pefs
> 
> on one system, and as a regular user it works fine.
> 
> But I try it on my laptop, and I get the following:
> 
> rcarter@knuth> kldstat -m pefs
> Id  Refs Name
>  27    1 pefs
> rcarter@knuth> mkdir ~/docs
> rcarter@knuth> pefs addchain -f -Z ~/docs
> Enter parent key passphrase:
> Reenter parent key passphrase:
> rcarter@knuth> pefs mount ~/docs ~/docs
> pefs mount: /home/rcarter/docs: Operation not permitted
> rcarter@knuth> sudo pefs mount ~/docs ~/docs
> rcarter@knuth> pefs unmount ~/docs
> pefs unmount: unmount of /usr/home/rcarter/docs failed: Operation not
> permitted
> rcarter@knuth> sudo pefs unmount ~/docs
> rcarter@knuth> /bin/rm -rf ~/docs
> rcarter@knuth>
> 
> So it works as root but not as $USER.  I don't see anything different
> about /etc/group on either system.

sysctl vfs.usermount ?

File system can be mounted only by root unless sysctl vfs.usermount=1.


> 
> Any ideas?
> 
> Thanks,
> Russell



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140907000316.GA1888>