正在加载图片...
3、创建用户信息 roupadd stugroup groupadd dev group groupadd smb group useradd -MN -g stugroup -s/sbin/nologin stul & echo -estulpwd\nstulpwd smbpasswd useradd -MN -g stugroup -s /sbin/nologin stu2 & echo -estu2pwd\nstu2pwd smbpasswd -a -s stu2 useradd -MN -g stugroup -s/sbin/nologin stu3 & echo -e stu3pwd\nstu3pwd smbpasswd -a -s stu useradd-MN-g tecgroup -s /sbin/nologin tecl & echo -e"teclpwd\nteclpwd smbpasswd -a -s tecl useradd-Mn -g tecgroup -s / sbin/nologin tec2 & echo -e"tec2pwd\ntec2pwd d -a -s tec2 useradd -MN -g tecgroup -s /sbin/nologin tec3 & echo -etec3pwd\ntec3pwd mbpasswd -a -s tec useradd-MN -g devgroup -s /sbin/nologin devl & echo -e "devlpwd\ndevlpwd useradd -Mn -g devgroup -s /sbin/nologin dev2 & echo -edev2pwd \ndev2pwd useradd -Mn -g devgroup -s /sbin/nologin dev 3 & echo -e" pwd\ndev3pwd smbpasswd -a -s dev3 useradd -MN smbgroup -s /sbin/nologin smbadmin & echo -e smbadminpwd\nsmbadminpwd"I smbpasswd -a -s smbadmin usermod levgroup tecl usermod -g devgroup tec2 nobody: nobody /srv/smb/PublicShare smbadmin: smbgroup /srv/smb/TeachShare chown smbadmin: devgroup /srv/smb/WorkShare echo user and group is config.3、创建用户信息 groupadd stugroup groupadd tecgroup groupadd devgroup groupadd smbgroup useradd -MN -g stugroup -s /sbin/nologin stu1 && echo -e "stu1pwd\nstu1pwd" | smbpasswd -a -s stu1 useradd -MN -g stugroup -s /sbin/nologin stu2 && echo -e "stu2pwd\nstu2pwd" | smbpasswd -a -s stu2 useradd -MN -g stugroup -s /sbin/nologin stu3 && echo -e "stu3pwd\nstu3pwd" | smbpasswd -a -s stu3 useradd -MN -g tecgroup -s /sbin/nologin tec1 && echo -e "tec1pwd\ntec1pwd" | smbpasswd -a -s tec1 useradd -MN -g tecgroup -s /sbin/nologin tec2 && echo -e "tec2pwd\ntec2pwd" | smbpasswd -a -s tec2 useradd -MN -g tecgroup -s /sbin/nologin tec3 && echo -e "tec3pwd\ntec3pwd" | smbpasswd -a -s tec3 useradd -MN -g devgroup -s /sbin/nologin dev1 && echo -e "dev1pwd\ndev1pwd" | smbpasswd -a -s dev1 useradd -MN -g devgroup -s /sbin/nologin dev2 && echo -e "dev2pwd\ndev2pwd" | smbpasswd -a -s dev2 useradd -MN -g devgroup -s /sbin/nologin dev3 && echo -e "dev3pwd\ndev3pwd" | smbpasswd -a -s dev3 useradd -MN -g smbgroup -s /sbin/nologin smbadmin && echo -e "smbadminpwd\nsmbadminpwd" | smbpasswd -a -s smbadmin usermod -G devgroup tec1 usermod -G devgroup tec2 chown nobody:nobody /srv/smb/PublicShare chown smbadmin:smbgroup /srv/smb/TeachShare chown smbadmin:devgroup /srv/smb/WorkShare echo 'user and group is config
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有