Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rp-pppoe da utente
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)
View previous topic :: View next topic  
Author Message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Aug 07, 2004 7:26 pm    Post subject: rp-pppoe da utente Reply with quote

ciao, dopo aver visto l'interessante tip su come dare i comandi di halt e reboot da utente configurando il comando sudo, mi sono chiesto se era possibile fare lo stesso con i vari adsl-* di rp-pppoe.
suggerimenti?

grazie
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Sat Aug 07, 2004 7:34 pm    Post subject: Re: rp-pppoe da utente Reply with quote

redview wrote:
ciao, dopo aver visto l'interessante tip su come dare i comandi di halt e reboot da utente configurando il comando sudo, mi sono chiesto se era possibile fare lo stesso con i vari adsl-* di rp-pppoe.
suggerimenti?


Usi gli stessi tip solo che invece di invocare i vari halt/shutdown invochi i comandi adsl-*.
_________________
Ciao da me!
Back to top
View user's profile Send private message
GiullaRe
n00b
n00b


Joined: 01 Aug 2004
Posts: 24

PostPosted: Sat Aug 07, 2004 7:36 pm    Post subject: Reply with quote

ciao ..una domanda ...a cosa ti serve poterla abilitare o disabilitare da utente ?
non ti basterebbe che si avviasse all'avvio indipendentemente dall'account che usi?

se si credo che basti fare da root
Code:
echo adsl-start >> /etc/init.d/local


su linux è cosi di solito, ma su gentoo non so onestamente ,xke ancora non sono riuscito ad usarla :P
spero di esserti stato utile
ciao
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Aug 07, 2004 7:45 pm    Post subject: Reply with quote

per GiullaRe:
in effetti quello che dici è vero.
e sulla mia gentoo questa possibilità è già funzionante: ho usato
Code:

rc-update add rp-pppoe default

e infatti al boot (o meglio..al terzo runlevel) mi si connette..però se per caso mi cade la linea o voglio per qualche motivo interromperla mi scassa sempre dare su.
ora provo a seguire randomaze..
grazie!! :)
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4795
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sat Aug 07, 2004 8:04 pm    Post subject: Reply with quote

redview wrote:

e infatti al boot (o meglio..al terzo runlevel) mi si connette..però se per caso mi cade la linea o voglio per qualche motivo interromperla mi scassa sempre dare su.

Se lavori in modalità grafica, prova tkpppoe. Si emerge contestualmente con rp-pppoe, quindi dovrebbe bastare digitare il comando (la prima volta da route)
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Aug 07, 2004 8:10 pm    Post subject: Reply with quote

Quote:

l primo è /sbin/reboot.sh. Il suo contenuto sarà:
Code:
#! /bin/sh
/sbin/shutdown -r 0


dal topic su halt e reboot da cui dovrei prendere spunto https://forums.gentoo.org/viewtopic.php?t=206349 , randomaze, nn mi è chiaro sto passaggio. quei 2 paramentri -r e 0.

Code:

/sbin/adsl-status -? ?


grazie?
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Aug 07, 2004 8:11 pm    Post subject: Reply with quote

per cloc3:

vorrei evitare di dover far dipendere il programma per connettermi dalla modalità grafica, dato che capita che nn sia in modalità grafica e soprattutto se nn mi parte più X mi ritroverei nella cacchina..

grazie cmq! :)
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Sat Aug 07, 2004 8:24 pm    Post subject: Reply with quote

in /etc/sudoers:
Code:

%dialout        tuo-hostname = NOPASSWD: /usr/sbin/adsl-*


e aggiungi gli utenti al gruppo dialout
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sat Aug 07, 2004 8:31 pm    Post subject: Reply with quote

dal mio file sudoers:

Quote:

%net rEvolution = NOPASSWD: /sbin/adsl-stop.sh
%net rEvolution = NOPASSWD: /sbin/adsl-start.sh
%net rEvolution = NOPASSWD: /sbin/adsl-status.sh


ma da utente:
Quote:

matix@rEvolution matix $ adsl-status
/sbin/adsl-status.sh: line 2: /sbin/adsl-status: No such file or directory

_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Sat Aug 07, 2004 11:28 pm    Post subject: Reply with quote

non inventarti complicazioni inutili, anche il thread che hai linkato ne era pieno

se gli script esistono è inutile crearne degli altri, reboot esiste, shutdown esiste, creare reboot.sh e shutdown.sh non serve a niente

allo stesso modo rp-pppoe crea i suoi script:
Code:
ghepeu@KazeNoTani Season 7 $ qpkg -l rp-pppoe
net-dialup/rp-pppoe-3.5-r1 *
CONTENTS:
[...]
/usr/sbin/adsl-stop
/usr/sbin/adsl-status
/usr/sbin/adsl-connect
/usr/sbin/adsl-setup
/usr/sbin/adsl-start
[...]


perciò aggiungere
Code:
%net rEvolution = NOPASSWD: /usr/sbin/adsl-*

basta e avanza
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Aug 08, 2004 9:49 am    Post subject: Reply with quote

Code:

matix@rEvolution matix $ adsl-status

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

        #1) Respect the privacy of others.
        #2) Think before you type.

Password:


ho seguito il tuo consiglio, GhePeU. io però nn voglio che mi venga richiesta nessuna psw, così come nn mi è richiesta per halt/reboot..anche perchè, che psw è questa!?
_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Sun Aug 08, 2004 9:57 am    Post subject: Reply with quote

il tuo utente è nel gruppo net?
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Aug 08, 2004 10:15 am    Post subject: Reply with quote


_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Sun Aug 08, 2004 10:27 am    Post subject: Reply with quote

posta il contenuto di /etc/sudoers e controlla se adsl-start e adsl-stop funzionano
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
redview
Guru
Guru


Joined: 18 Feb 2004
Posts: 365
Location: Goteborg - Sweden

PostPosted: Sun Aug 08, 2004 10:35 am    Post subject: Reply with quote

i vari adsl-* funzionano.
ecco sudoers:
Code:

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now

%shutdown ALL=(root) NOPASSWD: /sbin/reboot.sh
%shutdown ALL=(root) NOPASSWD: /sbin/halt.sh
%net rEvolution = NOPASSWD: /usr/sbin/adsl-stop
%net rEvolution = NOPASSWD: /usr/sbin/adsl-start
%net rEvolution = NOPASSWD: /usr/sbin/adsl-status

_________________
our enterprise a success as return is no option/our eyes were removed for our own safety/the distance too great for you to hear our cries/nevermind take this lamp we are beyond light [kinetic-arcturus]
you and I, connect and emerge [we ride-syl]
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Sun Aug 08, 2004 10:44 am    Post subject: Reply with quote

allora non è un problema di sudo, la configurazione è giusta
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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