New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

howto/SetupFetchmail: Make_Fetchmail_User.command

File Make_Fetchmail_User.command, 712 bytes (added by martin.osx@…, 5 years ago)

Z-Shell script to create fetchmail user and group

Line 
1#!/opt/local/bin/zsh
2
3sudo dscl . -create /Groups/_fetchmail
4sudo dscl . -create /Groups/_fetchmail UniqueID 31
5sudo dscl . -create /Users/_fetchmail
6sudo dscl . -create /Users/_fetchmail UserShell /bin/false
7sudo dscl . -create /Users/_fetchmail RealName "Fetchmail Mail Client"
8sudo dscl . -create /Users/_fetchmail UniqueID 31
9sudo dscl . -create /Users/_fetchmail PrimaryGroupID 31
10sudo dscl . -create /Users/_fetchmail NFSHomeDirectory /opt/local/var/run/fetchmail
11
12sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add _fetchmail _dovecot
13
14#vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 expandtab :
15#vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :