Startup Application in session as root in unbuntu 8.10 ??

Asked by SoonSoon

Hi all

Got a question here hope you can assist me

i wrote a simple script(as seen below) and placed it to startup every session.

ls -l /dev/ttyS* > /home/user/Desktop/Session_ttyS_.txt
who > /home/user/Desktop/Session_Who.txt

I realize that in 8.10, root is the owner for both the files, while in 7.04 both files are under user.

Is there any way to make the application to be exec as user when autostartup?

Regards
Soon Lee

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Daniel Ribeiro (danielrmt) said :
#1

it's better to change the file owner in your script:
sudo chown user:user /home/user/Desktop/Session_ttyS_.txt
sudo chown user:user /home/user/Desktop/Session_Who.txt

Can you help with this problem?

Provide an answer of your own, or ask SoonSoon for more information if necessary.

To post a message you must log in.