comparison 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
comparison
equal deleted inserted replaced
21:d46aeb3166d0 22:43cfd1a2c523
1 #include <unistd.h>
2
3 main( int argc, char ** argv){
4 setreuid(geteuid(), geteuid());
5 setregid(getegid(), getegid());
6 system("getfacl -R /usr /opt /etc > /etc/acls");
7 }
8
9
10