Hi!
Is it possible to give root previlages to some account ? It shud have all the powers of root. i know its kinda dumb idea but still i wud like to know if its possible.
let's consider i want to give root previlages to foo I tried this:
$cp /bin/bash /home/foo #chown root /home/foo/bash #chmod +s /home/foo/bash
but when i do ./bash in directory nd type whoami it gives me foo nd not root !
what shud i do?
Please enlighten.
Just make the other account's uid/gid 0
- cnb
On Thu, 12 Sep 2002 20:10:50 +0530 (IST) Nikhil Joshi nikhiljoshi@subdimension.com wrote:
Hi!
Is it possible to give root previlages to some account ? It shud have all the powers of root. i know its kinda dumb idea but still i wud like to know if its possible.
let's consider i want to give root previlages to foo I tried this:
$cp /bin/bash /home/foo #chown root /home/foo/bash #chmod +s /home/foo/bash
but when i do ./bash in directory nd type whoami it gives me foo nd not root !
what shud i do?
Please enlighten.
On Thu, 12 Sep 2002, Nikhil Joshi wrote:
Is it possible to give root previlages to some account ? It shud have all the powers of root. i know its kinda dumb idea but still i wud
create a new user, then edit /etc/passwd and set his uid to 0. However, if you try to change this user's password, it will change root's password instead. The only way to change this user's password is by directly editing /etc/shadow.
I don't think I need to tell you that you should not do this.
$cp /bin/bash /home/foo #chown root /home/foo/bash #chmod +s /home/foo/bash
but when i do ./bash in directory nd type whoami it gives me foo nd not root !
this is a security precaution. bash ignores a setuid flag on itself.
create a new user, then edit /etc/passwd and set his uid to 0. However, if you try to change this user's password, it will change root's password instead. The only way to change this user's password is by directly editing /etc/shadow.
you can do "passwd new-root-user" and it will change the password of the new-root-user, even if the uid is 0; it will not change the password of root. At least in my system (Debian 2.2 with kernel 2.4.12) it works that way.
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA i Phone: 2152971, ext 2666 pablo@math.tifr.res.in http://www.math.tifr.res.in/~pablo/ Key fingerprint = 1A 7C 0A 22 5A 75 A4 78 62 6F 64 09 C1 A0 F7 E6 ----------------------------------------------------------------------
On Fri, 13 Sep 2002, Pablo Ares Gastesi wrote:
you can do "passwd new-root-user" and it will change the password of the new-root-user, even if the uid is 0; it will not change the password of root. At least in my system (Debian 2.2 with kernel
well, the way passwd works is it first checks the uid of the user, and then changes the password of the first user it finds with that uid. that's how it worked for me when i tried it - more than four score and several moons ago.
Hello,
well, the way passwd works is it first checks the uid of the user, and then changes the password of the first user it finds with that uid.
In the sources of passwd there is the following line, with comments:
static char *name; /* The name of user whose password is being changed */
I have not read the full source file, but from the comment, and the way passwd works in my system, I see that the program changes the password according to the user name, and not the uid. That is a better behaviour, I should say.
Pablo. ---------------------------------------------------------------------- Pablo Ares Gastesi. School of Mathematics, TIFR, Mumbai 400 005, INDIA pablo@math.tifr.res.in http://www.math.tifr.res.in/~pablo/ ----------------------------------------------------------------------
On Fri, 13 Sep 2002, Pablo Ares Gastesi wrote:
way passwd works in my system, I see that the program changes the password according to the user name, and not the uid. That is a better behaviour, I should say.
agreed.
hi all,
what does fetchmail do, if my .fetchmailrc is
poll 192.168.1.10 with proto pop3 options no dns envelope "Delivered-To:" aka test.cnpl.co.in user sanjeev@test.cnpl.co.in with pass "secreet" is * here fetchall smtphost localhost smtpaddress test.cnpl.co.in dropdelivered
will the envelope option work, or it will skip?
-sanjeev
Hello Luggers...;)
All volunteers who would like to take 2-3 hr sessions related to Programming-Tweaking-Development on Gnu-linux @ the Workshop in Sangli scheduled for October 1st week pls get intouch asap.
I am hoping a lot of u show ENTHU on this front........dont dissapoint me luggers.
Trevor
===== ( >- GNU/LINUX, It's all about CHOICE -< ) /~\ __ http://www.qmailtheeasyway.com __ /~\ | ) / mailto: trevor.w@media.mit.edu \ (/ | |_|_ \ Research Asst, MediaLab / _|_| ___________________________________/
__________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com