View Single Post
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#4
Originally Posted by karam View Post
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
No, neither user nor "root" use run-standalone.sh, it has to do with environment variables being set in one and not the other.

Originally Posted by karam View Post
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
That would also allow a sudo rm -rf /path/to/root, keeping some security on the system is saner.
 

The Following 3 Users Say Thank You to MohammadAG For This Useful Post: