View Single Post
Posts: 856 | Thanked: 1,681 times | Joined on Apr 2010 @ Aleppo ,Syria
#3
that is true you need

run-standalone.sh

before the script
cause when you type

root

it runs that script [standalone] with anything
also in user
but not with sudo gainroot

you can also :

Code:
 sudo run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications
but you need to do this first

Code:
echo "user ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
echo "root ALL=(ALL) NOPASSWD: ALL" >> everybody.sudoers
mv everybody.sudoers /etc/sudoers.d
update-sudoers
this will let you run sudo #anything as root
also double root is possible
 

The Following 2 Users Say Thank You to karam For This Useful Post: