In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
In some cases, ubuntu uses the new user name of useradd, and you cannot see the newly created user folder under the home folder, for example:
Root@worker:/home/kuku# useradd sparkroot@worker:/home/kuku# passwd sparkEnter new UNIX password: Retype new UNIX password: passwd: password updated successfullyroot@worker:/home/kuku# cd.. root@worker:/home# lskukuroot@worker:/home#
It is found that the folder for spark cannot be found, so it will be re-established in the following way
Delete the spark user first
Root@worker:/home# userdel sparkroot@worker:/home# useradd-r-m-s / bin/bash sparkroot@worker:/home# passwd sparkEnter new UNIX password: Retype new UNIX password: passwd: password updated successfullyroot@worker:/home# lskuku sparkroot@worker:/home#
If you want to add root permissions to a new user,
Root@worker:/home#chmod + w / etc/sudoersroot@worker:/home# vim / etc/sudoers
Add
Just save it!
If you want to delete a user,
Root@worker:/home# userdel-r sparkuserdel: spark mail spool (/ var/mail/spark) not foundroot@worker:/home# lskukuroot@worker:/home#
Can
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.