View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#1
Hello
I have script for some my stuff. I created icon with this lines:
Code:
[Desktop Entry]
Type=Application
Name=MYN9QT
Categories=System;
Exec=/usr/bin/meego-terminal -n -e sh /home/user/MyDocs/Modding/N9QuickTweak/MYN9QT
Icon=icon-l-terminal
It's work and it's allow me to access as USER, but most of my commands I need to run as ROOT (devel-su)
What I need to change in this line: /usr/bin/meego-terminal -n -e sh /home/user/MyDocs/Modding/N9QuickTweak/MYN9QT
that allow me to access to my script as ROOT (devel-su) ?
I tried like this:
Code:
/usr/bin/aegis-exec -s -u echo $PASSWORD | devel-su -c -l "/usr/bin/meego-terminal -n -e sh /home/user/MyDocs/Modding/N9QuickTweak/MYN9QT"
, but it's not work at all..

Another question..
When I run my script from Terminal as ROOT (devel-su), I have one command that I need to run as USER:
Code:
cp -r /home/user/MyDocs/.wallpapers/mywall.png /home/user/.wallpapers
and I always need to exit from ROOT and access to my script again as USER..
Is it possible to add something before my command, that will can perform my command without exiting from ROOT ?

Thanks


EDIT: Problem solved..

Last edited by Schturman; 2011-12-10 at 21:56.