2. New user Mary, specify the UID for 1200 in the directory/home/user1, subordinate to the group for the school, designated for the shell/bin/bash, user Mary password randomly,
3. Switch to Mary users, new file mary1 in user home directory, and then switch to the user root,
4. Create a named after personal name whole put together under the/MNT directory, check the directory permissions, change the directory permissions for all users have all permissions,
5. In the topic directory to create a personal name and student id naming files, view the file permissions, change the file permissions for the owner, the group has all permissions, other users without any permission,
6. Add others to question file can be read permission,
More than 7. Delete files and directories,
CodePudding user response:
1, the groupadd - g 13002, the useradd -u/home/user1-1200 - d g school - s/bin/bash Mary
3, the su - Mary; CD/home/user1. The mkdir mary1; Su - root
4, the mkdir - pv/MNT/myname. Ll - d/MNT/myname. Chmod 777/MNT/myname
5, touch/MNT/myname myname_sid. TXT. Ll/MNT/myname. Chmod 770/MNT/myname myname_sid. TXT
6, chmod o + r/MNT/myname myname_sid. TXT
7, rm - rf/MNT/myname
CodePudding user response:
Thank you ah, although also don't know much about