On Wed, Mar 24, 2010 at 08:29:41AM +0800, Aiza wrote:
> This directory named empty has read/exec permissions.
> How do I delete it?
> 
> # /usr/jails/newjail/var >ls -l
> total 2
> dr-xr-xr-x  2 root  wheel  512 Nov 21 22:53 empty
> # /usr/jails/newjail/var >cd empty
> # /usr/jails/newjail/var/empty >ls -l
> total 0
> # /usr/jails/newjail/var/empty >cd ..
> # /usr/jails/newjail/var >rmdir empty
> rmdir: empty: Operation not permitted
> # /usr/jails/newjail/var >rm -rf empty
> rm: empty: Operation not permitted
> # /usr/jails/newjail/var >chmod 777 empty
> chmod: empty: Operation not permitted

I'd suggest you don't remove it - from sshd(8):

     /var/empty
             chroot(2) directory used by sshd during privilege separation in
             the pre-authentication phase.  The directory should not contain
             any files and must be owned by root and not group or world-
             writable.


If you intend to run sshd in your jail, you'd be better off leaving it.

Dan

-- 
Daniel Bye
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to