give a user admin privileges for everything without root

Archived topics about LMDE 1
Forum rules
undernet
Level 1
Level 1
Posts: 6
Joined: Wed Mar 23, 2011 3:09 pm

give a user admin privileges for everything without root

Postby undernet » Wed Mar 23, 2011 5:24 pm

Hi

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?

JasonLG
Level 7
Level 7
Posts: 1620
Joined: Thu May 20, 2010 9:15 pm
Location: Polk City, Iowa USA

Re: give a user admin privileges for everything without root

Postby JasonLG » Wed Mar 23, 2011 9:45 pm

Use sudo.
"I see" said the blind man to the deaf man who stuck his wooden leg out the window to check the weather.

jeffreyC
Level 4
Level 4
Posts: 322
Joined: Mon Jun 07, 2010 9:34 pm

Re: give a user admin privileges for everything without root

Postby jeffreyC » Thu Mar 24, 2011 9:27 pm

Windows runs as admin all the time and look how secure it isn't.
There is a reason for the extra steps in Linux.
Get Dropbox and an extra 250 mb http://db.tt/wAizqw0

CiaW
Level 3
Level 3
Posts: 170
Joined: Fri Sep 10, 2010 11:39 am
Location: Spokane Wash, USA

Re: give a user admin privileges for everything without root

Postby CiaW » Fri Mar 25, 2011 12:03 pm

One thing that might be helpful is a 'root terminal'. I've added a top panel to my desktop so I could throw on some frequently used panel add-ons (like weather and tracker search and etc. etc.) One item available to add is 'root terminal' under Accessories. I generally open it once for things like debdelta-upgrade and then leave it open, so you only have to enter the sudo password once.

User avatar
xircon
Level 5
Level 5
Posts: 771
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: give a user admin privileges for everything without root

Postby xircon » Fri Mar 25, 2011 6:18 pm

This is helpful for sudo:

http://forums.debian.net/viewtopic.php?f=16&t=45390

I set up sudo to require no password, still have to type sudo, but it no longer requires a password.
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 1 guest