]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/dpdk: reword the root access part 45661/head
authorKefu Chai <tchaikov@gmail.com>
Sat, 26 Mar 2022 17:00:19 +0000 (01:00 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 26 Mar 2022 17:00:21 +0000 (01:00 +0800)
the root access to system is not a must have for running a DPDK
application. so reword the "Configuring OSD DPDKStack" section.

also, manually editing /etc/passwd is not encouraged, so use
"usermod" instead. to add a directory after user's command
interpreter in /etc/passwd does not make sense. see PASSWD(5).
so drop the paragraph on editing /etc/passwd.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
doc/dev/dpdk.rst

index 7c87931b4055e17cd72e18e0fec02f0072c704cc..cdc31a7c65255806306e5a0c399c948076223851 100644 (file)
@@ -48,11 +48,13 @@ Binding NICs to DPDK Applications:
 Configuring OSD DPDKStack
 ==========================
 
-The DPDK RTE initialization process requires the root privileges.
-Therefore, you need to grant the root permission to ceph.
-modify ``/etc/passwd`` to give ceph user root privilege and ``/var/run`` folder write::
+By default, the DPDK RTE initialization process requires the root privileges
+for accessing various resources in system. To grant the root access to
+the ``ceph`` user:
 
-  ceph:x:0:0:Ceph storage service:/var/lib/ceph:/bin/false:/var/run
+.. prompt:: bash #
+
+   usermod -G root ceph
 
 The OSD selects the NICs using ``ms_dpdk_devs_allowlist``: