how to delete some files

Status
Not open for further replies.

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
i have some files on my pool left over from a jail. i've tried deleting them with no success.

total 42
drwxr-xr-x 2 root wheel 3 Apr 14 13:23 ./
drwxr-xr-x 8 root wheel 8 Apr 14 13:23 ../
-r-sr-xr-x 1 root wheel 20072 Feb 2 2014 rcp*

i tried chmod and the operation was not permitted - i think i need to use setfacl but i have been unsuccessful.

i'd like to change the files recursively but if i have to i'll do them one at a time.

i've been trying for 4 hours now so some help would be appreciated
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Considering that you haven't actually given us any information to work off of, you can just use the 'rm' command to remove files and folders
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
i gave you this

i've tried deleting them with no success
-r-sr-xr-x 1 root wheel 20072 Feb 2 2014 rcp*
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
What is rcp*?


Edit: rcp is for COPYING files....that's not removing anything
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
rcp is the name of the file that i need to change the permissions so i can delete it
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
It's owned by root. Login as root or su and chmod it to 777 and rm it.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
i tried chmod and the operation was not permitted - i think i need to use setfacl but i have been unsuccessful.

i'd like to change the files recursively but if i have to i'll do them one at a time.

i've been trying for 4 hours now so some help would be appreciated

if you want to help at least read my post
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
if you want to help at least read my post
I read your post.

It never once states how you attempted...well, anything. It never states what the error message actually was.

If YOU want help, post valid information and make coherent posts.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
elcome to FreeNAS
[root@freenas] ~# cd /mnt/Storage/
[root@freenas] /mnt/Storage# ls
./ .freenas/ .warden-template-standard-9.2-x64/ First Backup/ Video/
../ .warden-files-cache/ ConfigBackups/ Movies/
.MySQL.meta/ .warden-template-pluginjail-9.2-x64/ Copy Of 1.5/ MySQL.wdn
[root@freenas] /mnt/Storage# cd .warden-template-standard-9.2-x64/
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64# ls
./ ../ bin/ lib/ libexec/ sbin/ usr/ var/
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64# cd bin
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/bin# ls
./ ../ rcp*
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/bin# rm rcp
override r-sr-xr-x root/wheel schg,uarch for rcp? y
rm: rcp: Operation not permitted
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/bin# chmod 777 rcp
chmod: rcp: Operation not permitted
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/bin# ls -al
total 42
drwxr-xr-x 2 root wheel 3 Apr 14 13:23 ./
drwxr-xr-x 8 root wheel 8 Apr 14 13:23 ../
-r-sr-xr-x 1 root wheel 20072 Feb 2 2014 rcp*
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/bin# cd ..
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64# ls
./ ../ bin/ lib/ libexec/ sbin/ usr/ var/
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64# cdusr
cdusr: Command not found.
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64# cd usr
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/usr# ls
./ ../ bin/ lib/ lib32/
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/usr# cd bin
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/usr/bin# ls
./ ../ chfn* chpass* chsh* crontab* login* opieinfo* opiepasswd* passwd* rlogin* rsh* su* ypchfn* ypchpass* ypchsh* yppasswd*
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/usr/bin# su
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/usr/bin# ls
./ ../ chfn* chpass* chsh* crontab* login* opieinfo* opiepasswd* passwd* rlogin* rsh* su* ypchfn* ypchpass* ypchsh* yppasswd*
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/usr/bin# rm chfn
override r-sr-xr-x root/wheel schg,uarch for chfn? y
rm: chfn: Operation not permitted
[root@freenas] /mnt/Storage/.warden-template-standard-9.2-x64/usr/bin#
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Wait. Why are you deleting warden-templates?

And can you please use the code tags when posting walls of code?
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
you can stop helping this is the very first sentence

i have some files on my pool left over from a jail. i've tried deleting them with no success.
 
Status
Not open for further replies.
Top