"Ian Perry" <[EMAIL PROTECTED]> writes:
> USER=$( who|grep ttyS1 | awk '{printf $1}')
In the interests of eliminating unneeded commands, did you realise you
can write this more easily as the following?
USER=$(who | awk '$2=="ttyS1" { print $1 }')
--
Carey Evans http://home.clear.n
On Tue, 3 Mar 1998, Ian Perry wrote:
> ---cut here---
> #!/bin/sh
>
> USER=$( who|grep ttyS1 | awk '{printf $1}')
>
> case $USER in
> fulltest) /sbin/route add 192.168.1.1 eth0;;
> esac
> --cut here--
glad to hear you're figuring it out :-)
> Again, Many thanks
what you've got t
Craig,
I used the following in ip-up
---cut here---
#!/bin/sh
USER=$( who|grep ttyS1 | awk '{printf $1}')
case $USER in
fulltest) /sbin/route add 192.168.1.1 eth0;;
esac
--cut here--
Again, Many thanks
Ian
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe
> Is there a way to safely change the routing table dependant on who logs in
> ?
Well, this is hard to imagine for a multi-user system. If you have several
users logged in -on on the console and another one from local network
via telnet? Anyway, if you still insist on this kind of setup, you may
w
The light comes on and the penny drops.
I will try it first thing in the morning.
Many thanks...
Ian
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble? e-mail to [EMAIL PROTECTED] .
On Mon, 2 Mar 1998, Ian Perry wrote:
> Sorry, Maybe I did not explain it well enough.
>
> The remote IP stays the same for all users loggin in (there is only
> one dial-in port)
>
> The route table has to change according to the user, not by the remote
> IP.
>
> The only means I have of Identifyin
192.168.1.1
Can ip-up identify a user ?... or can you specify a different ip-up for
each user ?
Ian
--
--
> From: Craig Sanders <[EMAIL PROTECTED]>
> To: Ian Perry <[EMAIL PROTECTED]>
> Cc: debian-user@lists.debian.org
> Subject: Re: Modifying Routing Tables on t
Ian Perry <[EMAIL PROTECTED]> writes:
> I am trying to modify a route table dependant on which user logs in through
> a dial-up connection.
> viz: route add 192.168.1.1 eth0
>
> I have already got
>
> route add -net 192.168.0.0 netmask 255.255.0.0 lo
> to stop other users getting to the local n
On Mon, 2 Mar 1998, Ian Perry wrote:
> I am trying to modify a route table dependant on which user logs in through
> a dial-up connection.
> viz: route add 192.168.1.1 eth0
>
> I have already got
>
> route add -net 192.168.0.0 netmask 255.255.0.0 lo
> to stop other users getting to the local ne
Hi,
I am trying to modify a route table dependant on which user logs in through
a dial-up connection.
viz:route add 192.168.1.1 eth0
I have already got
route add -net 192.168.0.0 netmask 255.255.0.0 lo
to stop other users getting to the local network (other than what they are
supposed to)
I
10 matches
Mail list logo