Advertisement
warrior98

Untitled

Mar 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.03 KB | None | 0 0
  1. #!/bin/bash                                                                                                          for i in $( ls /home ); do                                                                                                   #echo item: $i                                                                                                       echo Pentru directorul /home/$i au acces la listarea continutului urmatorii:                                         getfacl "home/$i" | grep "group: \|owner: " | cut -c 3-$NF                                                           grep $i /etc/group | cut -f1 -d":"                                                                                                                                                                                                        echo                                                                                                                 echo                                                                                                         done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement