Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-system-image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reform
reform-system-image
Commits
c013f037
Commit
c013f037
authored
4 years ago
by
minute
Browse files
Options
Downloads
Patches
Plain Diff
mkuserland: fix adduser.conf to include EXTRA_GROUPS
parent
16a158e1
No related branches found
No related tags found
1 merge request
!15
mkuserland: fix adduser.conf to include EXTRA_GROUPS
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reform2-imx8mq/mkuserland.sh
+1
-0
1 addition, 0 deletions
reform2-imx8mq/mkuserland.sh
reform2-imx8mq/template-etc/adduser.conf
+85
-0
85 additions, 0 deletions
reform2-imx8mq/template-etc/adduser.conf
with
86 additions
and
0 deletions
reform2-imx8mq/mkuserland.sh
+
1
−
0
View file @
c013f037
...
@@ -42,6 +42,7 @@ cp $ETC/dhclient.conf target-userland/etc/dhcp
...
@@ -42,6 +42,7 @@ cp $ETC/dhclient.conf target-userland/etc/dhcp
cp
$ETC
/motd-rescue target-userland/etc/motd
# we start with the rescue system
cp
$ETC
/motd-rescue target-userland/etc/motd
# we start with the rescue system
cp
$ETC
/hostname target-userland/etc
cp
$ETC
/hostname target-userland/etc
cp
$ETC
/hosts target-userland/etc
cp
$ETC
/hosts target-userland/etc
cp
$ETC
/adduser.conf target-userland/etc
# or else EXTRA_GROUPS doesn't work?!
cp
$ETC
/reform-
*
target-userland/etc
cp
$ETC
/reform-
*
target-userland/etc
# copy pulse config files that will be moved inside the target fs later
# copy pulse config files that will be moved inside the target fs later
...
...
This diff is collapsed.
Click to expand it.
reform2-imx8mq/template-etc/adduser.conf
0 → 100644
+
85
−
0
View file @
c013f037
# /etc/adduser.conf: `adduser' configuration.
# See adduser(8) and adduser.conf(5) for full documentation.
# The DSHELL variable specifies the default login shell on your
# system.
DSHELL
=/
bin
/
bash
# The DHOME variable specifies the directory containing users' home
# directories.
DHOME
=/
home
# If GROUPHOMES is "yes", then the home directories will be created as
# /home/groupname/user.
GROUPHOMES
=
no
# If LETTERHOMES is "yes", then the created home directories will have
# an extra directory - the first letter of the user name. For example:
# /home/u/user.
LETTERHOMES
=
no
# The SKEL variable specifies the directory containing "skeletal" user
# files; in other words, files such as a sample .profile that will be
# copied to the new user's home directory when it is created.
SKEL
=/
etc
/
skel
# FIRST_SYSTEM_[GU]ID to LAST_SYSTEM_[GU]ID inclusive is the range for UIDs
# for dynamically allocated administrative and system accounts/groups.
# Please note that system software, such as the users allocated by the base-passwd
# package, may assume that UIDs less than 100 are unallocated.
FIRST_SYSTEM_UID
=
100
LAST_SYSTEM_UID
=
999
FIRST_SYSTEM_GID
=
100
LAST_SYSTEM_GID
=
999
# FIRST_[GU]ID to LAST_[GU]ID inclusive is the range of UIDs of dynamically
# allocated user accounts/groups.
FIRST_UID
=
1000
LAST_UID
=
59999
FIRST_GID
=
1000
LAST_GID
=
59999
# The USERGROUPS variable can be either "yes" or "no". If "yes" each
# created user will be given their own group to use as a default. If
# "no", each created user will be placed in the group whose gid is
# USERS_GID (see below).
USERGROUPS
=
yes
# If USERGROUPS is "no", then USERS_GID should be the GID of the group
# `users' (or the equivalent group) on your system.
USERS_GID
=
100
# If DIR_MODE is set, directories will be created with the specified
# mode. Otherwise the default mode 0755 will be used.
DIR_MODE
=
0755
# If SETGID_HOME is "yes" home directories for users with their own
# group the setgid bit will be set. This was the default for
# versions << 3.13 of adduser. Because it has some bad side effects we
# no longer do this per default. If you want it nevertheless you can
# still set it here.
SETGID_HOME
=
no
# If QUOTAUSER is set, a default quota will be set from that user with
# `edquota -p QUOTAUSER newuser'
QUOTAUSER
=
""
# If SKEL_IGNORE_REGEX is set, adduser will ignore files matching this
# regular expression when creating a new home directory
SKEL_IGNORE_REGEX
=
"dpkg-(old|new|dist|save)"
# Set this if you want the --add_extra_groups option to adduser to add
# new users to other groups.
# This is the list of groups that new non-system users will be added to
# Default:
EXTRA_GROUPS
=
"dialout cdrom floppy audio video plugdev users"
# If ADD_EXTRA_GROUPS is set to something non-zero, the EXTRA_GROUPS
# option above will be default behavior for adding new, non-system users
ADD_EXTRA_GROUPS
=
1
# check user and group names also against this regular expression.
#NAME_REGEX="^[a-z][-a-z0-9_]*\$"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment