LFS207 - LAB 29.3 (using LDAP) - oddjob to install
hi all,
maybe i'm getting it wrong, or maybe the problem is somewhere else,
but,
in LAB 29.3, step 5, when it comes to restart the modified service,
i cannot find it,
it was necessary to install with apt.
from terminal
missing
~$ systemctl restart sssd oddjobFailed to restart sssd.service: Access deniedSee system logs and 'systemctl status sssd.service' for details.Failed to restart oddjob.service: Access deniedSee system logs and 'systemctl status oddjob.service' for details.
installing
~$ sudo apt install oddjob oddjob-mkhomedirReading package lists... DoneBuilding dependency tree... DoneReading state information... Doneoddjob is already the newest version (0.34.7-2).oddjob set to manually installed.oddjob-mkhomedir is already the newest version (0.34.7-2).0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
restart
~$ systemctl restart sssd oddjobd~$ systemctl enable sssd oddjobdSynchronizing state of sssd.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.Executing: /usr/lib/systemd/systemd-sysv-install enable sssd
Running on
~$ hostnamectl...Operating System: Ubuntu 24.04.4 LTSKernel: Linux 7.0.0-28-genericArchitecture: x86-64...
btw, something wrong with the triple-backtick code fence to add terminal here!
Comments
-
Dear @luigicucciolillo
Good catch on posting the full command and the error output, as that makes this easy to diagnose. The Access denied message tells us this is a privileges issue rather than anything wrong with the services themselves. systemctl restart needs root, and your prompt ending in $ suggests you're currently running as a regular user, whereas the lab manual asks you to work as root, where the prompt ends in** #**. You can fix this in one of two ways. Either switch to a root shell with sudo -i, after which your prompt will change to # and you can run the command exactly as written in the manual, or simply prefix the single command with sudo, i.e. sudo systemctl restart sssd oddjob. Both work equally well. One thing worth noting as you continue through the lab: read-only commands like systemctl status sssd will run fine as a regular user, so it's specifically the state-changing operations (start, stop, restart, enable, disable) that require root. Give it another go and let us know how you get on.
0 -
hi there.
sorry for late reply.well, it happened that i rebooted the laptop, really bad decision:
the modified PAM in local machine created a misunderstanding with the GRUB.
when the GRUB was starting gdm3, it got stacked and was returning a black screen.after ours of troubleshooting,
addressing the GRUB for a while,
and after swearing against gdm3,
i just entered in text mode via an older version (systemd.unit=multi-user.target), reistalled several packages and changed graphic server (now running on LightDM)Helped by AI, seems that when init (after GRUB) was giving control to GDM3, it got stacked because PAM rules changed.
So, black screen due to GDM3 failing at startup because PAM changed.
it was a long trip into the bowels of Linux
0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 769 Linux Foundation IT Professional Programs
- 379 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 75 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 102 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 7 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 16 Cloud & Containers Training
- 2 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 4 System Administration Training
- 1 System Engineering Training
- 2 Web & Application Development Training
- 796 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 91 Storage
- 771 Linux Distributions
- 81 Debian
- 68 Fedora
- 23 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 466 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 79 Network Management
- 101 System Management
- 46 Web Management
- 128 Mobile Computing
- 20 Android
- 93 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 401 Off Topic
- 125 Introductions
- 32 Study Material
- 1K Programming and Development
- 310 Kernel Development
- 705 Software Development
- 1K Software
- 409 Applications
- 182 Command Line
- 5 Compiling/Installing
- 70 Games
- 318 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)
