[OT] Tar e permessi

2017-12-28 Per discussione Igor Trevisan
Ciao a tutti,

mi scuso subito per l'OT: la questione che pongo è assolutamente generale
(e non strettamente collegata a Debian quindi) ma confido che in lista ci
sia qualche anima pia che mi perdoni e possa dare una risposta definitiva
ai miei dubbi.

Vengo al sodo.
Sto lavorando da utente normale (senza alcun privilegio di root e senza
sudo) su una macchina di sviluppo su cui girano alcuni compilatori
arm-linux.
Con un framework per la gestione/creazione di Root File System per sistemi
Linux genero un pacchetto tar.bz2 che contiene un RFS completo per un
sistema Linux (arm). Tale pacchetto contiene file il cui owner è root
(riferito al sistema embedded per cui è stato prodotto).
Dovrei scompattare tale archivio, modificare un file e ricompattarlo senza
modificare owner e permessi dei file del RFS.
E' possibile? Se sì, come?

Comunque vada a finire questo mio OT (cestino, /dev/null ecc...) colgo
l'occasione per augurare a tutta la Lista un Buonissimo 2018! :-)
Ciao e grazie,
Igor.


-- 
"Don't find fault, find a remedy" (H.Ford)
---


Re: problema route

2017-12-28 Per discussione paolo gagini
Ciao,
Io proverei ad aggiungere la linea del broadcast.

Il 29 dic 2017 00:32, "emmanuel segura"  ha scritto:

Non so se è un errore di copia incolla, ma prova identare la tua config in
questo modo


auto enp4s0
iface enp4s0 inet static
address 192.168.0.2
netmask 255.255.255.0
 network 192.168.0.0
 gateway 192.168.0.1
 dns-nameservers 8.8.8.8 8.8.4.4

Il giorno 28 dicembre 2017 22:17, Michele Orsenigo  ha
scritto:

> On giovedì 28 dicembre 2017 21:38:51 CET Pol Hallen wrote:
> > 'sera a tutti :)
> >
> > su una debian 9 mi ritrovo con un curioso problema: ad ogni riavvio
> > internet non funziona più ma è sufficiente togliere il gw di default e
> > rimetterlo e tutto magicamente torna a posto :-/
> >
> > cat /etc/network/interfaces
> >
> > auto enp4s0
> >  iface enp4s0 inet static
> >  address 192.168.0.2
> >  netmask 255.255.255.0
> >  network 192.168.0.0
> >  gateway 192.168.0.1
> >  dns-nameservers 8.8.8.8 8.8.4.4
> >
> > dopo il riavvio e internet non funziona:
> >
> > route -n
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric RefUse
> > Iface
> > 0.0.0.0 192.168.0.1 0.0.0.0 UG0 00 enp4s0
> >
> > ifconfig enp4s0
> > enp4s0: flags=4163  mtu 1500
> >  inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
> >  inet6 fe80::c24a:ff:fe03:83fd  prefixlen 64  scopeid 0x20
> >  ether c0:4a:00:03:83:fd  txqueuelen 1000  (Ethernet)
> >  RX packets 40516896  bytes 43113107310 (40.1 GiB)
> >  RX errors 0  dropped 1  overruns 0  frame 0
> >  TX packets 30213824  bytes 5836877340 (5.4 GiB)
> >  TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> >
> > manualmente faccio:
> >
> > route del default gw 192.168.0.1
> > route add default gw 192.168.0.1
> >
> > e internet torna a funzionare
> >
> > qualche idea?
> >
> > grazie!
>
> Non so se davvero serva, ma nelle tue rotte mi aspetterei anche:
> 192.168.0.0   0.0.0.0 255.255.255.0   U 0  00
> enp4s0
>
> ma non ho idea del perchè non ci sia :(
> enp4s0 è l'unica interfaccia ?
>
> --
> Michele Orsenigo
> post...@orsenigo.it
> 
>
>


-- 
  .~.
  /V\
 //  \\
/(   )\
^`~'^


Re: problema route

2017-12-28 Per discussione emmanuel segura
Non so se è un errore di copia incolla, ma prova identare la tua config in
questo modo

auto enp4s0
iface enp4s0 inet static
address 192.168.0.2
netmask 255.255.255.0
 network 192.168.0.0
 gateway 192.168.0.1
 dns-nameservers 8.8.8.8 8.8.4.4

Il giorno 28 dicembre 2017 22:17, Michele Orsenigo  ha
scritto:

> On giovedì 28 dicembre 2017 21:38:51 CET Pol Hallen wrote:
> > 'sera a tutti :)
> >
> > su una debian 9 mi ritrovo con un curioso problema: ad ogni riavvio
> > internet non funziona più ma è sufficiente togliere il gw di default e
> > rimetterlo e tutto magicamente torna a posto :-/
> >
> > cat /etc/network/interfaces
> >
> > auto enp4s0
> >  iface enp4s0 inet static
> >  address 192.168.0.2
> >  netmask 255.255.255.0
> >  network 192.168.0.0
> >  gateway 192.168.0.1
> >  dns-nameservers 8.8.8.8 8.8.4.4
> >
> > dopo il riavvio e internet non funziona:
> >
> > route -n
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric RefUse
> > Iface
> > 0.0.0.0 192.168.0.1 0.0.0.0 UG0 00 enp4s0
> >
> > ifconfig enp4s0
> > enp4s0: flags=4163  mtu 1500
> >  inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
> >  inet6 fe80::c24a:ff:fe03:83fd  prefixlen 64  scopeid 0x20
> >  ether c0:4a:00:03:83:fd  txqueuelen 1000  (Ethernet)
> >  RX packets 40516896  bytes 43113107310 (40.1 GiB)
> >  RX errors 0  dropped 1  overruns 0  frame 0
> >  TX packets 30213824  bytes 5836877340 (5.4 GiB)
> >  TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> >
> > manualmente faccio:
> >
> > route del default gw 192.168.0.1
> > route add default gw 192.168.0.1
> >
> > e internet torna a funzionare
> >
> > qualche idea?
> >
> > grazie!
>
> Non so se davvero serva, ma nelle tue rotte mi aspetterei anche:
> 192.168.0.0   0.0.0.0 255.255.255.0   U 0  00
> enp4s0
>
> ma non ho idea del perchè non ci sia :(
> enp4s0 è l'unica interfaccia ?
>
> --
> Michele Orsenigo
> post...@orsenigo.it
> 
>
>


-- 
  .~.
  /V\
 //  \\
/(   )\
^`~'^


Re: problema route

2017-12-28 Per discussione Michele Orsenigo
On giovedì 28 dicembre 2017 21:38:51 CET Pol Hallen wrote:
> 'sera a tutti :)
> 
> su una debian 9 mi ritrovo con un curioso problema: ad ogni riavvio
> internet non funziona più ma è sufficiente togliere il gw di default e
> rimetterlo e tutto magicamente torna a posto :-/
> 
> cat /etc/network/interfaces
> 
> auto enp4s0
>  iface enp4s0 inet static
>  address 192.168.0.2
>  netmask 255.255.255.0
>  network 192.168.0.0
>  gateway 192.168.0.1
>  dns-nameservers 8.8.8.8 8.8.4.4
> 
> dopo il riavvio e internet non funziona:
> 
> route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric RefUse
> Iface
> 0.0.0.0 192.168.0.1 0.0.0.0 UG0 00 enp4s0
> 
> ifconfig enp4s0
> enp4s0: flags=4163  mtu 1500
>  inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
>  inet6 fe80::c24a:ff:fe03:83fd  prefixlen 64  scopeid 0x20
>  ether c0:4a:00:03:83:fd  txqueuelen 1000  (Ethernet)
>  RX packets 40516896  bytes 43113107310 (40.1 GiB)
>  RX errors 0  dropped 1  overruns 0  frame 0
>  TX packets 30213824  bytes 5836877340 (5.4 GiB)
>  TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> 
> manualmente faccio:
> 
> route del default gw 192.168.0.1
> route add default gw 192.168.0.1
> 
> e internet torna a funzionare
> 
> qualche idea?
> 
> grazie!

Non so se davvero serva, ma nelle tue rotte mi aspetterei anche:
192.168.0.0   0.0.0.0 255.255.255.0   U 0  00 enp4s0

ma non ho idea del perchè non ci sia :(
enp4s0 è l'unica interfaccia ?

-- 
Michele Orsenigo
post...@orsenigo.it




problema route

2017-12-28 Per discussione Pol Hallen

'sera a tutti :)

su una debian 9 mi ritrovo con un curioso problema: ad ogni riavvio 
internet non funziona più ma è sufficiente togliere il gw di default e 
rimetterlo e tutto magicamente torna a posto :-/


cat /etc/network/interfaces

auto enp4s0
    iface enp4s0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    network 192.168.0.0
    gateway 192.168.0.1
    dns-nameservers 8.8.8.8 8.8.4.4

dopo il riavvio e internet non funziona:

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref    Use 
Iface

0.0.0.0 192.168.0.1 0.0.0.0 UG    0 0    0 enp4s0

ifconfig enp4s0
enp4s0: flags=4163  mtu 1500
    inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
    inet6 fe80::c24a:ff:fe03:83fd  prefixlen 64  scopeid 0x20
    ether c0:4a:00:03:83:fd  txqueuelen 1000  (Ethernet)
    RX packets 40516896  bytes 43113107310 (40.1 GiB)
    RX errors 0  dropped 1  overruns 0  frame 0
    TX packets 30213824  bytes 5836877340 (5.4 GiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

manualmente faccio:

route del default gw 192.168.0.1
route add default gw 192.168.0.1

e internet torna a funzionare

qualche idea?

grazie!

--
Pol