That is what I did. THe problem is, its a root task and I get permission denied.



---------- Caner Baydemir <[EMAIL PROTECTED]> writes:

From: Caner Baydemir <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: run root script at start-up
Date: Tue, 16 Jul 2002 17:50:28 +0300

> I have a couple scripts that mount my windows c: and d: drives. How can I
> get them to run at start-up for a non-root user?

try this:

1- create a bash script file, example: script_file. insert the following 
lines:

#!/bin/bash
your scripts

save and quit. 

2-

chmod  +x  script_file

3-

mv  script_file  /usr/bin/

4-  edit user's .bashrc file.  ( /home/username/.bashrc ) end append the 
following lines:

script_file

save and quit.

5- As the user logs in to the system, the script file runs...

---------
Caner



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list





________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to