Linux User & File Management
From 2047Servers Support
| Line 10: | Line 10: | ||
By default creating a user will also give them access to use SSH & FTP, yet this can be turned off / restricted by following the guide below. | By default creating a user will also give them access to use SSH & FTP, yet this can be turned off / restricted by following the guide below. | ||
| − | To Create a user you would normally use command | + | To Create a user you would normally use command (Which is fine as we can limit there access later on) |
useradd newuser | useradd newuser | ||
| + | |||
| + | === Setting a user to have admin permissions === | ||
| + | |||
| + | After you have created a new user account you will want to add them to the "sudoer" file, this will give them full admin permissions like the root account (Only do this if you really want to / trust them) | ||
| + | |||
| + | use nano to edit the file & add their account name (like the example screenshot below, but change newuser to their account name) | ||
| + | |||
| + | nano /etc/sudoers | ||
| + | |||
| + | [[File:sudoers.png|250px]] | ||
| + | |||
| + | After you have finished adding the new account you will need to save the file "Ctrl + X" (To exit) it will then ask to save "y = yes" - "n = no" | ||