l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Jun 10 08:23

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] question on auto-running a program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] question on auto-running a program

* Richard Ely (dick@davis.com) wrote:
> I have a recent Debian Distro.
> I have an "always-up" DSL connection thanks to Jonathan (thanks Jonathan!!) 
> through a router.
> When I log onto my machine as user, I am not connected because I have to 
> "ifup eth0" as su.
> So I can change to su.  type "ifup", then exit back to user.  Not efficient.
> I want my son to use this machine and I do not want him to be su.  How can 
> I have the system always issue that command as su on boot-up no matter who 
> logs on?

If it's Debian, there should be a script in /etc/init.d that is
symlinked to a script in rc3.d (though when I went looking for it, I
couldn't find it).  That's what you need - a small script that says
"ifup eth0". Give a sequence number in the 90s, well after the one that
enables iptables.  You may also want to put the module for your
ethernet card into /etc/modules so it gets loaded immediately.  If you
don't have it built into the kernel, and have not put the module into
/etc/modules, doing that may solve the problem.

Good luck


Cam Ellison  Ph.D.  R.Psych. #01417

Cam Ellison & Associates Ltd.
Management Psychology

RR 22    3446 Beach Avenue
Roberts Creek  BC  V0N 2W2

Phone: 604-885-4806
Fax:   604-885-4809

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.