I'm currently going mad over the permissions system in linux. I used to use ubuntu and just used the root account for everything but some programs will not run or not work properly as root eg. VLC.
So now i'm on LMDE on a normal user account, but having to type the password in for root or sudo all the time is annoying me. I just want to be able to login to my profile when i start up my pc with my password once and then have the power to do anything without entering any passwords or having to become root to use certain commands.
For example I cant use iptables as a normal user and running commands like the one below to prevent vlc from using the internet do not work because of permissions problems.
Code: Select all
iptables -I OUTPUT 1 -m owner --gid-owner no-internet -j DROP
sg no-internet vlc
the command above will not work because changing the group that an app will run under requires you are root but vlc will not run as root.
I know the risks of having admin rights all the time but its something i'm prepared to live with in order to not have to change user accounts to perform tasks or have to type in passwords all the time.
So how would one go about achieving this?