Create a common user under linux and give read and write permissions to a directory

Steps:

useradd -d /home/applog -m usfm

passwd usfm

Enter the password usfms1234

chown -R usfm:usfm /home/applog

chmod 760 /home/applog

Users created with this operation have read and write permissions in the specified directory by default, and only have read permissions in other directories

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324689460&siteId=291194637