Hi all, I hope you all don't get upset because of my question, but someone (I knew it was my admin) always restart my login in my networking area while I'm working. I just wanna know how to sudo the admin, then change his passw ? thx ===== Ody __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com
On Sun, 13 Apr 2003 06:41:50 -0700 (PDT)
jamu pegel linux
Hi all, I hope you all don't get upset because of my question, but someone (I knew it was my admin) always restart my login in my networking area while I'm working. I just wanna know how to sudo the admin, then change his passw ? I'm not 100% sure what you are asking. I use sudo very frequently and I rarely use su. First, you must set up the /etc/sudoers file (this should be owned by root and in root's group), rw owner, r group, and no permissions for others. You should use the visudo command to edit the /etc/sudoers file. There are samples in the initial sudoers file. Then, you can use sudo anytime you have a system command to perform: sudo shutdown
Sudo will then prompt you for your password, then execute the command.
You can also spawn a shell:
sudo bash
--
Jerry Feldman
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 13 April 2003 6:41 am, jamu pegel linux wrote:
I hope you all don't get upset because of my question,
Most questions on this list don't bother me much...
but someone (I knew it was my admin) always restart my login in my networking area while I'm working.
[hold that thought...]
I just wanna know how to sudo the admin, then change his passw ?
This, however, raises a red flag. I'll have to repeat the comment made in a similar thread where you were asking how to crack the root password: if you don't already know it, there is probably a good reason for it -- usually because you AREN'T the administrator to begin with... But back to your earlier problem: your "login restarts while you're working". That is kind of an odd way to describe it [in english, at least] -- a better word might be "session" instead of "login" since login really describes the act of starting a session (in other words, "actions" don't "restart") Before I dole out some "1337" cracker info, let me ask a bit more about what you mean by "[session] restarts WHILE working": * do you get prompted for your session information if you've been away from the terminal for more than a couple minutes? * or does this happen while you are actively typing away at the keyboard? * does your company or network have a specific "working time" and/or perhaps an [automated] backup procedure? In the first case, there is probably an "inactivity" timer set system wide, and it isn't really "the admin" that is doing the dirty work. The reason this might be in place is to prevent someone from walking up to your terminal [while you're down the hall grabbing some coffee] and impersonating you. In the last case, there may be a script that logs everyone "off" the system to make sure that any files backed up aren't being altered at the time the backup runs. [or if it is the case that "a 5:00pm, everyone should leave", maybe that is a hint you're working too hard...] The second item would be one that really would concern me: administrators generally don't go around randomly restarting sessions -- that's just bad form... If you do have a truly malicious admin, then perhaps a word with his manager is in order. Becoming a "vigilante" and resetting his password out from underneath him is the fastest way to get yourself FIRED [and in such a way you aren't likely to collect severance; in fact, you might even face a lawsuit on the way out the door...] - -- Yet another Blog: http://osnut.homelinux.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: http://osnut.homelinux.net/TomEmerson.asc iD8DBQE+mYIhV/YHUqq2SwsRAltWAJ9kjRudLe7H/iJHrgHE6hAuerS2/ACfX8q+ Sv7ndH8aK2/yiLCt2BEC4NY= =y8tZ -----END PGP SIGNATURE-----
participants (3)
-
jamu pegel linux
-
Jerry Feldman
-
Tom Emerson