Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: use getpwent to find users and delete them

by haukex (Bishop)
on May 17, 2018 at 22:42 UTC ( #1214804=note: print w/replies, xml ) Need Help??


in reply to use getpwent to find users and delete them

If you use system LIST with the list having more than one element, then your command line arguments need to be separate elements, otherwise you're currently trying to run a program named literally "sudo /usr/sbin/userdel". Try my @cmd = ("sudo", "/usr/sbin/userdel", "-r", $account);.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214804]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2020-12-01 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?