Re: ip alias +routing
On 16 Oct 2003 02:04:32 +0200 Chema Carballido <[EMAIL PROTECTED]> wrote: > Hello, > I would like to route two networks using one network -card. I think i > can set to diferent ip address for that card using alias. But how can i > enroute the traficc from one network to another. Hi Chema, All you should need is to enable routing between configured interfaces: echo 1 > /proc/sys/net/ipv4/ip_forward or sysctl -w net/ipv4/ip_forward=1 Good Luck, Sean -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
ip alias +routing
Hello, I would like to route two networks using one network -card. I think i can set to diferent ip address for that card using alias. But how can i enroute the traficc from one network to another. suppose network1 is 10.0.0.0 and network2 is 192.168.0.0.Could it be like this?: route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.x route add -net 192.168.0.0. netmask 255.255.255.0 gw 10.0.0.x but both are working over eth0 and also there is a default gateway to Internet (192.168.0.254). Please, open my eyes!!! I have a shutdown on my brain ;) Thank you all Chema -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: alias(rm as mv)
On Mon, Oct 06, 2003 at 06:00:42PM -0300, Herculano de Lima Einloft Neto wrote: > On Mon, 2003-10-06 at 16:43, Jeff Kinz wrote: > > Quick solution: > > here=`pwd` > > for i in $*; do > > absolutename="/${i}" > > I take it you mean > > absolutename="${here}/${i}" ? Yes, that was what I intended. (Still looking for a DWIW IDE. :) ) > > This still has one problem: we have to treat deletions with absolute > pathnames.. there should be a command or something: `fullname`.. :) > > > dn=`dirname $i` > > bn=`basename $i` > > name=$dn/$bn > > echo $absolutename >> ~/.trashdb; > > done > > mv -i $* ~/.Trash; > > > > Best bet - append the file being "trashed" to an existing gzipped tar > > archive. This way the full pathname can be saved with each file nad each > > file can besaved mutiple times in the archive. To save pain at a later > > date you can prepend each pathname with a "date_and_timestamp" making > > it easier to name each version of the same file uniquely and allow > > each one to be manipulated individually. > > I wonder if it would be easy to pull this functionality out of > nautilus to the command line, since it implements it reasonably well. > Should be for anyone involved with it. I dunno. Seems like you allready have most of what you need. just exchange the "mv -i" with "tar -zAF" ~/.Trash.tgz" $asolutename (appending/prepending the timestamp to the file name is left as an exercise to the reader :-) ) -- Jeff Kinz, Open-PC, Emergent Research, Hudson, MA. [EMAIL PROTECTED] copyright 2003. Use is restricted. Any use is an acceptance of the offer at http://www.kinz.org/policy.html. Don't forget to change your password often. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: alias(rm as mv)
On Mon, 2003-10-06 at 16:43, Jeff Kinz wrote: > Quick solution: > here=`pwd` > for i in $*; do >absolutename="/${i}" I take it you mean absolutename="${here}/${i}" ? This still has one problem: we have to treat deletions with absolute pathnames.. there should be a command or something: `fullname`.. :) > dn=`dirname $i` > bn=`basename $i` > name=$dn/$bn > echo $absolutename >> ~/.trashdb; > done > mv -i $* ~/.Trash; > > You still have the massive probleme of files that all posses the same > basename even though they came from different directories. Yeah.. it would be kind of boring to treat that. At least you'll know with -i. > Best bet - append the file being "trashed" to an existing gzipped tar > archive. This way the full pathname can be saved with each file nad each > file can besaved mutiple times in the archive. To save pain at a later > date you can prepend each pathname with a "date_and_timestamp" making > it easier to name each version of the same file uniquely and allow > each one to be manipulated individually. That sounds pretty good.. I wonder if it would be easy to pull this functionality out of nautilus to the command line, since it implements it reasonably well. Should be for anyone involved with it. Thanks -- Herculano de Lima Einloft Neto <[EMAIL PROTECTED]> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: alias(rm as mv)
On Mon, Oct 06, 2003 at 04:22:36PM -0300, Herculano de Lima Einloft Neto wrote: > I'm not sure this is what you want, but you could use: > > del() { mv -i $* ~/.Trash; } > > You can put it in ~/.bashrc > You should find a lot about this searching around.. you shouldn't use > rm as the new command's name, to keep the respect for it. > > On this subject, if anyone can help: > > I'm trying to make it better, something like: > > for i in $*; do > dn=`dirname $i` > bn=`basename $i` > name=$dn/$bn > echo $name >> ~/.trashdb; > done > mv -i $* ~/.Trash; > > Except this doesn't work.. could anyone please tell me the way to get a > file's absolute name from within a script? Quick solution: here=`pwd` for i in $*; do absolutename="/${i}" dn=`dirname $i` bn=`basename $i` name=$dn/$bn echo $absolutename >> ~/.trashdb; done mv -i $* ~/.Trash; You still have the massive probleme of files that all posses the same basename even though they came from different directories. Best bet - append the file being "trashed" to an existing gzipped tar archive. This way the full pathname can be saved with each file nad each file can besaved mutiple times in the archive. To save pain at a later date you can prepend each pathname with a "date_and_timestamp" making it easier to name each version of the same file uniquely and allow each one to be manipulated individually. -- Jeff Kinz, Open-PC, Emergent Research, Hudson, MA. [EMAIL PROTECTED] copyright 2003. Use is restricted. Any use is an acceptance of the offer at http://www.kinz.org/policy.html. Don't forget to change your password often. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: alias(rm as mv)
Himanshu Arora wrote: > Hi All! > i want rm command to be converted into > > mv (whatever is there after rm command) Trash/ > > where Trash/ is the final destination. > But the alias command doesn't have any support for the above mentioned > purpose. Could you suggest me a way to convert rm into mv ? > Himanshu Arora > IIIT Hyderabad I'm not sure this is what you want, but you could use: del() { mv -i $* ~/.Trash; } You can put it in ~/.bashrc You should find a lot about this searching around.. you shouldn't use rm as the new command's name, to keep the respect for it. On this subject, if anyone can help: I'm trying to make it better, something like: for i in $*; do dn=`dirname $i` bn=`basename $i` name=$dn/$bn echo $name >> ~/.trashdb; done mv -i $* ~/.Trash; Except this doesn't work.. could anyone please tell me the way to get a file's absolute name from within a script? Thanks in advance, -- Herculano de Lima Einloft Neto <[EMAIL PROTECTED]> -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: alias(rm as mv)
On Mon, Oct 06, 2003 at 11:44:34PM +0530, Himanshu Arora wrote: > i want rm command to be converted into > > mv (whatever is there after rm command) Trash/ > > where Trash/ is the final destination. > But the alias command doesn't have any support for the above mentioned > purpose. Could you suggest me a way to convert rm into mv ? You simply can't do this by aliasing and expect to always work. Rewrite the rm command to do what you want. -- Ed Wilts, Mounds View, MN, USA mailto:[EMAIL PROTECTED] Member #1, Red Hat Community Ambassador Program -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
alias(rm as mv)
Hi All! i want rm command to be converted into mv (whatever is there after rm command) Trash/ where Trash/ is the final destination. But the alias command doesn't have any support for the above mentioned purpose. Could you suggest me a way to convert rm into mv ? Himanshu Arora IIIT Hyderabad -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Newbie! How to set alias with Apache configuration GUI
On Fri, Oct 03, 2003 at 11:20:02PM +0100, Rui Miguel Cruz wrote: > Hi! [...snip...] > I'm using Apache as web server, and i don't know how to implement a > directory alias in the Apache (like a virtual directory in the Win IIS). > Suppose my web server has the following base name: "/www.my_server.com/" > and it is associated with the directory "/my_dir/www_dir". > > My problem is that i need to associate the following directory > "/misc_dir/food_dir" with the link "/www.myserver.com/food". > > I'm using the Apache GUI provided with Linux RedHat 9. Well, what you need to do is check out the mod_rewrite. It should work like this: RewriteEngine On RewriteRule ^/food/ /misc_dir/food_dir/ > > Can any one help me, please. I hope I did... ;o) > > > Thanks > > Rui Cruz best regards Klaus > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list -- Klaus Zahradnik Systemadministrator iNet Gruppe T: +43 2622 244 8032 H: +43 6991 444 8006 I: www.inetgruppe.at -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Newbie! How to set alias with Apache configuration GUI
Hi! I'm starting with linux. i don't know if the question i'm writing has been questioned before, if so i'm sorry. I'm using Apache as web server, and i don't know how to implement a directory alias in the Apache (like a virtual directory in the Win IIS). Suppose my web server has the following base name: "/www.my_server.com/" and it is associated with the directory "/my_dir/www_dir". My problem is that i need to associate the following directory "/misc_dir/food_dir" with the link "/www.myserver.com/food". I'm using the Apache GUI provided with Linux RedHat 9. Can any one help me, please. Thanks Rui Cruz -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
On Mon, Jul 28, 2003 at 12:38:20PM -0500, Dave Ihnat wrote: > On Mon, Jul 28, 2003 at 11:53:07AM -0500, Ed Wilts wrote: > > For the record, that perl script didn't work at all. It gave me > > identical entries of "1|||". ... > > Yah, it doesn't work, at least for perl 5.8.x; there's something > squirrely in the regex for matching the entire rest of the string except > the address. It's on my back burner to look at sometime, but there's > a lot of stuff ahead of it. I'm runnning Perl 5.6 and I didn't have the time to dig through it to find out why the regex didn't work and found my workaround using the ldif exchange. FWIW, abook didn't like the format of my mutt address much either. Entries like "Ed Wilts (work)" or "Ed (work) Wilts" really confused it. I had to do some editing of the mutt alias file before I got the smooth export/import. -- Ed Wilts, Mounds View, MN, USA mailto:[EMAIL PROTECTED] Member #1, Red Hat Community Ambassador Program -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
On Mon, Jul 28, 2003 at 11:53:07AM -0500, Ed Wilts wrote: > For the record, that perl script didn't work at all. It gave me > identical entries of "1|||". ... Yah, it doesn't work, at least for perl 5.8.x; there's something squirrely in the regex for matching the entire rest of the string except the address. It's on my back burner to look at sometime, but there's a lot of stuff ahead of it. -- Dave Ihnat [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
On Sat, Jul 26, 2003 at 09:38:24AM -0500, Ed Wilts wrote: > On Sat, Jul 26, 2003 at 08:49:10AM -0400, Jason Dixon wrote: > > On Sat, 2003-07-26 at 08:43, Ed Wilts wrote: > > > Are there any utilities to convert a mutt alias file to Squirrelmail's > > > address book format? I did check the recent version of abook which does > > > a bunch of different addressbook conversions, but none match what > > > Squirrelmail seems to be use. > > > > A Google search of "convert a mutt alias file to Squirrelmail address > > book format" resulted in the following from the very first hit. Did you > > try searching before posting off-topic to a Red Hat Linux mailing list? > > > > http://www.hollenback.net/index.php/SynchronizeMuttWithSquirrelmail > > Thanks again for the link and I'll see if I can make that work for me. For the record, that perl script didn't work at all. It gave me identical entries of "1|||". I ended up using abook to do an ldif export, followed by a SquirrelMail plug-in to do an ldif import, and that worked. -- Ed Wilts, Mounds View, MN, USA mailto:[EMAIL PROTECTED] Member #1, Red Hat Community Ambassador Program -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
On Sat, 2003-07-26 at 12:57, Jack Bowling wrote: > ** Reply to message from Jason Dixon <[EMAIL PROTECTED]> on Sat, 26 Jul 2003 > 10:48:30 -0400 > > > On Sat, 2003-07-26 at 10:38, Ed Wilts wrote: > > > > > Red Hat Linux includes both mutt and Squirrelmail, so this posting was > > > definitely not off-topic. > > > > Red Hat Linux also contains Perl and Sendmail, but it would not be > > considered appropriate to ask for assistance writing a spam harvester > > using both of these applications. In your case, the right place to pose > > your question would have been a Squirrelmail forum or mailing list. > > Nevertheless, I'm glad it worked for you. > > It's a beautiful day here and I'm just about to head for the beach. > But before I do, I would just like to let Jason know that if he > doesn't want to read some of the posts here, USE THE FREAKING DELETE > KEY. Just like I did on your whiney little post. See y'all later. Jack, it's a beautiful day here as well. It's unfortunate that you felt the need to take time out of your day to add nothing of substance to this thread. If you don't like my responses, fine... delete them as you suggest. Regardless, I *did* take time out of my day to answer Ed's request to satisfaction. I also suggested that he post where it's likely to receive the most effective attention. I'd also like to suggest that, in the future, you restrain from using the Caps Lock keys. Enjoy the weather. -- Jason Dixon, RHCE DixonGroup Consulting http://www.dixongroup.net -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
** Reply to message from Jason Dixon <[EMAIL PROTECTED]> on Sat, 26 Jul 2003 10:48:30 -0400 > On Sat, 2003-07-26 at 10:38, Ed Wilts wrote: > > > Red Hat Linux includes both mutt and Squirrelmail, so this posting was > > definitely not off-topic. > > Red Hat Linux also contains Perl and Sendmail, but it would not be > considered appropriate to ask for assistance writing a spam harvester > using both of these applications. In your case, the right place to pose > your question would have been a Squirrelmail forum or mailing list. > Nevertheless, I'm glad it worked for you. It's a beautiful day here and I'm just about to head for the beach. But before I do, I would just like to let Jason know that if he doesn't want to read some of the posts here, USE THE FREAKING DELETE KEY. Just like I did on your whiney little post. See y'all later. jb -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
On Sat, 2003-07-26 at 10:38, Ed Wilts wrote: > Red Hat Linux includes both mutt and Squirrelmail, so this posting was > definitely not off-topic. Red Hat Linux also contains Perl and Sendmail, but it would not be considered appropriate to ask for assistance writing a spam harvester using both of these applications. In your case, the right place to pose your question would have been a Squirrelmail forum or mailing list. Nevertheless, I'm glad it worked for you. -- Jason Dixon, RHCE DixonGroup Consulting http://www.dixongroup.net -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
On Sat, Jul 26, 2003 at 08:49:10AM -0400, Jason Dixon wrote: > On Sat, 2003-07-26 at 08:43, Ed Wilts wrote: > > Are there any utilities to convert a mutt alias file to Squirrelmail's > > address book format? I did check the recent version of abook which does > > a bunch of different addressbook conversions, but none match what > > Squirrelmail seems to be use. > > A Google search of "convert a mutt alias file to Squirrelmail address > book format" resulted in the following from the very first hit. Did you > try searching before posting off-topic to a Red Hat Linux mailing list? > > http://www.hollenback.net/index.php/SynchronizeMuttWithSquirrelmail Thanks for the link. Yes, I did spend about a half hour with Google looking for tools and came up empty. I spent an hour or so working with abook to see if it was supported there (it isn't) and starting thinking about writing code to see if I could get abook to produce an intermediate format that would be easier to get into SquirrelMail (elm format is close). I also contacted the abook author to see about getting SquirrelMail added. Red Hat Linux includes both mutt and Squirrelmail, so this posting was definitely not off-topic. Thanks again for the link and I'll see if I can make that work for me. .../Ed -- Ed Wilts, Mounds View, MN, USA mailto:[EMAIL PROTECTED] Member #1, Red Hat Community Ambassador Program -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Mutt alias file to Squirrelmail address book?
On Sat, 2003-07-26 at 08:43, Ed Wilts wrote: > Are there any utilities to convert a mutt alias file to Squirrelmail's > address book format? I did check the recent version of abook which does > a bunch of different addressbook conversions, but none match what > Squirrelmail seems to be use. A Google search of "convert a mutt alias file to Squirrelmail address book format" resulted in the following from the very first hit. Did you try searching before posting off-topic to a Red Hat Linux mailing list? http://www.hollenback.net/index.php/SynchronizeMuttWithSquirrelmail -- Jason Dixon, RHCE DixonGroup Consulting http://www.dixongroup.net -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Mutt alias file to Squirrelmail address book?
Are there any utilities to convert a mutt alias file to Squirrelmail's address book format? I did check the recent version of abook which does a bunch of different addressbook conversions, but none match what Squirrelmail seems to be use. Thanks! .../Ed -- Ed Wilts, Mounds View, MN, USA mailto:[EMAIL PROTECTED] Member #1, Red Hat Community Ambassador Program -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: variables within an alias command
Chris W. Parker staggered into view and mumbled: > Where do I define that? $HOME/.bash_profile should do. It holds all user-specific aliases and functions. Lorenzo Prince -- "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." (By Matt Welsh) -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: variables within an alias command
> I'll take 10 floggings for not knowing this... but... > > Where do I define that? posix shell and ksh have a nice feature called autoloading functions. You define an FPATH variable pointing to a directory and any files in that directory will be loaded as functions on demand. bash doesn't seem to have that feature so I guess you'll have to put it in your .bashrc or .bash_profile (depending on where and when you want to use the function). (In other words: the same place you define aliases). -- Ian -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
RE: variables within an alias command
Ian Mortimer <mailto:[EMAIL PROTECTED]> wrote: > > The alias would look something like this (as I imagine it in my > > head): > > > > $ alias ald='ls -la $1|egrep ^d' > > You'll have to define it as a function: > > function ald { ls -la $1 | grep -E ^d; } I'll take 10 floggings for not knowing this... but... Where do I define that? :) Chris. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: variables within an alias command
> The alias would look something like this (as I imagine it in my head): > > $ alias ald='ls -la $1|egrep ^d' You'll have to define it as a function: function ald { ls -la $1 | grep -E ^d; } -- Ian -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
variables within an alias command
Hello. Here is a quick run down of what I'm facing. $ alias all='ls -la' $ all /var/log This works because it's the as typing: $ ls -la /var/log but $ alias ald='all|egrep ^d' $ ald /var/log does not work because it's the same as typing: $ ls -la|egrep ^d /var/log which is out of order. Is it possible to construct the alias in such a way that I make this happen? $ ls -la /var/log|egrep ^d The alias would look something like this (as I imagine it in my head): $ alias ald='ls -la $1|egrep ^d' Hopefully I've made some sense and someone can give me a yes or no. Thanks, Chris. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
RE: ip alias problem
Also, ifconfig sets network confs in memory only. Try hard coding in /etc/sysconfig/network-scripts. BobB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Miranda Gomez Miguel Angel Sent: Monday, July 07, 2003 7:03 PM To: [EMAIL PROTECTED] Subject: ip alias problem hi list, i have a strange problem, i did configure an ip alias for eth0: /sbin/ifconfig eth0:0 172.16.3.10 The main ip is 172.16.3.9, when i send a pakcet to the virtual address, the server responds using the main address, i.e. Sending Access-Request of id 230 to 172.16.3.10:1812 User-Name = "2660124" User-Password = "2663#" NAS-IP-Address = radius NAS-Port = 0 rad_recv: Access-Reject packet from host 172.16.3.9:1812, id=230, length=20 radclient: ERROR: Sent request to host 172.16.3.10:1812, got response from host 172.16.3.9:1812 Is this normal, or am i missing something? thanks in advence. Miguel Miranda -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
RE: ip alias problem
According to the services file the high port 1812 is reserved for Radius...good. Seems that the application Radius is referencing the host file or the localhost name/assigned IP. Aside: never wise to transmit a user name and password to message boards. Also, Radius probably needs the IP 172.16.3.10 set as the IP to listen on... Hope this helps. BobB ShadowMedia.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Miranda Gomez Miguel Angel Sent: Monday, July 07, 2003 7:03 PM To: [EMAIL PROTECTED] Subject: ip alias problem hi list, i have a strange problem, i did configure an ip alias for eth0: /sbin/ifconfig eth0:0 172.16.3.10 The main ip is 172.16.3.9, when i send a pakcet to the virtual address, the server responds using the main address, i.e. Sending Access-Request of id 230 to 172.16.3.10:1812 User-Name = "2660124" User-Password = "2663#" NAS-IP-Address = radius NAS-Port = 0 rad_recv: Access-Reject packet from host 172.16.3.9:1812, id=230, length=20 radclient: ERROR: Sent request to host 172.16.3.10:1812, got response from host 172.16.3.9:1812 Is this normal, or am i missing something? thanks in advence. Miguel Miranda -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
ip alias problem
hi list, i have a strange problem, i did configure an ip alias for eth0: /sbin/ifconfig eth0:0 172.16.3.10 The main ip is 172.16.3.9, when i send a pakcet to the virtual address, the server responds using the main address, i.e. Sending Access-Request of id 230 to 172.16.3.10:1812 User-Name = "2660124" User-Password = "2663#" NAS-IP-Address = radius NAS-Port = 0 rad_recv: Access-Reject packet from host 172.16.3.9:1812, id=230, length=20 radclient: ERROR: Sent request to host 172.16.3.10:1812, got response from host 172.16.3.9:1812 Is this normal, or am i missing something? thanks in advence. Miguel Miranda -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Multiple Network Alias
You can use a range file like this [EMAIL PROTECTED]/etc/sysconfig/network-scripts # ll ifcfg-eth* -rw-r--r--1 root root 116 Nov 1 08:54 ifcfg-eth0 -rw-r--r--1 root root 104 Nov 1 08:50 ifcfg-eth1 -rw-r--r--1 root root 69 Dec 6 16:09 ifcfg-eth1-range0 [EMAIL PROTECTED]/etc/sysconfig/network-scripts # cat ifcfg-eth1 DEVICE=eth1 BOOTPROTO=static ONBOOT=yes IPADDR=192.168.0.2 NETMASK=255.255.255.0 GATEWAY=192.168.0..1 [EMAIL PROTECTED]/etc/sysconfig/network-scripts # cat ifcfg-eth1-range0 IPADDR_START=192.168.0.3 IPADDR_END=192.168.0.10 CLONENUM_START=1 /B - Original Message - From: "Yanick Quirion" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 19, 2003 07:39 Subject: Multiple Network Alias > Hi all, > > > I want to configure mutiple network aliases. With Redhat < 8.0 the next > config works fine: > > [triton]:/etc/sysconfig/network-scripts# cat ifcfg-eth0:1 > IPADDR="132.210.158.203-235" > NETMASK="255.255.255.0" > [triton]:/etc/sysconfig/network-scripts# cat ifcfg-eth0:0 > IPADDR="132.210.158.200-201" > NETMASK="255.255.255.0" > > But with RH 8.0 it doesn't work anymore. Why? There a way to specify 30 > network aliases for one device without create a file for each one? > > Thanks > > -Yanick > > _ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Multiple Network Alias
Hi all, I want to configure mutiple network aliases. With Redhat < 8.0 the next config works fine: [triton]:/etc/sysconfig/network-scripts# cat ifcfg-eth0:1 IPADDR="132.210.158.203-235" NETMASK="255.255.255.0" [triton]:/etc/sysconfig/network-scripts# cat ifcfg-eth0:0 IPADDR="132.210.158.200-201" NETMASK="255.255.255.0" But with RH 8.0 it doesn't work anymore. Why? There a way to specify 30 network aliases for one device without create a file for each one? Thanks -Yanick _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: IP alias/forward
On Tuesday 25 Feb 2003 10:46 am, Nick Lindsell wrote: > At 10:32 25/02/2003 +, you wrote: > >Hi folks, > > > >I have to route traffic to another network for an IP address that is > > within one of my subnets. > > > >I've created an interface eth0:0 with the address 10.1.0.34 and then tried > > to redirect the packets to the router using the following rule but it > > didn't work: > > > >eth0:0 10.1.0.34 > >eth1 192.168.1.1 > >Cisco router 192.168.1.2 > > > >iptables -A PREROUTING -d 10.1.0.34 -j DNAT --to-destination 192.168.1.2 > > I think you need to look at your routing tables rather than the firewall. > > route add default gw $cisco > route add -net $network gw $gateway > > "man route" > > I'm not very clear on your network topography from the info you gave. > Or I've overdone the coffee again. > > ??? > [EMAIL PROTECTED] Hi Nick, Thanks for that Nick. I was making the problem much worse that it needed to be. My interpretation of the IP stack and routing was that the souce ip/subnet and the destination ip/subnet were compared and the routing tables only used if they didn't match - hence my attempts to alias and then forward. However, as both Linux and Win9x boxes still use the route tables if the subnets match, a simple route rule did the trick. Gary -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: IP alias/forward
At 10:32 25/02/2003 +, you wrote: Hi folks, I have to route traffic to another network for an IP address that is within one of my subnets. I've created an interface eth0:0 with the address 10.1.0.34 and then tried to redirect the packets to the router using the following rule but it didn't work: eth0:0 10.1.0.34 eth1 192.168.1.1 Cisco router 192.168.1.2 iptables -A PREROUTING -d 10.1.0.34 -j DNAT --to-destination 192.168.1.2 I think you need to look at your routing tables rather than the firewall. route add default gw $cisco route add -net $network gw $gateway "man route" I'm not very clear on your network topography from the info you gave. Or I've overdone the coffee again. ??? [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
IP alias/forward
Hi folks, I have to route traffic to another network for an IP address that is within one of my subnets. I've created an interface eth0:0 with the address 10.1.0.34 and then tried to redirect the packets to the router using the following rule but it didn't work: eth0:0 10.1.0.34 eth1 192.168.1.1 Cisco router 192.168.1.2 iptables -A PREROUTING -d 10.1.0.34 -j DNAT --to-destination 192.168.1.2 Unfortunately, this simply redirect the HTTP requests for that addr to the cisco's http server because this rule simply changed the destination IP address to the cisco, then forwarded it. What I need to know, is what rule do I need to add to simply forward the IP packets without actually mangling them. anyone got any ideas? -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: alias
I thank everyone for their help. It sounds like the UID & GID method is the most comprehensive and gives the exact result that I was looking for. Thanks all.. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tibbetts, Ric Sent: Wednesday, February 05, 2003 8:13 AM To: [EMAIL PROTECTED] Subject: Re: alias Go the easy route. Just create a second user with the same UID & GID as Fred, and using Freds home directory. The /etc/passwd would look something like: foo:x:500:500:Foo User:/home/foo:/bin/bash bar:x:500:500:Fred User:/home/foo:/bin/bash Then set the password to be the same as foo Then when bar logs in, he is "really" foo, and uses foo's environment, and home dirs. NOTE: useradd will probably complain about doing this, as will nearly all user creation tools. You'll need to add the password entries by hand, then run the passwd command to sync the shadow passwords. AND: YES, this can be done for a root account. We used to use what we called a "root2" account for customers that needed root. We'd create a shadow account like the one above. Then the passwords can be different, and we could pull access if they acted up. A Caviat: If user "bar", decides to change his password, he MUST type it as: #> passwd bar If he just enters #> passwd He'll change the password for foo. Since they have the same UID, passwd will change the first one it comes accross in /etc/passwd, so he needs to be specific. Easy. cheers! Ric Larry Brown wrote: > Is it possible to create an alias for a user for login etc. Example would > be a user named fred in the Linux system. I want to create an alias named > coo for Fred. So fred could log in as coo with the password Fred would > normally use and log in. He would look like the user coo but would have all > of the access rights and privileges of Fred. Then as a follow-up, if it is > possible, is it possible to do this for root? > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > > > > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: alias
Go the easy route. Just create a second user with the same UID & GID as Fred, and using Freds home directory. The /etc/passwd would look something like: foo:x:500:500:Foo User:/home/foo:/bin/bash bar:x:500:500:Fred User:/home/foo:/bin/bash Then set the password to be the same as foo Then when bar logs in, he is "really" foo, and uses foo's environment, and home dirs. NOTE: useradd will probably complain about doing this, as will nearly all user creation tools. You'll need to add the password entries by hand, then run the passwd command to sync the shadow passwords. AND: YES, this can be done for a root account. We used to use what we called a "root2" account for customers that needed root. We'd create a shadow account like the one above. Then the passwords can be different, and we could pull access if they acted up. A Caviat: If user "bar", decides to change his password, he MUST type it as: #> passwd bar If he just enters #> passwd He'll change the password for foo. Since they have the same UID, passwd will change the first one it comes accross in /etc/passwd, so he needs to be specific. Easy. cheers! Ric Larry Brown wrote: Is it possible to create an alias for a user for login etc. Example would be a user named fred in the Linux system. I want to create an alias named coo for Fred. So fred could log in as coo with the password Fred would normally use and log in. He would look like the user coo but would have all of the access rights and privileges of Fred. Then as a follow-up, if it is possible, is it possible to do this for root? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
RE: alias
Ahhh.. Always important to include details. Many ways to handle this, first of all, you can override unix permissions with a samba share, and only set the valid users list to any arbitrary samba user. You can also use the username map. You can also add another user with a UID and GID of '0', and that will work as well. samba example: [etc] browseable = no writeable = yes delete readonly = yes path = /etc only user = yes force group = root force user = root create mode = 644 user = jms note: this will force user & group permission on changed files to be root. That is not necessarily desirable. However, for simple cases, this would be fine and more detailed administration should happen via Putty, or SSH or whatever. js On Mon, 2003-02-03 at 20:11, Larry Brown wrote: > What prompted this line of questioning was the idea that in a closed and > safe environment one could use this method to set up an alias for root as > say...administrator. Then one 9x machine could log on as administrator and > access all of the win2k/nt/Linux boxes through samba with full authority to > make any changes. Even if there is a way to make an alias, I don't know if > it would then work via samba as a real user. This was just an idea I wanted > to explore. The uid and gid idea expressed earlier could apply here, I've > never tried it. > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > -- > VB programmers ask why no one takes them seriously, > it's somewhat akin to a McDonalds manager asking employees > why they don't take their 'career' seriously. signature.asc Description: This is a digitally signed message part
RE: alias
On Mon, 2003-02-03 at 22:11, Larry Brown wrote: > What prompted this line of questioning was the idea that in a closed and > safe environment one could use this method to set up an alias for root as > say...administrator. Then one 9x machine could log on as administrator and > access all of the win2k/nt/Linux boxes through samba with full authority to > make any changes. Even if there is a way to make an alias, I don't know if > it would then work via samba as a real user. This was just an idea I wanted > to explore. The uid and gid idea expressed earlier could apply here, I've > never tried it. > Hmm. I like that idea. I am working on a project where we are integrating the first samba server into a small NT network. As it is my first experience with a windows NT domain environment and the sysadmin (my brother) is not very linux savvy yet we were discussing today the best way for him to view the logs from windows, as he can for the three NT servers without having to log onto the box and going to the other tool. One of the things we discussed but have not tested is sharing /var/log and only granting access to the admin group. At least he can explore the dir and click on the logs to read them. Let me know what you come up with. Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
RE: alias
What prompted this line of questioning was the idea that in a closed and safe environment one could use this method to set up an alias for root as say...administrator. Then one 9x machine could log on as administrator and access all of the win2k/nt/Linux boxes through samba with full authority to make any changes. Even if there is a way to make an alias, I don't know if it would then work via samba as a real user. This was just an idea I wanted to explore. The uid and gid idea expressed earlier could apply here, I've never tried it. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bret Hughes Sent: Monday, February 03, 2003 10:35 PM To: [EMAIL PROTECTED] Subject: Re: alias On Mon, 2003-02-03 at 19:04, Ze Ji Li wrote: > How about just give him the same uid and gid? will that work? > I fred just need to rights to do anything as coo take a look at sudo this is exactly what it was designed for. Extremely configurable with fine grained control or open it up. What ever you want. I use it all the time for quick edits of system files eg sudo vi /etc/hosts opens up vi with root privs Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: alias
On Mon, 2003-02-03 at 19:04, Ze Ji Li wrote: > How about just give him the same uid and gid? will that work? > I fred just need to rights to do anything as coo take a look at sudo this is exactly what it was designed for. Extremely configurable with fine grained control or open it up. What ever you want. I use it all the time for quick edits of system files eg sudo vi /etc/hosts opens up vi with root privs Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: alias
How about just give him the same uid and gid? will that work? Ze - Original Message - From: "Larry Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 2:20 PM Subject: RE: alias > Problem with just having him in the same group is that group and owner > privileges are rarely identical so unless steps where always made to make > them identical this would not have the same result as an alias. So I take > it that there is no such animal as a user alias (other than for mail > purposes)? > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Robert Canary > Sent: Monday, February 03, 2003 6:57 PM > To: [EMAIL PROTECTED] > Subject: Re: alias > > You would create a second user named coo with the same password as fred, > and assign coo to the fred group. > > Larry Brown wrote: > > > > Is it possible to create an alias for a user for login etc. Example would > > be a user named fred in the Linux system. I want to create an alias named > > coo for Fred. So fred could log in as coo with the password Fred would > > normally use and log in. He would look like the user coo but would have > all > > of the access rights and privileges of Fred. Then as a follow-up, if it > is > > possible, is it possible to do this for root? > > > > Larry S. Brown > > Dimension Networks, Inc. > > (727) 723-8388 > > > > -- > > redhat-list mailing list > > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list > -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
RE: alias
Problem with just having him in the same group is that group and owner privileges are rarely identical so unless steps where always made to make them identical this would not have the same result as an alias. So I take it that there is no such animal as a user alias (other than for mail purposes)? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Canary Sent: Monday, February 03, 2003 6:57 PM To: [EMAIL PROTECTED] Subject: Re: alias You would create a second user named coo with the same password as fred, and assign coo to the fred group. Larry Brown wrote: > > Is it possible to create an alias for a user for login etc. Example would > be a user named fred in the Linux system. I want to create an alias named > coo for Fred. So fred could log in as coo with the password Fred would > normally use and log in. He would look like the user coo but would have all > of the access rights and privileges of Fred. Then as a follow-up, if it is > possible, is it possible to do this for root? > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: alias
You would create a second user named coo with the same password as fred, and assign coo to the fred group. Larry Brown wrote: > > Is it possible to create an alias for a user for login etc. Example would > be a user named fred in the Linux system. I want to create an alias named > coo for Fred. So fred could log in as coo with the password Fred would > normally use and log in. He would look like the user coo but would have all > of the access rights and privileges of Fred. Then as a follow-up, if it is > possible, is it possible to do this for root? > > Larry S. Brown > Dimension Networks, Inc. > (727) 723-8388 > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
alias
Is it possible to create an alias for a user for login etc. Example would be a user named fred in the Linux system. I want to create an alias named coo for Fred. So fred could log in as coo with the password Fred would normally use and log in. He would look like the user coo but would have all of the access rights and privileges of Fred. Then as a follow-up, if it is possible, is it possible to do this for root? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
IP-alias file
I was trying to do aliasing of my eth0: but all the time I get an error the intrerfce not recorgnized I checked for the file /proc/net/ip_alias in my kernel i found that it is not there. The instraction I have from the manual I used told me that I have to recompile my kernel to include that file. Can any one help me what should I do to my redhat 8.0 cds to get the file compiled. Or where else can I get the file. Thanks in advance. === EASY and FREE access to your email anywhere: http://Mailreader.com/ === -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: RH 8.0 color ls alias problems
On Mon, 2003-01-06 at 16:06, Adam H. Pendleton wrote: > Perhaps you can shed some light on what the best setting is for the > "TERM" variable? A good default value of TERM for basic terminal emulators is vt100. -- Michael Wardle <[EMAIL PROTECTED]> Adacel Technologies -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: RH 8.0 color ls alias problems
On Monday, January 6, 2003, at 12:03 AM, Michael Wardle wrote: Hi Adam Your output suggests that your terminal type is set to ANSI (TERM=ansi), yet ansi is not colorizable according to /etc/DIR_COLORS. Okay, that makes sense. My terminal is indeed set to "ansi", mostly out of ignorance, not because I really want it set that way. I administer my servers from my PowerBook, which is great except for what I would consider a somewhat lackluster terminal program, and by lackluster I mean that it is a lot less flexible than, say, PuTTY. Perhaps you can shed some light on what the best setting is for the "TERM" variable? Thanks for the help! ahp PGP.sig Description: PGP signature
Re: RH 8.0 color ls alias problems
Hi Adam Your output suggests that your terminal type is set to ANSI (TERM=ansi), yet ansi is not colorizable according to /etc/DIR_COLORS. Try changing your terminal type to a supported colorizable one such as linux or xterm, or adding ansi to the list in /etc/DIR_COLORS. Yours -- Michael Wardle <[EMAIL PROTECTED]> Adacel Technologies -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
Re: RH 8.0 color ls alias problems
On Sunday, January 5, 2003, at 11:19 PM, Michael Wardle wrote: Hi Adam When you perform an "su", be sure to add the "-l" or "-" option. This will cause "su" to log you in as root, which causes your shell (bash) to read /etc/bashrc, which in turn sources the script files in /etc/profile.d. If you do not add the "-l" option, "su" simply changes your user to root without doing most of the normal initialization. I always do; my mistake for not explicitly specifying this. :) Doing this will run colorls.sh in a subshell, so all changes to the shell's environment will be lost when the script exits. If you manually want to run colorls.sh, try sourcing it like so: # . /etc/profile.d/colorls.sh or # source /etc/profile.d/colorls.sh I realize this problem, but in order to get the debug output I had to run it under a -x shell. BTW, a "source" or a "." of the colorls.sh file also does not gather in the "ll" or "l." aliases. I should have pointed out that the aliases for "cp", "mv", "rm", and "vi" ARE imported. ahp PGP.sig Description: PGP signature
Re: RH 8.0 color ls alias problems
Hi Adam On Mon, 2003-01-06 at 14:40, Adam H. Pendleton wrote: > when I log is as my normal user, color ls is enabled, and I have all the > regular aliases, such as "ll" and "l.". When I perform a "su" to root, > however, the aliases go away, as does the color ls. When you perform an "su", be sure to add the "-l" or "-" option. This will cause "su" to log you in as root, which causes your shell (bash) to read /etc/bashrc, which in turn sources the script files in /etc/profile.d. If you do not add the "-l" option, "su" simply changes your user to root without doing most of the normal initialization. Have a look near the end of /etc/bashrc for more information on how the scripts in /etc/profile.d work. > Running "bash -x /etc/profile.d/colorls.sh" as root... Doing this will run colorls.sh in a subshell, so all changes to the shell's environment will be lost when the script exits. If you manually want to run colorls.sh, try sourcing it like so: # . /etc/profile.d/colorls.sh or # source /etc/profile.d/colorls.sh (# indicates a command typed in a root shell) search for "source" in the bash(1) manual page for more information. Hope this helps. -- Michael Wardle <[EMAIL PROTECTED]> Adacel Technologies -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
RH 8.0 color ls alias problems
I did a quick search of the list archives, but I couldn't find anything about this, which is a little surprising, making me suspect my search, not the obscurity of the problem. The problem I am having has to do with the file /etc/profile.d/colorls.sh, and its import by and but a regular user. By that I mean, when I log is as my normal user, color ls is enabled, and I have all the regular aliases, such as "ll" and "l.". When I perform a "su" to root, however, the aliases go away, as does the color ls. Running "bash -x /etc/profile.d/colorls.sh" as root produces the following: + alias 'rm=rm -i' + alias 'cp=cp -i' + alias 'mv=mv -i' + '[' -f /etc/bashrc ']' + . /etc/bashrc +++ id -gn +++ id -un +++ id -u ++ '[' root = root -a 0 -gt 99 ']' ++ umask 022 ++ '[' '' ']' + COLORS=/etc/DIR_COLORS + '[' -e /etc/DIR_COLORS.ansi ']' + '[' -e /root/.dircolors ']' + '[' -e /root/.dircolors.ansi ']' + '[' -e /root/.dir_colors ']' + '[' -e /root/.dir_colors.ansi ']' + '[' -e /etc/DIR_COLORS ']' ++ dircolors --sh /etc/DIR_COLORS + eval 'LS_COLORS='\'''\'';' export LS_COLORS ++ LS_COLORS= ++ export LS_COLORS + '[' -z '' ']' + return /etc/profile.d/colorls.sh: line 12: return: can only `return' from a function or sourced script + egrep -qi '^COLOR.*none' /etc/DIR_COLORS + alias 'll=ls -l --color=tty' + alias 'l.=ls -d .* --color=tty' + alias 'ls=ls --color=tty' This is all well and good except that none of the aliases at the bottom are actually created. This is a regular RH 8.0 install, nothing fancy. What's the deal? ahp PGP.sig Description: PGP signature
Re: how many alias can have a network adapter?
On Sat, 21 Sep 2002, Chavez Gutierrez, Freddy wrote: > how many alias can have a network adapter? > I mean eth:0, eth:1, eth:X ... what is the limit of X ?? why? My guess is 256, but looking thru the source code would probably tell you definitively if that is so. No idea as to why. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
how many alias can have a network adapter?
Title: how many alias can have a network adapter? how many alias can have a network adapter? I mean eth:0, eth:1, eth:X ... what is the limit of X ?? why? Regards, Freddy Chavez.
ip alias dont work
I've just installed Redhat 7.3 and IP alias dont work In the web I've noticed that the IP Alias is depricated with 2.4.x and is being replaced by a firewall mechanism (source: IP Alias Mini Howto), no other information given. However, when I tried a manual network configuration i.e. /sbin/ifconfig eth1:0 192.168.0.2 /sbin/route add -host 192.168.0.2 dev eth1:0 it still works, so at least its still being compiled into the kernel by redhat. However, the redhat scripts in init.d are no longer supporting the use additional interface configuration files for aliasing like ifcfg-eth1:0 ?? Can someone cast some light onto this please. Hernan --- E-mail libre de virus - Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.377 / Virus Database: 211 - Release Date: 15/07/02 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
How to set up DHCP client (static vs. dynamic address, localhost alias etc.)?
Attached to this message is an entry from our internal issue tracking system which discusses (well, as you can see, it's mostly me discussing with myself ;-)) what the best way of configuring a DHCP client under Red Hat Linux is. I'm submitting it here to ask for other people's opinions on this issue. Does anyone with a similar setup, i.e. network with multiple hosts configured via DHCP, some of which may be disconnected and run stand-alone, or even connected to a different net, possibly without even rebooting, have anything to say? -- Toralf Lund <[EMAIL PROTECTED]> +47 66 85 51 22 Kongsberg Scanners AS +47 66 85 51 00 (switchboard) http://www.kscanners.no/~toralf +47 66 85 51 01 (fax) Title: Full Text Bug Listing Bugzilla version 2.14 Full Text Bug Listing DHCP client issues Bug#: 47 Product: system Version: unspecified Platform: PC OS/Version: Linux Status: REOPENED Severity: normal Priority: P2 Resolution: Assigned To: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Component: Laptop URL: Summary: DHCP client issues Keywords: Description: Need to decide how to configure DHCP client on hosts booting via DHCP, in particluar the ones that are often disconnected from our LAN, and possibly connected to alternative networks, notably laptops. In particular, we need to decide whether to use dynamic or static host names. Disadvantages of dynamic names: * Name may change in the middle of a session, which could be *really* bad. Disadvantages of static names: * IP address lookup will fail when network is not connected. A workaround is to list as alias for "localhost". IP address lookup will then return "loopback" address, and official hostname will be "localhost", which may or may not have side effects. * Host name is not fully qualified. --- Additional Comments From Toralf Lund 2001-09-19 11:36 --- Another drawback of having static names is of course that it may easlily lead to inconstencies between the (local) hostname and the official name from the host database's point of view; if the network card is changed, the DHCP server will assign a different IP address, and host name lookup thus returns a different name. Conversely, IP address lookup using the local name will _not_ return the hosts own address, which is when the fun really starts... --- Additional Comments From Toralf Lund 2001-09-19 11:48 --- Of course, dynamic naming leads to problems only when you want to start/stop/restart the network while the machine is up-and-running. This something we do a lot on laptops. That's also where a change of (PCMCIA) network cards is likely to occur. --- Additional Comments From Toralf Lund 2001-10-02 09:59 --- Moving bug to "Laptop". This is mainly a laptop issue as dynamic names or even static ones with no default address will work just fine on stationary hosts. --- Additional Comments From Toralf Lund 2001-10-02 13:16 --- Note that name as returned by 'hostname' command or 'gethostname()' call isn't qualified in the dynamic case either, at least not when using dhcpcd with our current setup (it may be possible to configure the server and/or client to qualify the name.) As for the static case, we should test what happens if we use a fully private name, i.e. one that isn't known by external hosts. --- Additional Comments From Toralf Lund 2001-12-18 21:40 --- A better solution than the one we've tried so far may be to use a static hostname, and create an entry with /etc/hosts for the name and the current address every time an IP address is received from a DHCP server. This entry should be replaced with a new one when a new address is set, but NOT removed when the network is disconnected. --- Additional Comments From Toralf Lund 2001-12-18 22:46 --- Our dhcpcd change script has now been updated as suggested in the note prior to this. --- Additional Comments From Toralf Lund 2002-06-11 20:44 --- Reopening but as /etc/hosts update doesn't help a lot. It is still not possible for the host to contact itself via its hostname when the network isn't running. Aliasing to localhost may be the only way if we want static name (but it doesn't feel right.)
Re: Sendmail and a BIG alias file
Thanks for the script. - Original Message - From: "Cameron Simpson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 11:28 AM Subject: Re: Sendmail and a BIG alias file > On 10:24 30 Apr 2002, Ashwin Khandare <[EMAIL PROTECTED]> wrote: > | If you dont mind ,can u please send me ur perl scripts . > > Please trim irrelevant quoted material. > > The alias generator is here: > > http://www.zip.com.au/~cs/scripts/updaliases > > Cheers, > -- > Cameron Simpson, DoD#743[EMAIL PROTECTED] http://www.zip.com.au/~cs/ > > As you can see, unraveling even a small part of 'sendmail' can introduce more > complexity than answers. - Brian Costales, _sendmail_ > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 2/28/02 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
On 10:24 30 Apr 2002, Ashwin Khandare <[EMAIL PROTECTED]> wrote: | If you dont mind ,can u please send me ur perl scripts . Please trim irrelevant quoted material. The alias generator is here: http://www.zip.com.au/~cs/scripts/updaliases Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ As you can see, unraveling even a small part of 'sendmail' can introduce more complexity than answers.- Brian Costales, _sendmail_ ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
If you dont mind ,can u please send me ur perl scripts . - Original Message - From: "Cameron Simpson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 4:18 AM Subject: Re: Sendmail and a BIG alias file > On 13:26 29 Apr 2002, Ashwin Khandare <[EMAIL PROTECTED]> wrote: > | I somewhat didnt completely follow ur answer. > | Is that u have all your aliases stored in mysql table which u then populate > | in /etc/aliases maybe by some shell scripts ? > > I keep a strcutred representation of our users and groups in a MySQL > database. Those tables store things like mail delivery options, home > directories, group and subgroup memberships etc. I went into this at > some length in another post. > > I have some perl scripts which walk those tables and write a text alias > file, which we then hand to the newalias command as normal. > -- > Cameron Simpson, DoD#743[EMAIL PROTECTED] http://www.zip.com.au/~cs/ > > Yes Officer, yes Officer, I will Officer. Thank you. > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 2/28/02 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
The long aliases were truncated but I guess the solution offered by you is good and I would like to try out the same. - Original Message - From: "Cameron Simpson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 4:16 AM Subject: Re: Sendmail and a BIG alias file > On 13:29 29 Apr 2002, Ashwin Khandare <[EMAIL PROTECTED]> wrote: > | We entered lot of aliases in /etc/aliases then we ran newaliases and then it > | truncated the file to whatever aliases it could handle > | but not all that was entered. > > It should have worked fine. The only real catch is that an individual > alias line can't be bigger than a DBM record (1024 bytes? something like > that). So my code takes the longer aliases and splits them up like this: > > foo: user1, user2,.,userN,foo-sub0 > foo-sub0: userN+1,...,userZ,foo-sub1 > foo-sub1: userZ+1,... > > and so forth. Sendmail happily stitches all that back together so that > mailing to "foo" goes to everyone as you intended. > > Did you lose aliases outright, or were individual long aliases truncated? > -- > Cameron Simpson, DoD#743[EMAIL PROTECTED] http://www.zip.com.au/~cs/ > > In this [Christmas] season I can find warmth and good will to all men - > except for the inventor of the telephone. - Mark Twain > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 2/28/02 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
On 13:26 29 Apr 2002, Ashwin Khandare <[EMAIL PROTECTED]> wrote: | I somewhat didnt completely follow ur answer. | Is that u have all your aliases stored in mysql table which u then populate | in /etc/aliases maybe by some shell scripts ? I keep a strcutred representation of our users and groups in a MySQL database. Those tables store things like mail delivery options, home directories, group and subgroup memberships etc. I went into this at some length in another post. I have some perl scripts which walk those tables and write a text alias file, which we then hand to the newalias command as normal. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Yes Officer, yes Officer, I will Officer. Thank you. ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
On 13:29 29 Apr 2002, Ashwin Khandare <[EMAIL PROTECTED]> wrote: | We entered lot of aliases in /etc/aliases then we ran newaliases and then it | truncated the file to whatever aliases it could handle | but not all that was entered. It should have worked fine. The only real catch is that an individual alias line can't be bigger than a DBM record (1024 bytes? something like that). So my code takes the longer aliases and splits them up like this: foo: user1, user2,.,userN,foo-sub0 foo-sub0: userN+1,...,userZ,foo-sub1 foo-sub1: userZ+1,... and so forth. Sendmail happily stitches all that back together so that mailing to "foo" goes to everyone as you intended. Did you lose aliases outright, or were individual long aliases truncated? -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ In this [Christmas] season I can find warmth and good will to all men - except for the inventor of the telephone. - Mark Twain ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Which is first alias or virtusertable
Hello Everyone, Under sendmail which one gets done first, alias or virtusertable ? Thanks, Pieter ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
We entered lot of aliases in /etc/aliases then we ran newaliases and then it truncated the file to whatever aliases it could handle but not all that was entered. - Original Message - From: "Eric Wood" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 7:14 PM Subject: Re: Sendmail and a BIG alias file > Ashwin, > Are you saying that the "newaliases" command doesn't work after editing the > /etc/aliases file? Or that work and sendmail ignores some alias lines? Can > you be more specific on your problem? > > -eric > - Original Message - > From: "Ashwin Khandare" <[EMAIL PROTECTED]> > > Can u please elaborate on the solution u have offered. > > I myself also has been facing the same problem. > > > > | How well does sendmail handle a *big* alias file (around 2 > entries) > > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 2/28/02 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
I somewhat didnt completely follow ur answer. Is that u have all your aliases stored in mysql table which u then populate in /etc/aliases maybe by some shell scripts ? - Original Message - From: "Cameron Simpson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 27, 2002 5:01 AM Subject: Re: Sendmail and a BIG alias file > On 09:07 26 Apr 2002, Leonardo Rodrigues Magalh?es <[EMAIL PROTECTED]> wrote: > | > On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: > | > | I know this might be kinda off topic, but since everyone here is in the > | > | field, I thought I would pop the question here. > | > | How well does sendmail handle a *big* alias file (around 2 entries) > | ? Is > | > | there another way to handle such big alias requirements ? > | > Keeps it in a dbm file. We have over 4 aliases at work; works just > | fine. > | I'd strongly suggest that you try postfix+MySQL, so you can have all > | your aliases ( and accounts if you want as well ) as MySQL tables. > > Bleah. No, instead I keep a structured representation of our staff > groupings and mailing lists and permission groups in MySQL tables > and compute the entire alias table from that. Much cleaner and more > effective. You can all sorts of handy utility aliases in this fashion > (eg the script inverts the home directories and makes aliases for "users > whose homedirs are on server X", etc). > -- > Cameron Simpson, DoD#743[EMAIL PROTECTED] http://www.zip.com.au/~cs/ > > The mountains will always be there, the trick is to make sure you are too. > - Don Whilans > This predates Whillans as it is used in the rec.back DW FAQ. > There it is attributed to Hervey Voge. It probably predates Hervey. > - eugene miya <[EMAIL PROTECTED]> > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 2/28/02 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: some detail on: Sendmail and a BIG alias file
Hello Cameron, Thanks for all of that info ! It sounds like you guys are doing what my company wants to do. Here is our problem : We have two internet links (woohoo) connecting the company to the internet. Now they want mail that is meant for office A to come to that link and mail that is meant for office B to come via that link. They don't want to use MX balance as this means internal traffic (mail for office B lands in office A and has to be send internally).Office C,D,E,F hangs off office A and Office G,H,I,J hang off office B Now my suggestion is as follow : Put a Linux box on the outside at the SP. This box will get an exported users list (from Exchange). Using the "home server" (Office A,B or D) it will build the following aliases (We are domain.com - My e-mail address, in Office D, is [EMAIL PROTECTED] A friend in Office I is [EMAIL PROTECTED]) officea.domain.com or officeb.domain.com based on your home server (office E -> Office A etc.) So : [EMAIL PROTECTED] -> [EMAIL PROTECTED] [EMAIL PROTECTED] -> [EMAIL PROTECTED] This mail server would then forward the message to the reletive office. If the internet link at office A goes down, mail can still be send via office B and it will get there (Exchange and internal routing) Any suggestion/comments ? Thanks, Pieter De Wit Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ "It's state-of-the-art" "But it doesn't work!" "That is the state-of-the-art". ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
some detail on: Sendmail and a BIG alias file
On 16:10 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: | On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: | | How well does sendmail handle a *big* alias file (around 2 entries) ? | | Is there another way to handle such big alias requirements ? | Keeps it in a dbm file. We have over 4 aliases at work; works just fine. | If I may ask, what hardware do you run to support this ? Nothing very powerful. The NIS servers are Sun Ultrasparcs. They aren't very stressed; usually nearly idle. Our mail hub (which has the identical mail file locally as a plain dbm file to make it not dependent on the NIS servers) is a moderately specced Intel BSD box. The alias file is actually computed from a set of MySQL tables (and some historical flat text files) at update time. We keep out core user records and group records (as hierachical, date-ranged structures) in these tables and unpack them for the aliases table, and the UNIX group table, in this way having a UNIX group to hand for every need, with names exactly matching the mail aliases (to reduce confusion). Example: There's a group called "technic" for the sysadmins (of which I am one) looking like this (some stuff elided because our management have been getting more ana^H^H^Hcareful recently): [~]zapff*> dbgroup technic Group names: technic sysadmin Account code: Title (Long Name): IT Services Flags: GROUPUSED Internal PROJ_ID: 84 Membership: {leader => [***], manager => [*], pc => [/technic-staff-pc], staff => {misc => [oliverw], pc => [robs, desmolej, clg, jerome], unix => [cameron, raphael, kirsty]}} >From this come the following mail aliases and UNIX groups: technic technic-leader technic-manager technic-pc technic-staff technic-staff-misc technic-staff-pc technic-staff-unix with the obvious memberships. (For historical reasons this group is also known as "sysadmin" as shown in the top line of the dbgroup output, and there are matching aliases "sysadmin-pc" etc in consequence.) Now, we also support delivery of mail to personal workstations for the UNIX users because many UNIX mail readers make use of local files and don't speak pop or imap, and for convenience if the central mail host goes down. The Windows and Mac users use the central pop/imap server. So each user has a delivery location too. My own user data look like this: [~]zapff*> dbuser cameron Internal id #56 Login cameron Emp_Status TEMPORARY Ilk SUPPORT SW {ALTNAMES => [], DATES => [{EMP_STATUS => TEMPORARY, END_DATE => 2000-05-26, START_DATE => 1997-01-01}, {EMP_STATUS => TEMPORARY, END_DATE => "", START_DATE => 2000-05-27}], DESK => L6-019, DIALBACKS => [], DIVCODE => 13, EMAIL_HOW => HOST, EMAIL_PGPKEY => "", EMAIL_PUBLISHED => "", EMAIL_WHAT => zapff, EXCLUDEGROUPS => [], EXFWD => [EMAIL PROTECTED], EXT => 2983, FAX => [], FIN_STATUS => S, FLAGS => [], FULLNAME => "Cameron Simpson", HOME => [], HOMEDIR => /home/zapff/cameron, LOGIN => cameron, MANAGER => ***, MOBILE => [], OTHER_EMAIL => "", PREFGROUPS => [geeks, web-int, technic, maillist], TITLE => "UNIX Systems Admin, Standard"} For example: [~]zapff*> expalias technic-staff-unix [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] For purposes of this discussion, the EMAIL_HOW and EMAIL_WHAT fields say that my email is delivered to a host (as opposed to, say, being forwarded to an external address or suchlike) and that the host is "zapff", my workstation. You can see we keep desks and phone numbers. We track a bunch of info from that. For example we keep our wiring database's per-host records USER fields computed by backtracking user desks to host locations. Conversely, user phone extensions are computed by tracking from the phone wiring (to a desk) and correlating with the user's desk. So, if we make a change to these tables which affects the alias table we recompute the mail alias table with a perl script. The _entire_ alias table is computed from
Re: Sendmail and a BIG alias file
On 09:07 26 Apr 2002, Leonardo Rodrigues Magalh?es <[EMAIL PROTECTED]> wrote: | > On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: | > | I know this might be kinda off topic, but since everyone here is in the | > | field, I thought I would pop the question here. | > | How well does sendmail handle a *big* alias file (around 2 entries) | ? Is | > | there another way to handle such big alias requirements ? | > Keeps it in a dbm file. We have over 4 aliases at work; works just | fine. | I'd strongly suggest that you try postfix+MySQL, so you can have all | your aliases ( and accounts if you want as well ) as MySQL tables. Bleah. No, instead I keep a structured representation of our staff groupings and mailing lists and permission groups in MySQL tables and compute the entire alias table from that. Much cleaner and more effective. You can all sorts of handy utility aliases in this fashion (eg the script inverts the home directories and makes aliases for "users whose homedirs are on server X", etc). -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ The mountains will always be there, the trick is to make sure you are too. - Don Whilans This predates Whillans as it is used in the rec.back DW FAQ. There it is attributed to Hervey Voge. It probably predates Hervey. - eugene miya <[EMAIL PROTECTED]> ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Sendmail and a BIG alias file
Hello Cameron, If I may ask, what hardware do you run to support this ? Cheers, Pieter -Original Message- From: Cameron Simpson [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 13:56 To: [EMAIL PROTECTED] Subject: Re: Sendmail and a BIG alias file On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: | I know this might be kinda off topic, but since everyone here is in the | field, I thought I would pop the question here. | How well does sendmail handle a *big* alias file (around 2 entries) ? Is | there another way to handle such big alias requirements ? Keeps it in a dbm file. We have over 4 aliases at work; works just fine. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ network security: 1. Kill all your users. 2. Remove all accounts. 3. Detach network and dialups. 4. Turn off machine. - David A. Guidry <[EMAIL PROTECTED]> ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
RE: Sendmail and a BIG alias file
hehehe love your signature ! -Original Message- From: Cameron Simpson [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 13:56 To: [EMAIL PROTECTED] Subject: Re: Sendmail and a BIG alias file On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: | I know this might be kinda off topic, but since everyone here is in the | field, I thought I would pop the question here. | How well does sendmail handle a *big* alias file (around 2 entries) ? Is | there another way to handle such big alias requirements ? Keeps it in a dbm file. We have over 4 aliases at work; works just fine. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ network security: 1. Kill all your users. 2. Remove all accounts. 3. Detach network and dialups. 4. Turn off machine. - David A. Guidry <[EMAIL PROTECTED]> ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
Ashwin, Are you saying that the "newaliases" command doesn't work after editing the /etc/aliases file? Or that work and sendmail ignores some alias lines? Can you be more specific on your problem? -eric - Original Message - From: "Ashwin Khandare" <[EMAIL PROTECTED]> > Can u please elaborate on the solution u have offered. > I myself also has been facing the same problem. > > | How well does sendmail handle a *big* alias file (around 2 entries) ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
Can u please elaborate on the solution u have offered. I myself also has been facing the same problem. - Original Message - From: "Cameron Simpson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 5:26 PM Subject: Re: Sendmail and a BIG alias file > On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: > | I know this might be kinda off topic, but since everyone here is in the > | field, I thought I would pop the question here. > | How well does sendmail handle a *big* alias file (around 2 entries) ? Is > | there another way to handle such big alias requirements ? > > Keeps it in a dbm file. We have over 4 aliases at work; works just fine. > -- > Cameron Simpson, DoD#743[EMAIL PROTECTED] http://www.zip.com.au/~cs/ > > network security: 1. Kill all your users. > 2. Remove all accounts. > 3. Detach network and dialups. > 4. Turn off machine. > - David A. Guidry <[EMAIL PROTECTED]> > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.330 / Virus Database: 184 - Release Date: 2/28/02 ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
I'd strongly suggest that you try postfix+MySQL, so you can have all your aliases ( and accounts if you want as well ) as MySQL tables. Sincerily, Leonardo Rodrigues - Original Message - From: "Cameron Simpson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 8:56 AM Subject: Re: Sendmail and a BIG alias file > On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: > | I know this might be kinda off topic, but since everyone here is in the > | field, I thought I would pop the question here. > | How well does sendmail handle a *big* alias file (around 2 entries) ? Is > | there another way to handle such big alias requirements ? > > Keeps it in a dbm file. We have over 4 aliases at work; works just fine. > -- > Cameron Simpson, DoD#743[EMAIL PROTECTED] http://www.zip.com.au/~cs/ > > network security: 1. Kill all your users. > 2. Remove all accounts. > 3. Detach network and dialups. > 4. Turn off machine. > - David A. Guidry <[EMAIL PROTECTED]> > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: Sendmail and a BIG alias file
On 08:30 26 Apr 2002, Pieter De Wit <[EMAIL PROTECTED]> wrote: | I know this might be kinda off topic, but since everyone here is in the | field, I thought I would pop the question here. | How well does sendmail handle a *big* alias file (around 2 entries) ? Is | there another way to handle such big alias requirements ? Keeps it in a dbm file. We have over 4 aliases at work; works just fine. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ network security: 1. Kill all your users. 2. Remove all accounts. 3. Detach network and dialups. 4. Turn off machine. - David A. Guidry <[EMAIL PROTECTED]> ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Sendmail and a BIG alias file
Hello Everyone, I know this might be kinda off topic, but since everyone here is in the field, I thought I would pop the question here. How well does sendmail handle a *big* alias file (around 2 entries) ? Is there another way to handle such big alias requirements ? Thanks, Pieter ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Network Administration Tool - alias interface eth0:0
RedHat 7.2 replaced netcfg with neat. Netcfg allowed for the easy creation of alias network interfaces. Despite numerous attempts to create an eth0:0, similar to what was created in netcfg, I have yet to manipulate the neat interface to do the same. I cannot find any documentation for this tool/feature except section 6.2.1 of the rhl-cg-72.pdf which says you can do it, but no explanation. Can someone point to a simple explanation, or more extensive documenation for this tool? ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
bash alias problem
Greetings. I am running RH 7.0. In my /etc/bashrc file I have alias ls='ls -Al --color' This gives me a long directory listing in color. It works as long as I am not in Gnome. If I start Gnome and open a terminal, an ls gives me the usual short directory listing. I have tried adding the alias to the user profile as well but this has no effect. Thanks for your help. Mitchell K. Smith Service and Information Systems Manager ePlus Technology of PA 130 Futura Drive Pottstown, PA 19464 610-495-7800 Ext. 264 610-495-1264 direct 610-495-2800 fax [EMAIL PROTECTED] ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
Of course. It is Christmas time david On Thu, 21 Dec 2000, Michael Burger wrote: > Am I allowed to gloat, now? > > Happy holidays, everyone. > > On Thu, 21 Dec 2000 18:27:43 -0500 (EST), David Brett wrote: > > >show off :) > > > >I tried using search engines and over looked the obvious > >thanks > > > > > >david > > > >On Thu, 21 Dec 2000, Mike Burger wrote: > > > >> Point your browser at http://rpmfind.net, and do a search for sudo. It > >> came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you > >> want. > >> > >> On Thu, 21 Dec 2000, David Brett wrote: > >> > >> > If you find sudo let me know I did a search for it without success > >> > > >> > > >> > david > >> > > >> > On Thu, 21 Dec 2000, Mike Burger wrote: > >> > > >> > > Check your system for "sudo". > >> > > > >> > > On Sat, 23 Dec 2000, christopher j bottaro wrote: > >> > > > >> > > > i'm logged in as a normal user most of the time on my linux machine, but i > >> > > > download and install a lot of stuff too. this requires me to switch back >and > >> > > > forth between superuser and my normal login. my friend told me that at his > >> > > > work, they have a das (do a superuser) alias on their play linux boxes. he > >> > > > says it works like this... > >> > > > das mv blah /usr/local > >> > > > 1) changes to su > >> > > > 2) executes "mv blah /usr/local" as su > >> > > > 3) exits from su > >> > > > > >> > > > can some show me how to write such an alias (or even shell script?)? thanks > >> > > > a bunch. > >> > > > > >> > > > > >> > > > > >> > > > ___ > >> > > > Redhat-list mailing list > >> > > > [EMAIL PROTECTED] > >> > > > https://listman.redhat.com/mailman/listinfo/redhat-list > >> > > > > >> > > > >> > > > >> > > > >> > > ___ > >> > > Redhat-list mailing list > >> > > [EMAIL PROTECTED] > >> > > https://listman.redhat.com/mailman/listinfo/redhat-list > >> > > > >> > > >> > > >> > > >> > ___ > >> > Redhat-list mailing list > >> > [EMAIL PROTECTED] > >> > https://listman.redhat.com/mailman/listinfo/redhat-list > >> > > >> > >> > >> > >> ___ > >> Redhat-list mailing list > >> [EMAIL PROTECTED] > >> https://listman.redhat.com/mailman/listinfo/redhat-list > >> > > > > > > > >___ > >Redhat-list mailing list > >[EMAIL PROTECTED] > >https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
It should have came with your CD, but can be found just about anywhere. Try rpmfind.net, then freshmeat.net charles On Sun, 24 Dec 2000, christopher j bottaro wrote: > hey all, > thanks for all the answers...=) > i don't have that command (rpmfind)...=( ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
hey all, thanks for all the answers...=) i don't have that command (rpmfind)...=( On Thursday 21 December 2000 22:28, you wrote: > On Thu, Dec 21, 2000 at 05:10:00PM -0500, Mike Burger wrote: > > Point your browser at http://rpmfind.net, and do a search for sudo. It > > came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you > > want. > > Even easier: > > [hal@feenix hal]$ rpmfind sudo > Installing sudo will require 291 KBytes > ### To Transfer: > ftp://ftp.redhat.com/pub/redhat/redhat-7.0/i386/en/RedHat/RPMS/sudo-1.6.3-4 >.i386.rpm Do you want to download these files to /tmp/rpms [Y/n/a/i] ? ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
On Sat, Dec 23, 2000 at 03:08:10AM -0600, christopher j bottaro wrote: > i'm logged in as a normal user most of the time on my linux machine, but i > download and install a lot of stuff too. this requires me to switch back and > forth between superuser and my normal login. my friend told me that at his > work, they have a das (do a superuser) alias on their play linux boxes. he > says it works like this... > das mv blah /usr/local > 1) changes to su > 2) executes "mv blah /usr/local" as su > 3) exits from su Look into sudo. It's either on the install disks or on the powertools disks, but it does exactly what you want. > can some show me how to write such an alias (or even shell script?)? thanks > a bunch. It's not an alias. It's a program which effectively does a controlled su based on your userid and password to perform certain commands. Mike -- Michael H. Warfield| (770) 985-6132 | [EMAIL PROTECTED] (The Mad Wizard) | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0xDF1DD471| possible worlds. A pessimist is sure of it! ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
christopher j bottaro wrote: > i'm logged in as a normal user most of the time on my linux machine, but i > download and install a lot of stuff too. this requires me to switch back and > forth between superuser and my normal login. my friend told me that at his > work, they have a das (do a superuser) alias on their play linux boxes. he > says it works like this... > das mv blah /usr/local > 1) changes to su > 2) executes "mv blah /usr/local" as su > 3) exits from su > > can some show me how to write such an alias (or even shell script?)? thanks > a bunch. install sudo. Should be an rpm around somewhere. Very powerfull and flexible in the config. From I want to be able to do anything to allowing users to only run certain commands. I will if configured to do so prompt you for the users password so you don't even have to know roots password. Of course you will have to su to set it up :) Bret ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
On Thu, Dec 21, 2000 at 06:11:51PM -0500, Mike Burger wrote: > I dunno...I did a pretty standard server install on both my boxes, > as well as my laptop, there's no such file as rpmfind on any of them > (a 6.1 and 2 7.0 boxes). I did a custom upgrade 6.2 -> 7.0, and it is my log saved from the install: [hal@feenix hal]$ grep rpmfind /var/log/upgrade.log Upgrading rpmfind. Not sure what CD it is on. -- Hal B [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] -- ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
I dunno...I did a pretty standard server install on both my boxes, as well as my laptop, there's no such file as rpmfind on any of them (a 6.1 and 2 7.0 boxes). On Thu, 21 Dec 2000, Hal Burgiss wrote: > On Thu, Dec 21, 2000 at 05:42:00PM -0400, Michael Burger wrote: > > Works fine if you have the rpmfind executable on your system. A > > little bit of a catch 22, eh? > > True, but it is included with std RH, so if not installed, now is a > real good time. Very handy little tool IMHSHO. Of course, maybe sudo > is included now too ;) > > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
On Thu, Dec 21, 2000 at 05:42:00PM -0400, Michael Burger wrote: > Works fine if you have the rpmfind executable on your system. A > little bit of a catch 22, eh? True, but it is included with std RH, so if not installed, now is a real good time. Very handy little tool IMHSHO. Of course, maybe sudo is included now too ;) -- Hal B [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] -- ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
Am I allowed to gloat, now? Happy holidays, everyone. On Thu, 21 Dec 2000 18:27:43 -0500 (EST), David Brett wrote: >show off :) > >I tried using search engines and over looked the obvious >thanks > > >david > >On Thu, 21 Dec 2000, Mike Burger wrote: > >> Point your browser at http://rpmfind.net, and do a search for sudo. It >> came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you >> want. >> >> On Thu, 21 Dec 2000, David Brett wrote: >> >> > If you find sudo let me know I did a search for it without success >> > >> > >> > david >> > >> > On Thu, 21 Dec 2000, Mike Burger wrote: >> > >> > > Check your system for "sudo". >> > > >> > > On Sat, 23 Dec 2000, christopher j bottaro wrote: >> > > >> > > > i'm logged in as a normal user most of the time on my linux machine, but i >> > > > download and install a lot of stuff too. this requires me to switch back and >> > > > forth between superuser and my normal login. my friend told me that at his >> > > > work, they have a das (do a superuser) alias on their play linux boxes. he >> > > > says it works like this... >> > > > das mv blah /usr/local >> > > > 1) changes to su >> > > > 2) executes "mv blah /usr/local" as su >> > > > 3) exits from su >> > > > >> > > > can some show me how to write such an alias (or even shell script?)? thanks >> > > > a bunch. >> > > > >> > > > >> > > > >> > > > ___ >> > > > Redhat-list mailing list >> > > > [EMAIL PROTECTED] >> > > > https://listman.redhat.com/mailman/listinfo/redhat-list >> > > > >> > > >> > > >> > > >> > > ___ >> > > Redhat-list mailing list >> > > [EMAIL PROTECTED] >> > > https://listman.redhat.com/mailman/listinfo/redhat-list >> > > >> > >> > >> > >> > ___ >> > Redhat-list mailing list >> > [EMAIL PROTECTED] >> > https://listman.redhat.com/mailman/listinfo/redhat-list >> > >> >> >> >> ___ >> Redhat-list mailing list >> [EMAIL PROTECTED] >> https://listman.redhat.com/mailman/listinfo/redhat-list >> > > > >___ >Redhat-list mailing list >[EMAIL PROTECTED] >https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
Works fine if you have the rpmfind executable on your system. A little bit of a catch 22, eh? On Thu, 21 Dec 2000 17:28:30 -0500, Hal Burgiss wrote: >On Thu, Dec 21, 2000 at 05:10:00PM -0500, Mike Burger wrote: >> Point your browser at http://rpmfind.net, and do a search for sudo. It >> came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you >> want. > >Even easier: > >[hal@feenix hal]$ rpmfind sudo >Installing sudo will require 291 KBytes >### To Transfer: >ftp://ftp.redhat.com/pub/redhat/redhat-7.0/i386/en/RedHat/RPMS/sudo-1.6.3-4.i386.rpm >Do you want to download these files to /tmp/rpms [Y/n/a/i] ? > > >-- >Hal B > [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] >-- > > > >___ >Redhat-list mailing list >[EMAIL PROTECTED] >https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
I was doing something very similiar, but I still needed sudo. david On Thu, 21 Dec 2000, rpjday wrote: > On Thu, 21 Dec 2000, Mike Burger wrote: > > > Point your browser at http://rpmfind.net, and do a search for sudo. It > > came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you > > want. > > as another option, if you work in a graphical environment, just > bring up a gnome-terminal or xterm, "su" it to root, and just > leave it off in the corner where you can use it to run privileged > commands when you need to. > > naturally, this assumes you have reasonable physical security and > don't leave your terminal unattended where others can wander by > and do damage. it works for me, and i don't need to mess with > sudo. > > of course, if you're not working in X, just pretend i was > never here. > > rday > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
show off :) I tried using search engines and over looked the obvious thanks david On Thu, 21 Dec 2000, Mike Burger wrote: > Point your browser at http://rpmfind.net, and do a search for sudo. It > came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you > want. > > On Thu, 21 Dec 2000, David Brett wrote: > > > If you find sudo let me know I did a search for it without success > > > > > > david > > > > On Thu, 21 Dec 2000, Mike Burger wrote: > > > > > Check your system for "sudo". > > > > > > On Sat, 23 Dec 2000, christopher j bottaro wrote: > > > > > > > i'm logged in as a normal user most of the time on my linux machine, but i > > > > download and install a lot of stuff too. this requires me to switch back and > > > > forth between superuser and my normal login. my friend told me that at his > > > > work, they have a das (do a superuser) alias on their play linux boxes. he > > > > says it works like this... > > > > das mv blah /usr/local > > > > 1) changes to su > > > > 2) executes "mv blah /usr/local" as su > > > > 3) exits from su > > > > > > > > can some show me how to write such an alias (or even shell script?)? thanks > > > > a bunch. > > > > > > > > > > > > > > > > ___ > > > > Redhat-list mailing list > > > > [EMAIL PROTECTED] > > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > > > > > > ___ > > > Redhat-list mailing list > > > [EMAIL PROTECTED] > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > ___ > > Redhat-list mailing list > > [EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
On Thu, Dec 21, 2000 at 05:10:00PM -0500, Mike Burger wrote: > Point your browser at http://rpmfind.net, and do a search for sudo. It > came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you > want. Even easier: [hal@feenix hal]$ rpmfind sudo Installing sudo will require 291 KBytes ### To Transfer: ftp://ftp.redhat.com/pub/redhat/redhat-7.0/i386/en/RedHat/RPMS/sudo-1.6.3-4.i386.rpm Do you want to download these files to /tmp/rpms [Y/n/a/i] ? -- Hal B [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] -- ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
On Thu, 21 Dec 2000, Mike Burger wrote: > Point your browser at http://rpmfind.net, and do a search for sudo. It > came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you > want. as another option, if you work in a graphical environment, just bring up a gnome-terminal or xterm, "su" it to root, and just leave it off in the corner where you can use it to run privileged commands when you need to. naturally, this assumes you have reasonable physical security and don't leave your terminal unattended where others can wander by and do damage. it works for me, and i don't need to mess with sudo. of course, if you're not working in X, just pretend i was never here. rday ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
Point your browser at http://rpmfind.net, and do a search for sudo. It came up with 82 possible options...sudo-1.6.3-4-i386.rpm is the one you want. On Thu, 21 Dec 2000, David Brett wrote: > If you find sudo let me know I did a search for it without success > > > david > > On Thu, 21 Dec 2000, Mike Burger wrote: > > > Check your system for "sudo". > > > > On Sat, 23 Dec 2000, christopher j bottaro wrote: > > > > > i'm logged in as a normal user most of the time on my linux machine, but i > > > download and install a lot of stuff too. this requires me to switch back and > > > forth between superuser and my normal login. my friend told me that at his > > > work, they have a das (do a superuser) alias on their play linux boxes. he > > > says it works like this... > > > das mv blah /usr/local > > > 1) changes to su > > > 2) executes "mv blah /usr/local" as su > > > 3) exits from su > > > > > > can some show me how to write such an alias (or even shell script?)? thanks > > > a bunch. > > > > > > > > > > > > ___ > > > Redhat-list mailing list > > > [EMAIL PROTECTED] > > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > > > > > > ___ > > Redhat-list mailing list > > [EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
Umm...(not sure this will work), alias das="su -c $1" das "mv blah /usr/local" Well, it's close...*shrugs* -LG On Sat, 23 Dec 2000, christopher j bottaro wrote: > i'm logged in as a normal user most of the time on my linux machine, but i > download and install a lot of stuff too. this requires me to switch back and > forth between superuser and my normal login. my friend told me that at his > work, they have a das (do a superuser) alias on their play linux boxes. he > says it works like this... > das mv blah /usr/local > 1) changes to su > 2) executes "mv blah /usr/local" as su > 3) exits from su > > can some show me how to write such an alias (or even shell script?)? thanks > a bunch. > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > -- Generated Signature -- File cabinet: A four drawer, manually activated trash compactor. -- End Sig -- ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
If you find sudo let me know I did a search for it without success david On Thu, 21 Dec 2000, Mike Burger wrote: > Check your system for "sudo". > > On Sat, 23 Dec 2000, christopher j bottaro wrote: > > > i'm logged in as a normal user most of the time on my linux machine, but i > > download and install a lot of stuff too. this requires me to switch back and > > forth between superuser and my normal login. my friend told me that at his > > work, they have a das (do a superuser) alias on their play linux boxes. he > > says it works like this... > > das mv blah /usr/local > > 1) changes to su > > 2) executes "mv blah /usr/local" as su > > 3) exits from su > > > > can some show me how to write such an alias (or even shell script?)? thanks > > a bunch. > > > > > > > > ___ > > Redhat-list mailing list > > [EMAIL PROTECTED] > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Re: superuser alias?
Check your system for "sudo". On Sat, 23 Dec 2000, christopher j bottaro wrote: > i'm logged in as a normal user most of the time on my linux machine, but i > download and install a lot of stuff too. this requires me to switch back and > forth between superuser and my normal login. my friend told me that at his > work, they have a das (do a superuser) alias on their play linux boxes. he > says it works like this... > das mv blah /usr/local > 1) changes to su > 2) executes "mv blah /usr/local" as su > 3) exits from su > > can some show me how to write such an alias (or even shell script?)? thanks > a bunch. > > > > ___ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
superuser alias?
i'm logged in as a normal user most of the time on my linux machine, but i download and install a lot of stuff too. this requires me to switch back and forth between superuser and my normal login. my friend told me that at his work, they have a das (do a superuser) alias on their play linux boxes. he says it works like this... das mv blah /usr/local 1) changes to su 2) executes "mv blah /usr/local" as su 3) exits from su can some show me how to write such an alias (or even shell script?)? thanks a bunch. ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
Problems with alias name
Hi to all. Help !! I have one server Redhat 6.2 and a lot of Pop client ( Special account -> Account Pop ) When in client dialog box (fields :Email alias ) I put 2 or 3 or 4 alias the mail server go in error : [EMAIL PROTECTED] not valid user . Why ? If I put 1 only alias all ok !! Why ? Alessandro -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: IP alias
At 10:57 AM 6/23/00 , Arturs Korneevs wrote: >Hello, >Can I add IP alias with different host_name to /etc/hosts ? First, PLEASE turn off your HTML. You have doubtless been entered into many kill files already. To answer your question, I believe you can just add it: 198.162.0.1 www myhost.com www.myhost.com 198.162.0.1 www2 myother.com www.myother.com I do something like this on my internal LAN for a development server. -Alan -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
IP alias
Hello, Can I add IP alias with different host_name to /etc/hosts ?
IP alias and /etc/hosts
Hello, I must install Lotus Domino 5.02c ES on RedHat 6.1 and I added IP alias for it via linuxconf. It works fine, but when I conected with Notes Administrator from winNT to server it write: server not responding. Telnet to IP alias to port 1352 works. I haven't this IP alias in DNS table. Maybe I must add string of IP alias to /etc/hosts ? Help, pls
Re: Alias Substitution
On Mon, 19 Jun 2000, SoloCDM wrote: > > > Is it possible to make an alias substitute an item into its command as > > > in the following: No. -- Todd A. Jacobs Senior Network Consultant -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: Alias Substitution
This question has already been properly answered by explaining the use of functions in bash which are used to replace csh style parameterized aliases. But the particular question begs for one more comment: You can say CDPATH='.:~' in your .bashrc, or you can just say export CDPATH='.:~' in your .bash_profile -- -Time flies like the wind. Fruit flies like a banana. [EMAIL PROTECTED] -Stranger things have happened but none stranger than this. Steven W. Orr- Does your driver's license say Organ Donor?Black holes are where God \ ---divided by zero. Listen to me! We are all individuals!- On Mon, 19 Jun 2000, SoloCDM wrote: =>"Carey F. Cox" wrote: =>> =>> On Mon, 19 Jun 2000, SoloCDM wrote: =>> =>> > Is it possible to make an alias substitute an item into its command as =>> > in the following: =>> > =>> > $ alias cdl='cd ~/$@' =>> > $ cdl nsmail/Administrator.sbd =>> =>> For bash scripts you will need to use a function as follows... =>> =>> $ function cdl { cd ~/$@ } => =>Thanks, but I'm referring to the command-line -- not a script. -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.
Re: Alias Substitution
On Mon, 19 Jun 2000, SoloCDM wrote: > "Carey F. Cox" wrote: > > > > For bash scripts you will need to use a function as follows... > > > > $ function cdl { cd ~/$@ } > > Thanks, but I'm referring to the command-line -- not a script. > A script is no more than a bunch of command line "commands" put together. Stick the above in your ~/.bashrc and it will work. I have tried it already. Alternatively, you can type it on the "command line" everytime you login, but that would be tedious, so stick it in your startup "script," ~/.bashrc. Hope that clarifies things. Carey -- == <> Carey F. Cox, PhD | PHONE: (409) 880-8770 <> <> Assistant Professor | FAX: (409) 880-8121 <> <> Dept. of Mech. Eng. | EMAIL: [EMAIL PROTECTED] <> <> Lamar University | WEB: N/A <> == -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.