annotate src/save-acls.c @ 22:43cfd1a2c523

create program to save acls.
author Robert McIntyre <rlm@mit.edu>
date Thu, 10 Jan 2013 07:36:04 +0000
parents
children 4d1bc23e4d09
rev   line source
rlm@22 1 #include <unistd.h>
rlm@22 2
rlm@22 3 main( int argc, char ** argv){
rlm@22 4 setreuid(geteuid(), geteuid());
rlm@22 5 setregid(getegid(), getegid());
rlm@22 6 system("getfacl -R /usr /opt /etc > /etc/acls");
rlm@22 7 }
rlm@22 8
rlm@22 9
rlm@22 10