![]() |
[SOLVED]Create desktop icon with root access to my script - some help needed..
Hello
I have script for some my stuff. I created icon with this lines: Code:
[Desktop Entry] 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" 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 Is it possible to add something before my command, that will can perform my command without exiting from ROOT ? Thanks EDIT: Problem solved.. |
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
Would be great if you could share your solution to the community :)
|
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
Think almedhi gave him some pointers (if im not mistaken) in his n9tweak script thread at forum.meego
|
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
Yeah, but it would then be better to link to forum.meego for the solution ^^ I bet someone else will have the same problem again in a few days / weeks.
|
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
I will explain later.. Sorry, no time for now..
|
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
Hi
I got help from one guy (hxka) from Russian forum that explain to me how to do this. Important things are marked in red. For the first: Code:
[Desktop Entry] Code:
devel-su user -c "cd /home/user/MyDocs/.wallpapers && cp -r mywall.png /home/user/.wallpapers" |
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
This method launches up a terminal asking for the devel-su password.
How can I achieve the same thing without typing in a password, so that a script is launched with root credentials from a desktop icon. I tried to set suid bits on the script but it does not seem to elevate my creds. (and yes, of course this is an Open Mode device as I have no type of devices... :D) |
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
Try
Code:
devel-su -c "echo rootme | sh /path/to/script.sh" |
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
Quote:
Code:
echo rootme | devel-su -c "sh /path/to/script.sh" |
Re: [SOLVED]Create desktop icon with root access to my script - some help needed..
yes, I meant what you wrote. sorry, I'm at work now, no time to think...
|
All times are GMT. The time now is 23:15. |
vBulletin® Version 3.8.8