Guest User

Untitled

a guest
Sep 3rd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. s@lokal:~$ sudo adduser souser
  2. Adding user `souser' ...
  3. Adding new group `souser' (1002) ...
  4. Adding new user `souser' (1002) with group `souser' ...
  5. The home directory `/home/souser' already exists. Not copying from `/etc/skel'.
  6. Enter new UNIX password:
  7. Retype new UNIX password:
  8. passwd: password updated successfully
  9. Changing the user information for souser
  10. Enter the new value, or press ENTER for the default
  11. Full Name []:
  12. Room Number []:
  13. Work Phone []:
  14. Home Phone []:
  15. Other []:
  16. Is the information correct? [Y/n] y
  17. s@lokal:~$ sudo usermod -aG sudo souser
  18. s@lokal:~$ su souser
  19. Password:
  20. souser@lokal:/home/s$ cd
  21. souser@lokal:~$ mkdir test
  22. souser@lokal:~$ ls -ld test/
  23. drwxr-xr-x 2 souser souser 4096 Sep 3 14:23 test/
  24. souser@lokal:~$ chfn -o umask=002
  25. chfn: Permission denied.
  26. souser@lokal:~$ sudo chfn -o umask=002 souser
  27. souser@lokal:~$ mkdir test2
  28. souser@lokal:~$ ls -ld test2
  29. drwxr-xr-x 2 souser souser 4096 Sep 3 14:24 test2
  30. souser@lokal:~$ sudo cat /etc/passwd |grep souser
  31. souser:x:1002:1002:,,,,umask=002:/home/souser:/bin/bash
  32. souser@lokal:~$
Add Comment
Please, Sign In to add comment