create account

LINUXOPOLIS # 20-JANUARY-2020 ~ USER-MANAGEMENT by wglenz

View this thread on: hive.blogpeakd.comecency.com
· @wglenz · (edited)
$0.05
LINUXOPOLIS # 20-JANUARY-2020 ~ USER-MANAGEMENT
<center><h3>USER-MANAGEMENT</h3><b>Building a Linux Habitat<br>willi glenz @ <a href="t.me/wglenz">telegram</a><br><a href="https://steempeak.com/@wglenz">Published with SteemPeak</a><br>[home](https://steempeak.com/@wglenz) ~ [previous](https://steempeak.com/linux/@wglenz/linuxopolis-03-january-2020-user-management)</b></center>

<center>![Screenshot](https://files.steempeak.com/file/steempeak/wglenz/r7qJSSBX-image.png)Screenshot by Willi Glenz</center>

```
$ vim ~/.config/fish/functions/guser-management.fish

function guser-management --description 'user-management'
    clear; echo
    echo '=========================================================================='
    echo '                             USER-MANAGEMENT                              '
    echo '=========================================================================='
    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 users 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 '=========================================================================='
    echo; read; clear; echo
    
    clear; echo
    echo '=========================================================================='
    echo '                             USER-MANAGEMENT                              '
    echo '=========================================================================='
    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 '=========================================================================='
    echo; read; clear; echo

    clear; echo
    echo '=========================================================================='
    echo '                             USER-MANAGEMENT                              '
    echo '=========================================================================='
    echo ' /etc/...                                                                 '
    echo ' /passwd  /group  /shadow  /default/useradd  /adduser.conf                '
    echo '--------------------------------------------------------------------------'
    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 '=========================================================================='
    echo; read; clear; echo

    clear; echo
    echo '=========================================================================='
    echo '                             USER-MANAGEMENT                              '
    echo '=========================================================================='
    echo '                                                                          '
    finger
    echo '                                                                          '
    echo '=========================================================================='
    echo
end
```


```
SOURCES
 debian admin ........ debianadmin.com/users-and-groups-administration-in-linux.html
 arch ................................ wiki.archlinux.org/index.php/Users_and_groups
 manpages ............................ $ man useradd usermod userdel adduser deluser
 picture ...................................... screenshoot by me ~ my gnome-desktop
```

👍  , , , , , , , , , , , , ,
👎  
properties (23)
authorwglenz
permlinklinuxopolis-20-january-2020-user-management
categorylinux
json_metadata{"app":"steempeak/2.2.8","format":"markdown","tags":["linux","debian","arch","bash","fish","opensource"],"users":["wglenz"],"links":["https://t.me/wglenz","/@wglenz","/@wglenz","/linux/@wglenz/linuxopolis-03-january-2020-user-management"],"image":["https://files.steempeak.com/file/steempeak/wglenz/r7qJSSBX-image.png"]}
created2020-01-20 19:13:15
last_update2020-01-20 19:18:09
depth0
children1
last_payout2020-01-27 19:13:15
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.025 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length8,257
author_reputation1,727,575,717,311
root_title"LINUXOPOLIS # 20-JANUARY-2020 ~ USER-MANAGEMENT"
beneficiaries
0.
accountsteemchiller
weight100
1.
accountsteempeak
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id94,586,895
net_rshares332,732,911,151
author_curate_reward""
vote details (15)
@cheetah ·
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://www.vistaprint.ca/
properties (22)
authorcheetah
permlinkcheetah-re-wglenzlinuxopolis-20-january-2020-user-management
categorylinux
json_metadata""
created2020-01-20 19:13:30
last_update2020-01-20 19:13:30
depth1
children0
last_payout2020-01-27 19:13:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length125
author_reputation942,693,160,055,713
root_title"LINUXOPOLIS # 20-JANUARY-2020 ~ USER-MANAGEMENT"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id94,586,901
net_rshares0