blob: bd052ac0af7ff4e875d54ac42962af4d8d82ae9e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
- Change password of root
`# passwd`
- Install common base tools
`# pacman -S vim sudo visudo wget networkmanager xorg xorg-server git openssh fakeroot base-devel tigervnc tmux neofetch`
- Create new user with sudo privileges
- Create a new user
`# useradd -mG wheel <username>`
```
useradd = add a user
-m = associate a home directory
G = specify a group
wheel = group name
```
- Password for new user
`# passwd <username>`
- Type in new password and retype it to verify
- Enable sudo privileges for any user of the `wheel` group, replace vim with editor of choice
`# EDITOR=vim visudo`
- Look for and uncomment `# %wheel ALL=(ALL) ALL`, save and exit
Example:
```
%wheel ALL=(ALL) ALL
```
- Add <username> to sudoers. Edit/etc/sudoers with vi, add following lines beneath "root ALL=(ALL) ALL":
`<username> ALL=(ALL) ALL`
- Login to the non-root user account by default,
`# echo startarch login username > archlinux; chmod +x archlinux`
- To login into account:
`$ ./archlinux`
|