On Tue, Oct 23, 2001 at 12:11:20PM -0700, Mark Bigler wrote:
> On Tuesday 23 October 2001 11:32, Justin Bengtson wrote:
> > is there any way to remove all the user accounts (including root) and
> > simply run the system as a single user?  can i do away with the whole
> > login thing?
> 
> "Sudo is a program designed to allow a sysadmin to give limited root 
> privileges to users and log root activity. The basic philosophy is to 
> give as few privileges as possible but still allow people to get their 
> work done."
> 

Well, I'm glad someone mentioned sudo.  Just install it then add the lines:

justin  ALL=(ALL)       NOPASSWD: ALL
Defaults:justin !lecture

(Assuming your login is 'justin', of course)

Then if you ever try something and it says "Permission denied", just
type 'sudo ' before the command.  

It's that easy!

Be aware that root's permissions die at redirects on the command line, 
however (just put it into a batch .. er, shell script).
Oh, yeah, and if you want to use X menus to run things that need
root permissions, you'll have to add 'sudo ' in front of the commands
that the menu program executes.

Or you could *possibly* setuid root (chown root; chmod 4755) your X server 
and bash.  Anyone ever try that?

-- 
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

Reply via email to