[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ripristinare i permessi di default



Il giorno 24/ago/2015, alle ore 14:05, Piviul <piviul@riminilug.it> ha scritto:

> gerlos ha scrito il 24/08/2015 alle 13:19:
>> Hm. Ci faresti vedere i permessi di /bin/bash per esempio? Usa ls -l e getfacl. 
> 
> ubuntu@ubuntu:~$ ls -l /mnt/bin/bash
> -rwxr-xr-x 1 root root 941252 2014-09-25 20:46 /mnt/bin/bash
> ubuntu@ubuntu:~$ getfacl /mnt/bin/bash
> getfacl: Removing leading '/' from absolute path names
> # file: mnt/bin/bash
> # owner: root
> # group: root
> user::rwx
> group::r-x
> other::r-x
> 
>> Che utente stai usando? Root o un utente normale tramite sudo?
> sto usando il cd live di xubuntu 11.10 (avevo quello sotto mano) e ho
> provato sia con sudo chroot /mnt che da utente root direttamente
> (loggandomi come root tramite sudo su -)
> 
> ubuntu@ubuntu:~$ sudo chroot /mnt
> chroot: impossibile eseguire il comando "/bin/bash": Permesso negato
> ubuntu@ubuntu:~$ sudo su -
> root@ubuntu:~# chroot /mnt
> chroot: impossibile eseguire il comando "/bin/bash": Permesso negato

Può essere che il file system sia montato con l’opzione noexec?

Qual è l’output di 
$ mount 
Relativo al file system in questione?

saluti,
gerlos

PS Io non lo monterei direttamente su /mnt, ma in una subdirectory… 

--
"Life is pretty simple: You do some stuff. Most fails. Some works. You do more
of what works. If it works big, others quickly copy it. Then you do something
else. The trick is the doing something else."
           < http://gerlos.altervista.org >
 gerlos  +- - - >  gnu/linux registred user #311588


Reply to: