On 23-May-10 12:09:37, Wayne Stallwood wrote:
On 23/05/10 12:52, Anthony Anson wrote:
Trouble there is that the Eee comes wit ready-loaded OS and no root password.
It doesn't need one, there are now very few reasons why you need to log in as root, ever. Or worse still (Ted) leave root shells laying around :)
Well, since no-one but myself has physical access (short of breaking in to my house), who could take advantage of that? And how? (The only root-owned processes identificable by 'ps aux', apart from the usual bunch of system stuff like inetd, cron, lpd, etc.) are a bunch of getty's tied to tty1-6 (i.e. the usual raw consoles).
All the instances of 'bash' are owned by myself, including the one on which I have su'd to root.
There are however a couple of lines:
root 3273 0.0 0.1 3712 1080 pts/1 S May19 0:00 su - root 3275 0.0 0.1 3992 1696 pts/1 S May19 0:00 -su
which are clearly associated with the root login, but they refer to the process "su". No?
if you sudo as the first user you created when setting up the machine (as that user is automatically a sudoer) it will prompt you for that users password again and then run the command as root.
This is true for any user permitted in the sudoer file, or more generally any user in the group that is permitted in the sudoer file.
Or as Brett says if you want a root shell then run sudo -i (and type in your password)
Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 23-May-10 Time: 15:03:50 ------------------------------ XFMail ------------------------------