Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] enter systemd namespace
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
Johnnydsg
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2013
Posts: 116

PostPosted: Thu Mar 21, 2019 10:43 pm    Post subject: [Risolto] enter systemd namespace Reply with quote

Qualcuno gentilmente mi spiega che cosa fanno i seguenti comandi?

Code:
sed -i -e 's/^root:\*/root:/' /mnt/etc/shadow
systemd-nspawn -bD /mnt


Last edited by Johnnydsg on Fri Mar 22, 2019 10:23 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30894
Location: here

PostPosted: Fri Mar 22, 2019 6:55 am    Post subject: Reply with quote

Il primo comando sostiuisce root:* con root: questo vuol dire che rende il sistema da non accessibile con utente root ad accessibile con utente root senza passwod (per comprendere il file /etc/shadow vedi qui).
Il secondo fa il chroot su /mnt (vedi qui).
Quindi, penso, che rendi il chroot accessibile con utente root senza password
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Johnnydsg
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jan 2013
Posts: 116

PostPosted: Fri Mar 22, 2019 10:24 am    Post subject: Reply with quote

fedeliallalinea wrote:
Il primo comando sostiuisce root:* con root: questo vuol dire che rende il sistema da non accessibile con utente root ad accessibile con utente root senza passwod (per comprendere il file /etc/shadow vedi qui).
Il secondo fa il chroot su /mnt (vedi qui).
Quindi, penso, che rendi il chroot accessibile con utente root senza password


Grazie mille, per la spiegazione.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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