This post is more than 5 years old

1 Rookie

 • 

48 Posts

1291

April 3rd, 2015 14:00

Permission Issue Cleaning up extracted package


Hello -

After using tar to extract the OneFS_v7.2.0.1_Install.tar.gz package under \ifs\data, there are directories and files that I cannot delete.

For example:

./bin:

total 206

drwxrwxrwx +  2 root  wheel     21 Apr  3 11:29 .

drwxr-xr-x +  9 root  wheel    255 Apr  3 13:47 ..

-r-sr-xr-x    1 root  wheel  51829 Feb  7 04:20 rcp

./lib:

total 8513

drwxr-xr-x +  2 root  wheel       87 Apr  3 11:29 .

drwxr-xr-x +  9 root  wheel      255 Apr  3 13:47 ..

-r--r--r--    1 root  wheel  4814045 Feb  7 04:20 libc.so.7

-r--r--r--    1 root  wheel   119598 Feb  7 04:20 libcrypt.so.4

-r--r--r--    1 root  wheel   551332 Feb  7 04:20 libthr.so.3

I cannot delete the /ifs/data/bin directory because it is not empty, and even root does not have write access to the rcp file.  Is there any way for me to clean this up?

Thanks!

Dawn

4 Operator

 • 

1.2K Posts

April 3rd, 2015 14:00

Run

chflags -R 0 /ifs/data/bin  /ifs/data/lib

before remove the folders (that's a 0 as in zero). This clears any file flags that can prevent deletion (not that UNIX permissions and Windows ACLs weren't enough... and not to be confused with extended attributes either...)

hth

-- Peter

1 Rookie

 • 

48 Posts

April 3rd, 2015 14:00

Thank you!

Dawn

1 Message

December 12th, 2015 06:00

You van also use TreeDelete job

0 events found

No Events found!

Top