1.用户名为linux01,需要密码登陆,用户ID为505,组ID为505,用户的宿主目录为/home/linux12,Shell环境为/bin/bash
2.useradd -g group user;echo "a1d2c3"|passwd --stdin user
3.groupadd mygroup;useradd -g mygroup myuser;Ctrl+D,使用myuser登录
touch ex hv;chown :root hv
4.useradd -d /helen henlen;groupadd -g 600 temp;usermod -G temp helen
5.更改配置文件/etc/login.defs的PASS_MAX_DAYS后面的值为90
6.会改变/etc/passwd,/etc/group,/etc/shadow,/etc/gshadow
7.1 ***
2 *
3 ***
4 *****
5 *
8.mount /dev/sda /mnt
cd /mnt/sda
mkdir myfiles
echo "123">myfiles/soft
cp myfiles/soft /root
cd /
umount /mnt
9.ll -a /root > /home/user/f1
df|grep /root > /home/user/f2
cat /home/user/f1 > /home/user/f3
cat /home/user/f2 >> /home/user/f3
10.mkdir /option1;echo 123>/option1/test;chown jack: /option/test;
cp -a /option1/test /tmp/test1
ln -s /tmp/test1 /tmp/soft
11.crontab -e;输入如下内容:
50 16 * * * rm -rvf /abc/*
00 8-18/60 * * * tail -n -5 /xyz/x1 >> /backup/bak01.txt
50 17 1 * * tar czf /data/* backup.tar.gz
55 17 * * * umount /dev/hdc
记得启动crond服务:service crond start
给分吧,花 了我半小时~~
1 用户名Linux01, 需要密码登录, 用户ID,用户组ID,用户家目录,用户默认的shell是bash
2 adduser -pa1b2c3 -G group user
3
groupadd mygroup
adduser -G mygroup myuser
logout
myuser
cd ~
:>ex
:>hv
sudo chgrp root ex
sudo chgrp root hv
4 adduser -d /helen
太长了是现在是懒的写...........
每逢周一
感觉像是在做题目么~~~~
建议去买本书,好好的学一下~~~~