Posts: 4
Joined: Mon May 21, 2018 4:14 pm

Raspbian - Changing Default New User Image?

Wed May 23, 2018 12:49 pm

Hey guys,

I'm working on a project where I'll need to create multiple user accounts. Each one of these accounts needs to have the same applications and files loaded onto it. So my question is, is there a way to change the default image that raspbian uses when creating a new user so that I wont have to install all the same applications for every new user I create?


Posts: 7757
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspbian - Changing Default New User Image?

Wed May 23, 2018 1:00 pm

Looking at the same problem from a different viewpoint.

What are these problematic applications that need to be installed for each user?

Most Raspbian/Linux applications are installed system-wide so that they can be run by any user.

Posts: 579
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: Raspbian - Changing Default New User Image?

Wed May 23, 2018 3:34 pm

This would require some planning. You should acquaint your self with the following Linux commands:

adduser = to add a new user, the user's home directory, and group memberships.
visudo = to set authorization and options for users and using the sudo command.
userdel = to delete a user and the user's home directory.
groups = to list group membership of a user or groups available to installation.
usermod = modify existing user.
groupadd, groupdel = add and remove a user form a groups(s).
passwd = add/remove user password and set parameters for password.
chown = set ownership of files/folders.
chmod = change attributes of files/folders.

modification of the /etc/skel folder to control the default files included in a new users home directory.

You can use the man command to learn more about the above commands. There is also the Raspberry Pi documentation repository. Google can also find additional resources about Unix/Linux/Raspbian.

There is also some documentation on the RPF web site.

You may also want to research how groups can affect what tools, commands or programs, users have access to.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

Return to “General discussion”