View previous topic :: View next topic |
Author |
Message |
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Thu Dec 06, 2018 7:14 am Post subject: user reboot Unable to restart system via login: access denie |
|
|
http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64-systemd/stage3-amd64-systemd-20181203.tar.bz2
tar xvjpf stage3-*.tar.bz2
useradd -m -G users,wheel,audio,cdrom,floppy,portage,usb,video,usb -s /bin/bash test
user:test
reboot
Unable to set pending message, ignore: denied access
Unable to restart system via login: access denied |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9709 Location: almost Mile High in the USA
|
Posted: Thu Dec 06, 2018 7:18 am Post subject: |
|
|
Are you sure you have systemd running?
Try loginctl and see if you got a seat on console or not. If you don't have a seat, ensure you're running systemd in your bootloader. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Sat Dec 08, 2018 7:17 am Post subject: |
|
|
eccerr0r wrote: | Are you sure you have systemd running?
Try loginctl and see if you got a seat on console or not. If you don't have a seat, ensure you're running systemd in your bootloader. |
1:
Code: | systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-cryptsetup@gentoo\x2droot.service loaded failed failed Cryptography Setup for gentoo-root |
2:I used GPG encryption
Code: | /etc/crypttab
gentoo-root /dev/sda4 /luks-key/luks-key.gpg |
3:systemctl reboot
Code: | Failed to set wall message, ignoring: Access denied
Failed to reboot system via logind: Access denied
Failed to start reboot.target: Access denied
See system logs and 'systemctl status reboot.target' for details |
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Sat Dec 08, 2018 8:36 am Post subject: |
|
|
eccerr0r wrote: | Are you sure you have systemd running?
Try loginctl and see if you got a seat on console or not. If you don't have a seat, ensure you're running systemd in your bootloader. |
Code: | systemctl status reboot.target
● reboot.target - Reboot
Loaded: loaded (/lib/systemd/system/reboot.target; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd.special(7) |
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Sat Dec 08, 2018 9:04 am Post subject: |
|
|
eccerr0r wrote: | Are you sure you have systemd running?
Try loginctl and see if you got a seat on console or not. If you don't have a seat, ensure you're running systemd in your bootloader. |
Code: | pstree
systemd─┬─NetworkManager─┬─2*[dhclient]
│ └─2*[{NetworkManager}] |
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
gentoo-find n00b
Joined: 07 Apr 2018 Posts: 74
|
Posted: Sun Dec 09, 2018 5:33 am Post subject: |
|
|
eccerr0r wrote: | Are you sure you have systemd running?
Try loginctl and see if you got a seat on console or not. If you don't have a seat, ensure you're running systemd in your bootloader. |
Code: |
ls -al /sbin/poweroff /sbin/reboot /sbin/shutdown
lrwxrwxrwx 1 root root 16 Dec 8 20:03 /sbin/poweroff -> ../bin/systemctl
lrwxrwxrwx 1 root root 16 Dec 8 20:03 /sbin/reboot -> ../bin/systemctl
lrwxrwxrwx 1 root root 16 Dec 8 20:03 /sbin/shutdown -> ../bin/systemctl
[/ | code] |
|
Back to top |
|
|
|