Jump to content

Linux aiuto


Recommended Posts

ho messo su xubuntu ieri sera e ovviamente ho qualche intoppo e qualche dubbio

come utente non root non posso fare un cazzo coll'hard disk, rinominare cartelle, file e neppure spostarli, niente. come faccio a passare a root? c'è qualche metodo per "sbloccarlo" l'hard disk da utente? preciso che non è quello con il sistema operativo, nessuno, solo mp3 film e foto.

Link to comment
Share on other sites

si, ho già provato però alcune cose non le capisco

tipo

""

1) Creo un file contenente questo script e lo rendo eseguibile con chmod +x nome_script, poi lo sposto nella cartella /etc/init.d.

Codice:

IPTABLES=/sbin/iptables

echo 1 >/proc/sys/net/ipv4/ip_forward

$IPTABLES -t nat -P PREROUTING ACCEPT

$IPTABLES -t nat -P POSTROUTING ACCEPT

$IPTABLES -t nat -P OUTPUT ACCEPT

$IPTABLES -t mangle -P PREROUTING ACCEPT

$IPTABLES -t mangle -P OUTPUT ACCEPT

$IPTABLES -A POSTROUTING -t nat -o ppp0 -j MASQUERADE

$IPTABLES -A FORWARD -i eth0 -o ppp0 -j ACCEPT

$IPTABLES -A FORWARD -o ppp0 -i eth0 -j ACCEPT

2) Alla scheda di rete del pc connesso a internet do ip 192.168.0.1, a quella del pc con win 192.168.0.2, i dns che uso sul pc connesso e come gateway 192.168.0.1.

3) Per far partire la condivisione mi sposto in /etc/init.d e do sudo ./nome_script start

""

cazzo faccio? come lo creo il file con lo script? come lo rendo eseguibile?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...