add_new_raspbian_user
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
add_new_raspbian_user [2016/07/24 22:19] – walkeradmin | add_new_raspbian_user [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
\\ | \\ | ||
\\ | \\ | ||
- | THIS SECTION IS NOT YET FINISHED!!!!!!!!!! | + | If multiple people are using the same raspberry pi you may want to add new users so each person has their own user account.\\ |
\\ | \\ | ||
+ | Adding a new user is simple enough, the following method was done whilst logged in as the default user ' | ||
\\ | \\ | ||
+ | For this example we will create a new user called ' | ||
\\ | \\ | ||
+ | sudo adduser newuser | ||
\\ | \\ | ||
+ | This will create a new user along with a group ' | ||
+ | \\ | ||
+ | sudo passwd newuser | ||
\\ | \\ | ||
- | If multiple people are using the same raspberry pi you may want to add new users so each person has their own user account. | ||
- | |||
- | Adding a new user is simple enough, the following method was done whilst logged in as the default user ' | ||
- | |||
- | For this example we will create a new user called ' | ||
- | |||
- | sudo adduser newuser | ||
- | |||
- | |||
- | |||
- | This will create a new user along with a group ' | ||
- | |||
- | sudo passwd newuser | ||
- | |||
In order for the user to have the same privileges as the default account ' | In order for the user to have the same privileges as the default account ' | ||
- | + | \\ | |
- | groups pi | + | groups pi |
- | + | \\ | |
- | + | You can see pi belongs to several groups such as ' | |
- | + | \\ | |
- | You can see pi belongs to several groups such as ' | + | Do the same for the ' |
- | + | \\ | |
- | Do the same for the ' | + | groups newuser |
- | + | \\ | |
- | groups newuser | + | You'll see it only belongs to one group ' |
- | + | \\ | |
- | + | We need to add new user to the same groups as the user ' | |
- | + | \\ | |
- | You'll see it only belongs to one group ' | + | To add a user to a group we use the command:\\ |
- | + | \\ | |
- | We need to add new user to the same groups as the user ' | + | sudo adduser < |
- | + | \\ | |
- | To add a user to a group we use the command: | + | So to add ' |
- | + | \\ | |
- | sudo adduser < | + | sudo adduser newuser dialout |
- | + | \\ | |
- | So to add ' | + | Now repeat this step for all the remaining groups apart from the group ' |
- | + | \\ | |
- | sudo adduser newuser dialout | + | You can check the user has been added to correct groups by using the command groups newuser again.\\ |
- | + | \\ | |
- | + | \\ | |
- | + | The information on this page originated | |
- | Now repeat this step for all the remaining groups apart from the group ' | + | [[http:// |
- | + | \\ | |
- | You can check the user has been added to correct groups by using the command groups newuser again. | + | \\ |
- | + | ||
- | + | ||
- | + | ||
- | Deleting a user and removing a user from a group | + | |
- | + | ||
- | If you want to remove a user from a group you can use the following command: | + | |
- | + | ||
- | sudo deluser < | + | |
- | + | ||
- | So to remove user ' | + | |
- | + | ||
- | sudo deluser newuser adm | + | |
- | + | ||
- | A similar command can be used to delete an entire user along with it's home directory: | + | |
- | + | ||
- | sudo deluser < | + | |
- | + | ||
- | + | ||
- | [[http:// | + | |
- | + | ||
- | alias userlist=' | + | |
add_new_raspbian_user.1469395173.txt.gz · Last modified: 2023/03/09 22:35 (external edit)