Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove user linux

userdel *userToDelete*
Comment

remove users from linux

# Delete user and remove home and mail spool directory
userdel -r <username>
Comment

add and remove users in linux

#to add a user
sudo useradd <username>

#to remove a user
sudo userdel <username>

#to check for users
cat /etc/passwd

#to check for groups
cat /etc/group

#to assign a password to a user
sudo passwd <username>
  
#to allow the user login without username
sudo passwd -d <username>
Comment

PREVIOUS NEXT
Code Example
Shell :: Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. 
Shell :: wget git bash 
Shell :: ssh login windows 
Shell :: clear port by terminal 
Shell :: bash script get ip address of eth0 
Shell :: simple while loop program in shell script 
Shell :: change user linux 
Shell :: wine install ubuntu 
Shell :: kali linux 
Shell :: how to move a file in terminal 
Shell :: how to install blackeye bash 
Shell :: dollar to pkr 
Shell :: vlc for ubuntu 
Shell :: how to make a .sh file executable 
Shell :: folder size in linux 
Shell :: how to install snap store on kali linux 
Shell :: gem uninstall version specific 
Shell :: pdf pages to images imagemagick 
Shell :: install pre-commit 
Shell :: how to add a custom zsh aliases 
Shell :: linux commands 
Shell :: git enable lfs 
Shell :: cancel rebase git 
Shell :: is ubuntu debian 
Shell :: how to cd to a folder with a space 
Shell :: symfony install doctrine 
Shell :: how to uninstall program on ubuntu 
Shell :: minimize on click in ubuntu dock 
Shell :: kubectl exec bash 
Shell :: solana install 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =