bool filterUid(uid_t uid) {
auto userInfo = getUserInfo(uid);
std::ifstream in("/etc/shells");
std::string str;
std::vector<std::string> shells;
while (std::getline(in, str)) {
if(!str.empty())
shells.push_back(str);
}
return !(std::find(shells.begin(), shells.end(), userInfo.shell) != shells.end());
}