Remote Exploit Forums

Go Back   Remote Exploit Forums > Specialist Topics > Pentesting


Pentesting Specific topics related to legal penetration testing

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-03-2009, 01:00 AM
lupin's Avatar
Moderator
 
Join Date: Mar 2009
Location: Australia
Posts: 945
Default

Quote:
Originally Posted by Barry View Post
Linux 101.
Well yeah, that's my opinion too, but Ive seen a number of people refer to this mythical "sudo password" on the Ubuntu forums and elsewhere on the Net and I wanted to ensure we didn't perpetuate the myth here on this forum....
__________________
Nancy Astor: If I were your wife I would put poison in your coffee!
Winston Churchill: Madam, if I were your husband I would drink it.
Reply With Quote
  #12 (permalink)  
Old 11-03-2009, 10:15 AM
Virchanza's Avatar
Senior Member
 
Join Date: Sep 2008
Location: I am not living
Posts: 728
Default

Just to clarify, what I meant by "sudo password" is the password you get prompted to enter in when you execute the "sudo" command. As you've said, this password is the password for the user account you're currently using (unless you've got a weird sudoers configuration).
__________________
Ask questions on the open forums, that way everybody benefits from the solution, and everybody can be corrected when they make mistakes. Don't send me private messages asking questions that should be asked on the open forums, I won't respond. I decline all "Friend Requests".
Reply With Quote
  #13 (permalink)  
Old 11-04-2009, 11:47 PM
Junior Member
 
Join Date: Jul 2009
Location: 1337 h4x0r str337
Posts: 20
Send a message via AIM to b3r00tb4ck
Default

the only command that should be run with sudo is 'sh' because theres only one password input, and no timeout, and you can do some work like you were in backtrack as root
Reply With Quote
  #14 (permalink)  
Old 11-05-2009, 12:25 AM
lupin's Avatar
Moderator
 
Join Date: Mar 2009
Location: Australia
Posts: 945
Default

Quote:
Originally Posted by b3r00tb4ck View Post
the only command that should be run with sudo is 'sh' because theres only one password input, and no timeout, and you can do some work like you were in backtrack as root
If your only consideration in using sudo was to avoid annoyance then that would be a valid point, but sudo was designed to allow root privileges to be controlled with a greater level of granularity on *nix systems, and there are many other potential uses for it apart from running a shell. If you only want to use a root shell you may as well use su, or just log on as root - sudo only really becomes useful if you intend to use it for individual commands.

Only a week ago for example I wrote a script to output log files from a particular directory only accessible by root, and I allowed an unprivileged user sudo access to that script. This allowed me to grant direct access to these logs to a user without having to give root access to the system (assuming my script doesn't get modified and holds up against command injection).

Quote:
Originally Posted by Virchanza View Post
Just to clarify, what I meant by "sudo password" is the password you get prompted to enter in when you execute the "sudo" command. As you've said, this password is the password for the user account you're currently using (unless you've got a weird sudoers configuration).
Its still a rather confusing way to refer to the password. Its like calling the password you use to log on to a system by ssh your "ssh password". Calling it by a different name makes people think that its distinct from your regular user password, when it isn't.
__________________
Nancy Astor: If I were your wife I would put poison in your coffee!
Winston Churchill: Madam, if I were your husband I would drink it.

Last edited by lupin; 11-05-2009 at 12:34 AM.
Reply With Quote
Reply

Bookmarks

Tags
root, sudo

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2