USER-MANAGEMENT
Published with SteemPeakhome ~ previous

function guser-management --description 'user-management'
clear; echo
echo '=========================================================================='
echo ' USER-MANAGEMENT '
echo '=========================================================================='
echo ' /etc/passwd /etc/group /etc/default/useradd '
echo ' /etc/shadow /etc/adduser.conf '
echo '--------------------------------------------------------------------------'
echo ' # find / -uid 1000 -exec chown -v 1002:1002 {} \; '
echo ' # find /home -uid 1000 | tee 1000-files.txt '
echo ' # find /home -uid 1000 | wc -l '
echo ' # passwd -S user1 '
echo ' $ clear; finger; echo; finger user1; echo '
echo ' $ cut -d: -f1 < /etc/passwd | sort | xargs '
echo ' $ fuser -v /media/xyz '
echo ' $ getent passwd user1 '
echo ' $ id -u root '
echo ' $ id -u user1 '
echo ' $ id user1 '
echo ' $ who | wc -l '
echo '=========================================================================='
echo
read; clear; echo
echo '=========================================================================='
echo ' USER-MANAGEMENT '
echo '=========================================================================='
echo ' modify '
echo ' $ man usermod chown '
echo ' # usermod -c another_full_name user1 '
echo ' # chown -R user1:user1 /home/userxyz '
echo ' # vim /etc/sudoers '
echo ' # vipw '
echo ' # vigr '
echo ' # chfn '
echo ' '
echo ' delete '
echo ' $ man deluser userdel '
echo ' # deluser --remove-home user1 // wrapper - Debian tool '
echo ' # userdel -r user1 // low level utility '
echo ' '
echo ' lock '
echo ' $ man passwd '
echo ' # passwd -l user1 // lock '
echo ' # passwd -u user1 // unlock '
echo '=========================================================================='
echo
read; clear; echo
echo '=========================================================================='
echo ' USER-MANAGEMENT '
echo '=========================================================================='
echo ' create with adduser '
echo ' $ man adduser passwd finger '
echo ' # ls -lisa /etc/skel '
echo ' # vim /etc/adduser.conf '
echo ' # adduser user1 '
echo ' # passwd -S user1 '
echo ' $ clear; finger; echo; finger user1; echo '
echo ' $ id user1 '
echo ' '
echo ' create with useradd '
echo ' $ man useradd passwd finger id '
echo ' # ls -lisa /etc/skel '
echo ' # useradd -D '
echo ' # vim /etc/default/useradd '
echo ' # useradd user1 '
echo ' # useradd user1 -c user's full_name -d /home/test -u 1099 '
echo ' # passwd user1 '
echo ' # passwd -S user1 '
echo ' $ clear; finger; echo; finger user1; echo '
echo ' $ id user1 '
echo ' '
echo ' create bulk user '
echo ' $ man newusers '
echo ' $ vim file.txt '
echo ' > loginname:password:uid:gid:comment:homedir:shell '
echo ' # newusers file.txt '
echo '=========================================================================='
echo
read; clear; echo
echo '=========================================================================='
echo ' USER-MANAGEMENT '
echo '=========================================================================='
finger
echo '=========================================================================='
echo
end
SOURCES
debian admin : debianadmin.com/users-and-groups-administration-in-linux.html
manpages $ man useradd usermod userdel adduser deluser
Congratulations @wglenz! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
http://www.echo.ca/
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Please check your bot. The Linux command echo has nothing to do with echo.ca.
:-)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit