Tagged Questions
2
votes
1answer
109 views
Delete every users from a group
I search a clean way to delete every users from the 'sudo' group. On several distributions the user created during the installation process has sudo rights, I don't want this. I search for an ...
3
votes
3answers
285 views
Escaping argument in bash script?
I'm writing a bash script wherein I want to check that one of the arguments passed to it is a valid group.
I have the line
if [ `grep -c -e '\b$2\b' /etc/group` -eq 0 ]; then
echo "Error: $2 is ...