Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s@lokal:~$ sudo adduser souser
- Adding user `souser' ...
- Adding new group `souser' (1002) ...
- Adding new user `souser' (1002) with group `souser' ...
- The home directory `/home/souser' already exists. Not copying from `/etc/skel'.
- Enter new UNIX password:
- Retype new UNIX password:
- passwd: password updated successfully
- Changing the user information for souser
- Enter the new value, or press ENTER for the default
- Full Name []:
- Room Number []:
- Work Phone []:
- Home Phone []:
- Other []:
- Is the information correct? [Y/n] y
- s@lokal:~$ sudo usermod -aG sudo souser
- s@lokal:~$ su souser
- Password:
- souser@lokal:/home/s$ cd
- souser@lokal:~$ mkdir test
- souser@lokal:~$ ls -ld test/
- drwxr-xr-x 2 souser souser 4096 Sep 3 14:23 test/
- souser@lokal:~$ chfn -o umask=002
- chfn: Permission denied.
- souser@lokal:~$ sudo chfn -o umask=002 souser
- souser@lokal:~$ mkdir test2
- souser@lokal:~$ ls -ld test2
- drwxr-xr-x 2 souser souser 4096 Sep 3 14:24 test2
- souser@lokal:~$ sudo cat /etc/passwd |grep souser
- souser:x:1002:1002:,,,,umask=002:/home/souser:/bin/bash
- souser@lokal:~$
Add Comment
Please, Sign In to add comment