<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 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 ```
author | wglenz | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
permlink | linuxopolis-20-january-2020-user-management | ||||||||||||
category | linux | ||||||||||||
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"]} | ||||||||||||
created | 2020-01-20 19:13:15 | ||||||||||||
last_update | 2020-01-20 19:18:09 | ||||||||||||
depth | 0 | ||||||||||||
children | 1 | ||||||||||||
last_payout | 2020-01-27 19:13:15 | ||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||
total_payout_value | 0.026 HBD | ||||||||||||
curator_payout_value | 0.025 HBD | ||||||||||||
pending_payout_value | 0.000 HBD | ||||||||||||
promoted | 0.000 HBD | ||||||||||||
body_length | 8,257 | ||||||||||||
author_reputation | 1,727,575,717,311 | ||||||||||||
root_title | "LINUXOPOLIS # 20-JANUARY-2020 ~ USER-MANAGEMENT" | ||||||||||||
beneficiaries |
| ||||||||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||||||||
percent_hbd | 0 | ||||||||||||
post_id | 94,586,895 | ||||||||||||
net_rshares | 332,732,911,151 | ||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
nascimentoab | 0 | 966,742,786 | 21.25% | ||
cheetah | 0 | 9,876,979 | 0.08% | ||
saltiberra | 0 | 1,062,104,591 | 10.62% | ||
asimshahzad | 0 | 21,022,609,462 | 100% | ||
pg-live-pt | 0 | 1,248,525,663 | 3.18% | ||
wglenz | 0 | 17,778,692,079 | 100% | ||
isaandrich | 0 | 4,142,965,030 | 75% | ||
ibc | 0 | 199,635,567,702 | 80% | ||
linuxbot | 0 | 13,567,882,729 | 80% | ||
joelpugapt | 0 | 1,725,579,544 | 100% | ||
steemitportugal | 0 | 70,508,573,773 | 21.25% | ||
gustavoagt | 0 | 542,372,423 | 100% | ||
sembdelgado | 0 | 233,666,734 | 50% | ||
drillez | 0 | -7,370,279 | -10% | ||
starworld | 0 | 295,121,935 | 100% |
Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in: https://www.vistaprint.ca/
author | cheetah |
---|---|
permlink | cheetah-re-wglenzlinuxopolis-20-january-2020-user-management |
category | linux |
json_metadata | "" |
created | 2020-01-20 19:13:30 |
last_update | 2020-01-20 19:13:30 |
depth | 1 |
children | 0 |
last_payout | 2020-01-27 19:13:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 125 |
author_reputation | 942,693,160,055,713 |
root_title | "LINUXOPOLIS # 20-JANUARY-2020 ~ USER-MANAGEMENT" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 94,586,901 |
net_rshares | 0 |