Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 275) sorted by relevance

1234567891011

/systemd-251/test/
Dtest-systemd-tmpfiles.py32 def test_line(line, *, user, returncode=EX_DATAERR, extra={}): argument
33 args = ['--user'] if user else []
40 def test_invalids(*, user): argument
41 test_line('asdfa', user=user)
42 test_line('f "open quote', user=user)
43 test_line('f closed quote""', user=user)
44 test_line('Y /unknown/letter', user=user)
45 test_line('w non/absolute/path', user=user)
46 test_line('s', user=user) # s is for short
47 test_line('f!! /too/many/bangs', user=user)
[all …]
/systemd-251/test/units/
Dtestsuite-46.sh20 userdbctl user "$USERNAME" | tee /tmp/b
47 NEWPASSWORD=xEhErW0ndafV4s homectl create test-user \
50 --image-path=/home/test-user.home \
53 inspect test-user
55 PASSWORD=xEhErW0ndafV4s homectl authenticate test-user
57 PASSWORD=xEhErW0ndafV4s homectl activate test-user
58 inspect test-user
60 PASSWORD=xEhErW0ndafV4s homectl update test-user --real-name="Inline test"
61 inspect test-user
63 homectl deactivate test-user
[all …]
Dtestsuite-43.sh15 runas testuser systemd-run --wait --user --unit=test-private-users \
18 runas testuser systemctl --user log-level debug
20 runas testuser systemd-run --wait --user --unit=test-private-tmp-innerfile \
28 runas testuser systemd-run --wait --user --unit=test-private-tmp-outerfile \
33 runas testuser systemd-run --wait --user --unit=test-unprotected-home \
38 runas testuser systemd-run --wait --user --unit=test-protect-home-read-only \
48 runas testuser systemd-run --wait --user --unit=test-protect-home-tmpfs \
54 runas testuser systemd-run --wait --user --unit=test-protect-home-yes \
66 runas testuser systemd-run --wait --user --unit=test-group-fail \
73 runas testuser systemd-run --wait --user --unit=test-bind-mount \
[all …]
Dtestsuite-22.08.sh12 rm -fr /tmp/root /tmp/user
13 mkdir -p /tmp/root /tmp/user/root
14 chown daemon:daemon /tmp/user
27 test ! -e /tmp/user/root/test
30 test ! -e /tmp/user/root/test
33 echo 'd /test' | systemd-tmpfiles --root=/tmp/user/root --create -
34 test -d /tmp/user/root/test
Dtestsuite-55.sh30 mkdir -p /etc/systemd/system/user@.service.d/
31 …moryPressure=auto\nManagedOOMMemoryPressureLimit=0%" >/etc/systemd/system/user@.service.d/99-oomd-…
84 systemctl start --machine "testuser@.host" --user testsuite-55-testchill.service
85 systemctl start --machine "testuser@.host" --user testsuite-55-testbloat.service
103 systemctl --machine "testuser@.host" --user status testsuite-55-testchill.service
109 if ! systemctl --machine "testuser@.host" --user status testsuite-55-testbloat.service; then
116 if systemctl --machine "testuser@.host" --user status testsuite-55-testbloat.service; then exit 42;…
117 if ! systemctl --machine "testuser@.host" --user status testsuite-55-testchill.service; then exit 2…
120 if setfattr -n user.xattr_test -v 1 /sys/fs/cgroup/; then
/systemd-251/src/rpm/
Dsystemd-update-helper.in16 install-user-units)
28 remove-user-units)
34 for user in $users; do
36 systemctl --user -M "$user@" disable --now "$@" &
50 mark-restart-user-units)
54 for user in $users; do
57 systemctl --user -M "$user@" set-property "$unit" Markers=+needs-restart &
80 user-reload-restart|user-reload|user-restart|user-reexec)
91 for user in $users; do
93 systemctl --user -M "$user@" daemon-reexec &
[all …]
/systemd-251/docs/
DUSER_RECORD.md10 systemd optionally processes user records that go beyond the classic UNIX (or
16 manages `human` user home directories and embeds these JSON records
27 resource management settings to the per-user slice units it manages. This
28 allows setting global limits on resource consumption by a specific user.
41 user records. It also provides a unified [Varlink](https://varlink.org/) API
45 JSON user records may contain various fields that are not available in `struct
52 2. Additional user metadata, such as a picture, email address, location string,
68 2. Information about default IMAP, SMTP servers to use for this user
70 3. Parental control information to enforce on this user
89 user credential data from the web and from local systems more closely together.
[all …]
DUSER_NAMES.md10 The precise set of allowed user and group names on Linux systems is weakly
12 restrictions on the syntax of user/group names are enforced — on some
21 Generally, the same rules apply for user as for group names.
25 * On POSIX the set of [valid user
31 user name. Interestingly no size limit is declared, i.e. in neither
33 string is a valid user name as well as a string of gigabytes in length.
52 allowed as user/group names.
54 * sssd is known to generate user names with embedded `@` and white-space
55 characters, as well as non-ASCII (i.e. UTF-8) user/group names.
57 * winbindd is known to generate user/group names with embedded `\` and
[all …]
DHOME_DIRECTORY.md12 encapsulates both the data store and the user record of the user, so that it
13 comprehensively describes the user account, and is thus naturally portable
21 user record of the user. It follows the format defined in
25 required nor enforced. Since the user record is cryptographically signed, the
26 user cannot make modifications to the file on their own (at least not without
28 that user records are stored here without their `binding`, `status` and
39 the user record in the `~/.identity` file.
42 `systemd-homed.service` by the user name, suffixed with `.homedir` (example:
43 `lennart.homedir` for a user `lennart`) but this is not enforced. When the user
47 way in `/home/*.homedir` and synthesize NSS user records for them as they show
[all …]
DUSER_GROUP_API.md19 user/group records from local services, and allows local subsystems to provide
20 user/group records efficiently to local applications.
22 The concepts described here define an IPC interface. Alternatively, user/group
43 2. The JSON user/group records are native JSON data, hence picking an IPC
60 `/run/systemd/userdb/` directory. When a client wants to look up a user or
74 is unconditionally followed for user and group look-ups (though not for
78 user/group records carefully makes sure not to answer with conflicting
79 records. This API does not define any mechanisms for dealing with user/group
81 the various subsystems that want to offer user and group records to the rest of
84 multiple definitions for the same user or group, and will also not be able to
[all …]
DUIDS-GIDS.md24 1. 0 → The `root` super-user
28 only supporting 16bit UIDs, NFS or user namespacing. (The latter can be
31 bit confused the `nobody` user is called `nfsnobody` there (and they have a
32 different `nobody` user at UID 99). I hope this will be corrected eventually
36 3. 4294967295, aka "32bit `(uid_t) -1`" → This UID is not a valid user ID, as
39 assignment to users in the user database.
45 The `nss-systemd` glibc NSS module will synthesize user database records for
46 the UIDs 0 and 65534 if the system user database doesn't list them. This means
61 regular users, even during runtime as user configuration. Moreover, some older
69 available regular user range only, usually 1000..60000. And it's also usually
[all …]
DUSERDB_AND_DESKTOPS.md13 a new concept `userdb` got merged that brings rich, extensible JSON user/group
42 the encryption keys (i.e. the user's login password) need to be reacquired on
44 system context, and cannot run in the user's own context, since otherwise it
45 might end up accessing the home directory of the user even though access to it
51 screen (re-authentication in this case refers to passing the user's login
55 and only switches back to the shell's UI after the user re-authenticated there.
64 that it is safe to suspend the user's home directory on suspend. This is done
69 if there's at least one active session of the user that does not support
74 The rich user/group records `userdb` and `systemd-homed` support carry various
75 fields of relevance to UIs that manage the local user database or parts
[all …]
DCONVERTING_TO_HOMED.md14 it might be desirable to convert an existing, traditional user account to a
38 home directory. Make sure to log out of your user account fully. Then log in
41 1. Rename your existing home directory to something safe. Let's say your user
48 2. Have a look at your existing user record, as stored in `/etc/passwd` and
58 user. For details about the fields, see the respective man pages
63 your user's main group. Depending on your distribution it's a group private
64 to the user, or a group shared by most local, regular users. Let's say the
72 user name your distribution apparently provided you with a private group for
73 your user. If it doesn't match (and is something like `users`) it apparently
75 each user under the same name, hence if your distribution is one of the
[all …]
DGROUP_RECORD.md13 Conceptually, much of what applies to JSON user records also applies to JSON
24 field of user records. A string in DNS domain name syntax.
27 `realName` field of user records, and accepts arbitrary strings, as long as
31 same field of user records. A string.
44 `members` → An array of strings, listing user names that are members of this
45 group. Note that JSON user records also contain a `memberOf` field, or in other
46 words a group membership can either be denoted in the JSON user record or in
48 as the combination of both lists (plus optionally others). If a user is listed
53 `administrators` → Similarly, an array of strings, listing user names that
59 same way as for the JSON user records, and have the same semantics.
[all …]
/systemd-251/src/home/
Dmeson.build26 'user-record-util.c',
27 'user-record-util.h',
57 'user-record-pwquality.c',
58 'user-record-pwquality.h',
59 'user-record-sign.c',
60 'user-record-sign.h',
61 'user-record-util.c',
62 'user-record-util.h',
83 'user-record-pwquality.c',
84 'user-record-pwquality.h',
[all …]
/systemd-251/src/login/
Dlogind-session.c106 if (s->user) { in session_free()
107 LIST_REMOVE(sessions_by_user, s->user->sessions, s); in session_free()
109 if (s->user->display == s) in session_free()
110 s->user->display = NULL; in session_free()
112 user_update_last_session_timer(s->user); in session_free()
159 assert(!s->user); in session_set_user()
161 s->user = u; in session_set_user()
209 if (!s->user) in session_save()
233 s->user->user_record->uid, in session_save()
234 s->user->user_record->user_name, in session_save()
[all …]
Dmeson.build40 'logind-user-dbus.c',
41 'logind-user-dbus.h',
42 'logind-user.c',
43 'logind-user.h',
62 user_runtime_dir_sources = files('user-runtime-dir.c')
78 'systemd-user',
79 input : 'systemd-user.in',
80 output : 'systemd-user',
/systemd-251/src/core/
Dsystemd.pc.in29 systemd_user_unit_dir=${prefix}/lib/systemd/user
32 systemd_user_preset_dir=${prefix}/lib/systemd/user-preset
38 systemd_user_conf_dir=${sysconfdir}/systemd/user
44 …/user:/run/systemd/user:/usr/local/lib/systemd/user:/usr/local/share/systemd/user:${systemd_user_u…
50 systemd_user_generator_dir=${prefix}/lib/systemd/user-generators
56 …ystemd_user_generator_path=/run/systemd/user-generators:/etc/systemd/user-generators:/usr/local/li…
Ddynamic-user.c699 _cleanup_free_ char *user = NULL; in dynamic_user_lookup_uid() local
711 r = read_one_line_file(lock_path, &user); in dynamic_user_lookup_uid()
718 r = dynamic_user_lookup_name(m, user, &check_uid); in dynamic_user_lookup_uid()
724 *ret = TAKE_PTR(user); in dynamic_user_lookup_uid()
749 int dynamic_creds_acquire(DynamicCreds *creds, Manager *m, const char *user, const char *group) { in dynamic_creds_acquire() argument
760 if (!creds->user && user) { in dynamic_creds_acquire()
761 r = dynamic_user_acquire(m, user, &creds->user); in dynamic_creds_acquire()
770 if (creds->user && (!group || streq_ptr(user, group))) in dynamic_creds_acquire()
771 creds->group = dynamic_user_ref(creds->user); in dynamic_creds_acquire()
776 creds->user = dynamic_user_unref(creds->user); in dynamic_creds_acquire()
[all …]
/systemd-251/units/
Duser@.service.in12 Documentation=man:user@.service(5)
13 After=systemd-user-sessions.service user-runtime-dir@%i.service dbus.service
14 Requires=user-runtime-dir@%i.service
19 PAMName=systemd-user
21 ExecStart={{ROOTLIBEXECDIR}}/systemd --user
22 Slice=user-%i.slice
Duser-runtime-dir@.service.in11 Description=User Runtime Directory /run/user/%i
12 Documentation=man:user@.service(5)
13 After=systemd-user-sessions.service dbus.service
18 ExecStart={{ROOTLIBEXECDIR}}/systemd-user-runtime-dir start %i
19 ExecStop={{ROOTLIBEXECDIR}}/systemd-user-runtime-dir stop %i
22 Slice=user-%i.slice
Dmeson.build29 'multi-user.target.wants/'],
55 ['multi-user.target', '',
61 ['nss-user-lookup.target', ''],
107 'multi-user.target.wants/'],
169 ['user.slice', ''],
217 'multi-user.target.wants/ dbus-org.freedesktop.login1.service'],
252 'multi-user.target.wants/ graphical.target.wants/ rescue.target.wants/'],
255 ['systemd-user-sessions.service', 'HAVE_PAM',
256 'multi-user.target.wants/'],
261 ['user-runtime-dir@.service', ''],
[all …]
/systemd-251/test/journal-data/
Djournal-1.txt8 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service
13 0::/user.slice/user-1002.slice/user@1002.service/gnome-terminal-server.service
/systemd-251/shell-completion/bash/
Dsystemd-analyze57 [STANDALONE]='-h --help --version --system --user --global --order --require --no-pager
78 systemd/timesyncd.conf systemd/user.conf udev/udev.conf'
113 comps='--help --version --system --user --global --no-pager'
118 comps='--help --version --system --user --fuzz --no-pager'
125 … comps='--help --version --system --user --global --from-pattern --to-pattern --order --require'
137 …comps='--help --version --system --user --global --man=no --generators=yes --root --image --recurs…
156 …comps='--help --version --no-pager --system --user -H --host -M --machine --offline --threshold --…
158 if __contains_word "--user" ${COMP_WORDS[*]}; then
159 mode=--user
171 comps='--help --version --system --user --global --no-pager --root --image'
[all …]
/systemd-251/shell-completion/zsh/
D_loginctl57 for fun in user-status show-user enable-linger disable-linger terminate-user kill-user ; do
74 _describe -t users user ${_sys_all_users_descr:+_sys_all_users_descr} _sys_all_users "$@"
77 _wanted users expl user compadd "$@" -a _sys_all_users
134 "user-status:Show user status"
135 "show-user:Show properties of one or more users"
138 "terminate-user:Terminate all sessions of one or more users"
139 "kill-user:Send signal to processes of a user"

1234567891011