amrie @ ubuntu: ~ $ sudo su command enter root [Sudo] password for amrie:
3. Well, now we can create a user in accordance with what we want, by typing
root @ ubuntu: / home / amrie # adduser nama_user Example: root @ ubuntu: / home / amrie # adduser aam
then we will be asked to enter a password. Up here we've managed to create a user, please create a user with the same command.
4. Next we will try to log into one user salahh we have created. Diterminal still, out of the user amri by typing cd command, for example:
root @ ubuntu: / home / amrie # cd after that type the following command: root @ ubuntu: ~ # login aam command to enter user password: enter password then on our root terminal screen tips will turn into: aam @ ubuntu: ~ $ We've managed to get into one of the user that we created.
5. The next stage we will try to create a folder and files ending in. Txt using the terminal. To create a file diterminal we have to type the command:
aam @ ubuntu: ~ $ mkdir try this command to create a folder try
aam @ ubuntu: ~ $ cd try to go into the folder that we created aam @ ubuntu: ~ $ vi latihan1.txt this command to create the file : Wq command is used to store files that we created try to create the three files by using the above command.
6. Once finished creating the file extension. Txt we will try to set permissions on each file. To set the file permissions then we need to write the command chmod as follows:
aam @ ubuntu: ~ / $ chmod 777 latihan1.txt try to set permissions on the file first aam @ ubuntu: ~ / $ chmod 644 latihan2.txt try to set permissions on files that second aam @ ubuntu: ~ / $ chmod 700 latihan3.txt try to set permissions on files that third
7. Now we will try to get into other users we have created before, then delete the files that we created earlier:
aam @ ubuntu: ~ / try $ cd out of the folder
aam @ ubuntu: ~ $ logout log out or exit command from the user aam
root @ ubuntu: ~ # go to the root ubuntu
root @ ubuntu: ~ # login soekee login to user soekee
password:
soekee @ ubuntu: ~ $ go to the user soekee
8. Huh ... tired as well but stay a little longer, let us continue. Now we will go into the folder that we created diuser aam and delete files that we created earlier. Commands as follows:
soekee @ ubuntu: ~ $ cd / home
soekee @ ubuntu: / home $ cd aam
soekee @ ubuntu: / home / aam $ dir
soekee @ ubuntu: / home / aam $ cd try soekee @ ubuntu: / home / aam / try $
Until this step we have made it into a folder on the user try aam that contains the files that we make.
9. Let us try to delete files in the folder try:
soekee @ ubuntu: / home / aam / try $ rm latihan1.txt
soekee @ ubuntu: / home / aam / try $ rm latihan2.txt soekee @ ubuntu: / home / aam / try $ rm latihan3.txt
of the three files mentioned above there is nothing that we can delete the user soekee. Exercise files 1 we can see and edit melakukkan but could not delete, files exercise 2 we can not see, edit and delete a file while training 3 we can only see it. This is because the command that we type the file permissions on the user's time aam. So to delete the files we have to go to the aam or to the root user.
10. Now we will go into the user aam again then delete the folders and files that we created. To enter the user aam can be done as a command that has been described at the beginning so it does not need me to explain again here. Once entered into our aam user can delete a folder that has been created by typing the command:
aam @ ubuntu: ~ $ rm-r try
So try all files and folders will be deleted. So I've created this brief article, hope can add a little knowledge
0 komentar:
Posting Komentar