Create Linux User Without Home

Опубликовано: 19 Январь 2023
на канале: CodeCraft Academy
23
0

🎉 Don't miss out on more coding tips and tutorials! Subscribe to CodeCraft Academy now:    / @codecraft532   Question : The system admins team of xFusionCorp Industries has set up a new tool on all app servers, as they have a requirement to create a service user account that will be used by that tool. They are finished with all apps except for App Server 3 in Stratos Datacenter.

Create a user named rose in App Server 3 without a home directory

Solution:
1. At first login on app server given in task & Switch to root user
ssh banner@stapp03
sudo su -
2. Check user rose is existed , if not then proceed with creation
id rose
cat /etc/passwd |grep rose
3. create a user rose with below commands ( check user name in your task)
useradd -M rose