ECS Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ecs] Fwd: linux question (for ECS/Knoppix CD)
Neil Cherry
Wed, 09 Feb 2005 14:57:32 -0500

Mark Gilmore wrote:
> turns out that "su" only works when manually entering it at the cmd line 
> (&^$#$#(*).
> "sudo" looks like it will do the rick, but looks *very* 
> involved/complicated.
> is there a *simple* way of doing this (perhaps via superuser daemon that 
> i start at boot) ?
> thanks

In the file /etc/sudoers you'll need stuff like this:

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
%wheel  ALL=(ALL)       NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now


The first one permits root to do everything without using a password
(yes you can lock root out of commands with this). The second
(commented) entry would allow everyone in the group wheel to run
any command with but it requires a password. The 3rd one same
thing, no password. The fourth & fifth are explicit commands with
passwords (use NOPASSWD: ncherry for user ncherry in group users).
I think you'll find that much easier than anything else. Maybe
something like this:

# user ecs permit mount and umount
ecs	localhost = NOPASSWD: /sbin/mount /mnt/flashdev,/sbin/umount /mnt/flashdev

Sorry about the wrap on the ecs line.



-- 
Linux Home Automation         Neil Cherry       ncherry@comcast.net
http://home.comcast.net/~ncherry/               (Text only)
http://hcs.sourceforge.net/                     (HCS II)
http://linuxha.blogspot.com/                    My HA Blog

  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.