.warden-template-pluginjail directory delete

Status
Not open for further replies.

gabris

Cadet
Joined
Dec 23, 2014
Messages
7
I uninstalled the all plugins and jails, but i don't know erase the.warden-template-pluginjail directory.
In the future I'd like to install Jails an other drive. How can delete the old dir?
 
D

dlavigne

Guest
That is most likely a dataset, if so it will show in View Volumes.
 
D

dlavigne

Guest
Does rm -Rf dirname delete it? If not, list the error.
 

gabris

Cadet
Joined
Dec 23, 2014
Messages
7
No result.
see the list
Thanks


[root@freenas] /mnt/D2U300# rm -Rf jails
rm: jails/.warden-template-pluginjail/var/empty: Operation not permitted
rm: jails/.warden-template-pluginjail/var: Directory not empty
rm: jails/.warden-template-pluginjail/libexec/ld-elf32.so.1: Operation not permitted
rm: jails/.warden-template-pluginjail/libexec/ld-elf.so.1: Operation not permitted
rm: jails/.warden-template-pluginjail/libexec: Directory not empty
rm: jails/.warden-template-pluginjail/lib/libc.so.7: Operation not permitted
rm: jails/.warden-template-pluginjail/lib/libcrypt.so.5: Operation not permitted
rm: jails/.warden-template-pluginjail/lib/libthr.so.3: Operation not permitted
rm: jails/.warden-template-pluginjail/lib: Directory not empty
rm: jails/.warden-template-pluginjail/sbin/init: Operation not permitted
rm: jails/.warden-template-pluginjail/sbin: Directory not empty
rm: jails/.warden-template-pluginjail/usr/lib32/libcrypt.so.5: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/lib32/libthr.so.3: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/lib32/libc.so.7: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/lib32/librt.so.1: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/lib32: Directory not empty
rm: jails/.warden-template-pluginjail/usr/bin/chfn: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/opiepasswd: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/su: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/rlogin: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/chsh: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/chpass: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/ypchpass: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/login: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/crontab: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/yppasswd: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/opieinfo: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/passwd: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/ypchfn: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/rsh: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin/ypchsh: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/bin: Directory not empty
rm: jails/.warden-template-pluginjail/usr/lib/librt.so.1: Operation not permitted
rm: jails/.warden-template-pluginjail/usr/lib: Directory not empty
rm: jails/.warden-template-pluginjail/usr: Directory not empty
rm: jails/.warden-template-pluginjail/bin/rcp: Operation not permitted
rm: jails/.warden-template-pluginjail/bin: Directory not empty
rm: jails/.warden-template-pluginjail: Directory not empty
rm: jails: Directory not empty
[root@freenas] /mnt/D2U300#
[root@freenas] /mnt/D2U300#
 

Attachments

  • upload_2015-1-2_18-1-15.png
    upload_2015-1-2_18-1-15.png
    30 KB · Views: 328
D

dlavigne

Guest
On UFS, the system immutable flag is set in jails. Try running this command to remove that flag, then repeating the rm -Rf command:

chflags -R unschg dirname
 

gabris

Cadet
Joined
Dec 23, 2014
Messages
7
On UFS, the system immutable flag is set in jails. Try running this command to remove that flag, then repeating the rm -Rf command:

chflags -R unschg dirname

No result, I formatted the complete disk. So the jails on the other UFS disk. It working.
Thanks.
 

burnt01

Cadet
Joined
Jan 24, 2015
Messages
1
Thought I'd best comment as i had the same problem and finally got around to looking into it (i have just made a different jail location) this post helped me out!

chflags command got me on the right track, turns out its the related chattr before the rm command that fixed it for me:
http://en.wikipedia.org/wiki/Chattr
i used the -R flag (recurse all subdirectories) and -i (is to unset the immutable bit):
chattr -Ri path/to/directory

I used this command out side the jail,
I have found to do the same thing inside inside the jail (not to delete but to gain accees to rights) chflags does work but the command is :
chflags -R noschg path/to/directory
 
Last edited:
Status
Not open for further replies.
Top