From mboxrd@z Thu Jan 1 00:00:00 1970 From: - Luis - Subject: Re: sudo'ers, I need help! Date: 21 Jul 2003 10:23:44 -0600 Sender: linux-admin-owner@vger.kernel.org Message-ID: <1058804624.369.28.camel@luisvalencia> References: Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: List-Id: Content-Type: text/plain; charset="utf-8" To: Benjamin Walkenhorst Cc: linux Hey there, i got my workstation running linux, so like you im the root and also th= e 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=3D(ALL) NOPASSWD: ALL or=20 username ALL=3D(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 =C3=A0 13:44, Benjamin Walkenhorst a =C3=A9crit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hello everybody, >=20 > I use SuSE Linux 7.3 Professional (with linux-2.4.20 + cryptoapi and=20 > cryptoloop patches) on a Pentium III 450 with 256 MB of RAM. It is a = single=20 > machine, no local network, just the ISDN adapter for internet.=20 > Being both the only user and the administrator, I use a non-root acco= unt for=20 > everyday work and mostly su to root, if I need root privileges. But o= ften=20 > there is just a single command I want to run or a single file I want = to edit=20 > (like building a new kernel and re-running /sbin/lilo or editing /etc= /fstab),=20 > and I am aware of the sudo command allowing users to run a command wi= th root=20 > privileges without having to authentify as root and avoiding the risk= s of=20 > suid-bits. For users to run sudo , root has to edit /etc/sud= oers and=20 > add an entry like "user_X is allowed to run command_y as root.=20 >=20 > But I don't know about the file format: there is a manpage on this fi= le, but=20 > I didn't find it to be any help.=20 > Can anyone explain this file to me? Give some nice examples, maybe? O= r tell=20 > me if there is some kind of HOWTO? If found a German introduction, bu= t I=20 > still don't know how to do this. ;-(=20 > What I want to learn is allow userX to run some commands like vi, mak= e, cp,=20 > lilo, mount, ... as root.=20 > SUID is not what I want, since I do not always want to run these comm= ands as=20 > root, just sometimes.=20 >=20 > Or might sudo not be what I am looking for? >=20 > Thank you very much, >=20 > Kind regards, >=20 > Benjamin Walkenhorst >=20 > - --=20 > "Der Hoffnung beraubt sein, > hei=C3=9Ft noch nicht - verzweifeln." > (Albert Camus) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.2 (GNU/Linux) > Comment: Public Key available at http://www.krylon.de >=20 > iD8DBQE/GvEcoYumWdMvhMQRAiCTAJ9SGUDd4uiUh6+sPoYkOch4VukcIQCgibMz > TaXxMj6qodvlbSiV/IK0S3k=3D > =3Dd3Mx > -----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 --=20 - --=20 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