Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
user reboot Unable to restart system via login: access denie
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Thu Dec 06, 2018 7:14 am    Post subject: user reboot Unable to restart system via login: access denie Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7127
Location: almost Mile High in the USA

PostPosted: Thu Dec 06, 2018 7:18 am    Post subject: Reply with quote

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@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Sat Dec 08, 2018 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Sat Dec 08, 2018 8:36 am    Post subject: Reply with quote

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
View user's profile Send private message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Sat Dec 08, 2018 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message
gentoo-find
n00b
n00b


Joined: 07 Apr 2018
Posts: 58

PostPosted: Sun Dec 09, 2018 5:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum