Discussion on:

7
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Tried this on Ubuntu 7.04 and get "permission denied" even when signed in with sudo. Any ideas?
0 Votes
+ -
check sudo perms
pgit 27th May 2008
Sudo doesn't necessarily give all the same permissions as root.

Check the /etc/sudoers file. You'll see root permissions and your user's listed in there. If the user isn't the same as root, you can elevate it by making your entry read the same as root's.

Easier to just log in as root (in the terminal) and play with it there, less typing...
0 Votes
+ -
The good people at Ubuntu have disabled the root account, preventing it from being used to log in. They've also set the password to something random and do not provide it to the user. The sudo command expects the user's password, not root, but then allows the user to perform (apparently not all) root functions.

I haven't used Ubuntu for some time, but I believe there is a way to enable the root account, set the password and then do a proper su.
0 Votes
+ -
Root user on Ubuntu
gacain 27th May 2008
1 - Log in with "normal" user and password.
2 - At the CLI enter:

sudo -s -H

3 - At the password prompt enter the "normal" user password again.

4 - You are now logged in as root. You can set a root password with the:

passwd

command as usual.
0 Votes
+ -
Another way is -

1. Open a terminal,
2. type "sudo passwd root" (do not use quotes)
3. Enter normal user password
4. Enter new password for root.
5. login as su.....
0 Votes
+ -
Speaking for 8.04, root's password isn't random, it's just locked. "sudo passwd root" should take care of that, if you're so inclined. Of course, there's always booting to recovery mode, which is runevel 1, where you can set root's password.

However, "sudo cat /proc/cpuinfo" works fine for me on 8.04, as does "sudo -s" and then running around the system as root.
It shows the installed memory onboard and the current utilisation status
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.