Chapter 5. Controlling and Maintaining SELinux
61
 rw rw r  
auser
auser
user_u:object_r:tmp_t
3.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
4.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
5.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
index.html
/tmp/web_files/:
 rw rw r  
auser
auser
user_u:object_r:tmp_t
1.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
2.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
3.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
4.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
5.html
 rw rw r  
auser
auser
user_u:object_r:tmp_t
index.html
rm  rf /tmp/public_html/ /tmp/web_files/
# Now you can expand the archives using star and it
# restores the extended attributes:
star  xattr  x  f all_web.star
star: 11 blocks + 0 bytes (total of 112640 bytes = 110.00k).
ls  Z /tmp/public_html/ /tmp/web_files/
/tmp/public_html/:
 rw rw r  
auser
auser
...httpd_sys_content_t 1.html
 rw rw r  
auser
auser
...httpd_sys_content_t 2.html
 rw rw r  
auser
auser
...httpd_sys_content_t 3.html
 rw rw r  
auser
auser
...httpd_sys_content_t 4.html
 rw rw r  
auser
auser
...httpd_sys_content_t 5.html
 rw rw r  
auser
auser
...httpd_sys_content_t index.html
/tmp/web_files/:
 rw rw r  
auser
auser
user_u:object_r:user_home_t
1.html
 rw rw r  
auser
auser
user_u:object_r:user_home_t
2.html
 rw rw r  
auser
auser
user_u:object_r:user_home_t
3.html
 rw rw r  
auser
auser
user_u:object_r:user_home_t
4.html
 rw rw r  
auser
auser
user_u:object_r:user_home_t
5.html
 rw rw r  
auser
auser
user_u:object_r:user_home_t
\
index.html
Caution
If you use an absolute path when you create an archive using star, the archive expands on that
same path. For example, an archive made with this command restores the files to /var/log/httpd/:
star  xattr  H=exustar  c  f httpd_logs.star /var/log/httpd/
If you attempt to expand this archive, star issues a warning if the files in the path are newer than the
ones in the archive.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

adult web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved