Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 slackware 14.2,我想在创建用户时在 /home/*/ 中创建目录 public_html。我看到 /etc/default/ 中有一个文件 useradd,但我不知道是否应该编辑这个文件。
像那样:
# mkdir /etc/skel/public_html # useradd -s /bin/bash -m -d /home/user1 user1 # ls -Al ~user1 total 4 drwxr-xr-x 2 user1 user1 4096 Dec 9 11:43 public_html