All of lore.kernel.org
 help / color / mirror / Atom feed
From: - Luis - <unix@amigo.net.gt>
To: Benjamin Walkenhorst <krylon@gmx.net>
Cc: linux <linux-admin@vger.kernel.org>
Subject: Re: sudo'ers, I need help!
Date: 21 Jul 2003 10:23:44 -0600	[thread overview]
Message-ID: <1058804624.369.28.camel@luisvalencia> (raw)
In-Reply-To: <S267852AbTGTT3b/20030720192931Z+3637@vger.kernel.org>

Hey there,

i got my workstation running linux, so like you im the root and also the
only user, so i recomend to you edit the sudoers file, to do this you
got to log as root, and make chnmod 640 /etc/sudoers to give write
permissions, and add you user behind root like this:

username ALL=(ALL) NOPASSWD: ALL

or 

username ALL=(ALL) ALL

(change 'username' with your user)

the diference is if you wanto to be ask for you password each time you
use sudo or not.  This is for security reasons, it give the chance to
think twice what you are doing.

save and quit, and dont forget to make chmod 440 /etc/sudoers again.



Le dim 20/07/2003 à 13:44, Benjamin Walkenhorst a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello everybody,
> 
> I use SuSE Linux 7.3 Professional (with linux-2.4.20 + cryptoapi and 
> cryptoloop patches) on a Pentium III 450 with 256 MB of RAM. It is a single 
> machine, no local network, just the ISDN adapter for internet. 
> Being both the only user and the administrator, I use a non-root account for 
> everyday work and mostly su to root, if I need root privileges. But often 
> there is just a single command I want to run or a single file I want to edit 
> (like building a new kernel and re-running /sbin/lilo or editing /etc/fstab), 
> and I am aware of the sudo command allowing users to run a command with root 
> privileges without having to authentify as root and avoiding the risks of 
> suid-bits. For users to run sudo <command>, root has to edit /etc/sudoers and 
> add an entry like "user_X is allowed to run command_y as root. 
> 
> But I don't know about the file format: there is a manpage on this file, but 
> I didn't find it to be any help. 
> Can anyone explain this file to me? Give some nice examples, maybe? Or tell 
> me if there is some kind of HOWTO? If found a German introduction, but I 
> still don't know how to do this. ;-( 
> What I want to learn is allow userX to run some commands like vi, make, cp, 
> lilo, mount, ... as root. 
> SUID is not what I want, since I do not always want to run these commands as 
> root, just sometimes. 
> 
> Or might sudo not be what I am looking for?
> 
> Thank you very much,
> 
> Kind regards,
> 
> Benjamin Walkenhorst
> 
> - -- 
> "Der Hoffnung beraubt sein,
>  heißt noch nicht - verzweifeln."
> (Albert Camus)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Public Key available at http://www.krylon.de
> 
> iD8DBQE/GvEcoYumWdMvhMQRAiCTAJ9SGUDd4uiUh6+sPoYkOch4VukcIQCgibMz
> TaXxMj6qodvlbSiV/IK0S3k=
> =d3Mx
> -----END PGP SIGNATURE-----
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-- 
- -- 
Luis Valencia
- ------------------------
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.
- --Peter J. Schoenster


-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2003-07-21 16:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-20 19:44 sudo'ers, I need help! Benjamin Walkenhorst
2003-07-21  9:52 ` thomas.wallrafen
2003-07-21 16:10 ` Thanks for help! Benjamin Walkenhorst
2003-07-21 16:23 ` - Luis - [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1058804624.369.28.camel@luisvalencia \
    --to=unix@amigo.net.gt \
    --cc=krylon@gmx.net \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.