LINUXOPOLIS # 2019-11-11 ~ USERS

지난달

USER

Published with SteemPeak
home ~ previous

ScreenshotScreenshot by Willi Glenz

SUMMARY

01 USERS ................................................................. 19-07

04 config ................................................................ 19-11 update
07 files ................................................................. 19-11 new

03 create ................................................................ 19-07
05 modify ................................................................ 19-07
06 delete ................................................................ 19-08

02 sources ............................................................... 19-07



#07

07 FILES
/etc/passwd
/etc/shadow
/etc/group
/etc/adduser.conf
/etc/default/useradd
# vipw
# vigr


06 DELETE
# deluser --remove-home user1   // wrapper - Debian tool
# userdel -r user1              // low level utility 

# passwd -l user1               // lock
# passwd -u user1               // unlock
$ man userdel


05 MODIFY
# usermod -c "Another full name" user1
# chown -R user1:user1 /home/userxyz
# vim /etc/sudoers
$ man usermod


04 CONFIG
# vim /etc/adduser.conf
# vim /etc/default/useradd
# vim /etc/passwd 
# vim /etc/shadow 
# vim /etc/group


03 CREATE
VERSION I
 # ls -lisa /etc/skel
 # vim /etc/adduser.conf
 # adduser user1    
 # passwd -S user1      
 $ clear; finger; echo; finger user1; echo
 $ id user1

VERSION II
 # ls -lisa /etc/skel
 # useradd -D
 # vim /etc/default/useradd
 # useradd user1                                                    // Default
 # useradd user1 -c "User's full name" -d /home/test -u 1099        // Modified
 # passwd user1
 # passwd -S user1
 $ clear; finger; echo; finger user1; echo
 $ id user1
$ man useradd
$ man adduser       // Wrapper


02 SOURCES
DebianAdmin     : debianadmin.com/users-and-groups-administration-in-linux.html
Manpages        $ man useradd usermod userdel adduser deluser


01 USERS
# passwd -S user1
$ clear; finger; echo; finger user1; echo
$ cut -d: -f1 < /etc/passwd | sort | xargs
# find /home -uid 1000 | wc -l
# find /home -uid 1000 | tee 1000-files.txt
# find / -uid 1000 -exec chown -v 1002:1002 {} \;
$ id -u root
$ id -u user1
$ id user1
$ fuser -v /media/xyz
$ getent passwd user1
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT