linux 给用户分配指定目录

#### 创建用户和用户组 groupadd lianyu useradd lianyu -g lianyu passwd lianyu #### 用户登录指定目录 cd /home/lianyu ls -a . .. .bash_history .bash_logout .bash_profile .bashrc .cache CATALINA_HOME_IS_UNDEFINED .config .dubbo .ssh .viminfo 编辑.bash_profile,来指定: '# .bash_profile '# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi '# User specific environment and startup programs export IPOWER_HOME=/usr/local/ PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH cd $IPOWER_HOME
联系我们

邮箱 626512443@qq.com
电话 18611320371(微信)
QQ群 235681453

Copyright © 2015-2022

备案号:京ICP备15003423号-3