[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: network configuration for non root users



Greg Folkert wrote:
Add yourself to the sudo group, then create aliases of the programs as
sudo versions. Adding yourself to sudo means there is no prompt for your
password. That way even, if baddies get in, the changes some other
suggest won't be needed and therefore helps keep you safer.

For regular user do these,  ifconfig == sudo /sbin/ifconfig

and so on in your .bashrc

example:
	alias ifconfig='sudo /sbin/ifconfig'

No need for the arguments as it is just a substitution of ifconfig.

Thank you Greg.

Your approach is more secure than my current:

bob     ALL=(ALL) NOPASSWD: ALL

which comes out of total lazyness (in my partial excuse we are talking about my "single user" laptop :->).

I am wondering if I could parse the logs and see what commands I have used sudo for in the last weeks or so ...

Take care,
Bob



Reply to: