Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
sudo chroot hd_ubuntu
sudo passwd nome_utente // oppure se hai un unico utente, dai solo passwd
passwd user_name
AlexZ ha detto:Avvia da una live..
apri terminale e dai
Codice:sudo chroot hd_ubuntu sudo passwd nome_utente // oppure se hai un unico utente, dai solo passwd
Imposti la tua password ed il gioco è fatto!!
Oromis92 ha detto:AlexZ ha detto:Avvia da una live..
apri terminale e dai
Codice:sudo chroot hd_ubuntu sudo passwd nome_utente // oppure se hai un unico utente, dai solo passwd
Imposti la tua password ed il gioco è fatto!!
c'è un metodo più carino senza doversi scaricare una live
1. durante il caricamento di grub premi ESC
2. seleziona (con le freccette) il kernel (qualcosa tipo "debian gnu linux kernel 2..."
3. premi E
4. selezione (con le freccette) la riga che inizia con la parola "kernel"
5. premi E
6. la riga finirà con "ro". cancella la "o" e sostituisci con "w"
7. aggiungi dopo "rw" la scritta "init=/bin/bash"
8. <INVIO>
9. premi B
10. dopo il boot, comparirà una shell di root a tutto schermo
11. dai il comando "less /etc/passwd" e guardi qual'è il tuo username (premi q per uscire da less)
12. dai il comando "passwd tuo_username" e inserisci le pass
Oromis92 ha detto:AlexZ ha detto:Avvia da una live..
apri terminale e dai
Codice:sudo chroot hd_ubuntu sudo passwd nome_utente // oppure se hai un unico utente, dai solo passwd
Imposti la tua password ed il gioco è fatto!!
c'è un metodo più carino senza doversi scaricare una live
1. durante il caricamento di grub premi ESC
2. seleziona (con le freccette) il kernel (qualcosa tipo "debian gnu linux kernel 2..."
3. premi E
4. selezione (con le freccette) la riga che inizia con la parola "kernel"
5. premi E
6. la riga finirà con "ro". cancella la "o" e sostituisci con "w"
7. aggiungi dopo "rw" la scritta "init=/bin/bash"
8. <INVIO>
9. premi B
10. dopo il boot, comparirà una shell di root a tutto schermo
11. dai il comando "passwd", segui le istruzioni (ovvero: inserisci la pass due volte) e riavvia.
AlexZ ha detto:Avvia da una live..
apri terminale e dai
Codice:sudo chroot hd_ubuntu sudo passwd nome_utente // oppure se hai un unico utente, dai solo passwd
Imposti la tua password ed il gioco è fatto!!
lepa ha detto:Allora non leggi quello che scrivo io?
DEVI VEDERE NEL FILE /etc/passwd
weed ha detto:ma non hai impostato una psw di root??
GidanTKA ha detto:lepa ha detto:Allora non leggi quello che scrivo io?
DEVI VEDERE NEL FILE /etc/passwd
E' criptata in md5?
tuo_nome:x:1000:1000:TuoNome,,,:/home/tuo_nome:/bin/bash
lepa ha detto:ma non la password......
l'username, che è il primo parametro, scritto in chiaro
la password poii la cambi con 'passwd username'
no quello che intendevo se non avevi anche la psw di root, che è diversa dalla psw del sudo-userGidanTKA ha detto:weed ha detto:ma non hai impostato una psw di root??
Ho fatto esattamente questo
http://www.danielesalamina.it/come-cambiare-la-password-di-root-in-ubuntu-linux
lepa ha detto:la password poii la cambi con 'passwd username'
passwd user
lepa ha detto:prova ad andare in live e a chrootarti, e da root daiE la password vecchia non te la chiederà , ma te la farà cambiare.Codice:passwd user
GidanTKA ha detto:lepa ha detto:prova ad andare in live e a chrootarti, e da root daiE la password vecchia non te la chiederà , ma te la farà cambiare.Codice:passwd user
per andare in root che comando devo scrivere?
sudo -s
sudo su
sudo chroot hd_ubuntu /bin/bash
passwd tuo_user
NAME
chroot -- change root directory
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
chroot(const char *dirname);
DESCRIPTION
Dirname is the address of the pathname of a directory, terminated by an
ASCII NUL. Chroot() causes dirname to become the root directory, that
is, the starting point for path searches of pathnames beginning with `/'.
In order for a directory to become the root directory a process must have
execute (search) access for that directory.
It should be noted that chroot() has no effect on the process's current
directory.
This call is restricted to the super-user.
Depending on the setting of the `kern.chroot_allow_open_directories'
sysctl variable, open filedescriptors which reference directories will
make the chroot() fail as follows:
If `kern.chroot_allow_open_directories' is set to zero, chroot() will
always fail with EPERM if there are any directories open.
If `kern.chroot_allow_open_directories' is set to one (the default),
chroot() will fail with EPERM if there are any directories open and the
process is already subject to a chroot() call.
Any other value for `kern.chroot_allow_open_directories' will bypass the
check for open directories
Upon successful completion, a value of 0 is returned. Otherwise, a value
of -1 is returned and errno is set to indicate an error.
ERRORS
Chroot() will fail and the root directory will be unchanged if:
[ENOTDIR] A component of the path name is not a directory.
[EPERM] The effective user ID is not the super-user, or one or
more filedescriptors are open directories.
[ENAMETOOLONG] A component of a pathname exceeded 255 characters, or
an entire path name exceeded 1023 characters.
[ENOENT] The named directory does not exist.
[EACCES] Search permission is denied for any component of the
path name.
[ELOOP] Too many symbolic links were encountered in translat-
ing the pathname.
[EFAULT] dirname points outside the process's allocated address
space.
[EIO] An I/O error occurred while reading from or writing to
the file system.
SEE ALSO
chdir(2), jail(2)
Name
chroot - run command or interactive shell with special root directory
Synopsis
chroot NEWROOT [COMMAND...]
chroot OPTION
Description
Run COMMAND with root directory set to NEWROOT.
--help
display this help and exit
--version
output version information and exit
If no command is given, run ''${SHELL} -i'' (default: /bin/sh).
Author
Written by Roland McGrath.
Reporting Bugs
Report bugs to <[email protected]>.
Copyright
Copyright � 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.
See Also
The full documentation for chroot is maintained as a Texinfo manual. If the info and chroot programs are properly installed at your site, the command
info chroot
should give you access to the complete manual.