Moderators: SecretSquirrel, notfred
When using sudo you typically enter your own account's password, not the root password (you can set it up the other way, but by default you enter your password).zer0 wrote:My second question is a fairly straightforward one, whenever I use sudo in a terminal window within the GUI and then enter the root password, I get an incorrect password message.
Have you tried other VTs like Ctrl-Alt-F6 and Ctrl-Alt-F8-F10. F7 is traditional, but some configurations will cause to spawn X on different screens/VTs.zer0 wrote:On a side note, for a while, I had no problem hitting Ctrl + Alt + F1 to switch to a terminal and then Ctrl + Alt + F7 to go back to the GUI, but lately, when I hit Ctrl + Alt + F7, I get nothing but a black screen and the cursor.
bitvector wrote:When using sudo you typically enter your own account's password, not the root password (you can set it up the other way, but by default you enter your password).
bitvector wrote:Have you tried other VTs like Ctrl-Alt-F6 and Ctrl-Alt-F8-F10. F7 is traditional, but some configurations will cause to spawn X on different screens/VTs.
When you exit X and go to a virtual terminal you are logging in as the root user, whereas sudo is completely different -- you aren't logging in, you are temporarily assuming root's identity. As both JBI and I have said earlier, you type in your own password when using sudo, not root's password.zer0 wrote:bitvector wrote:When using sudo you typically enter your own account's password, not the root password (you can set it up the other way, but by default you enter your password).
within the GUI it doesn't work, but if I exit X and use it, I can use the root password. is that normal?
Oh, okay... well then X is running on that VT so it wasn't what I was thinking.zer0 wrote:The interesting thing is, if I hit Ctrl+Alt+Backspace, I get the GUI login prompt and I can log back in, but all of my windows have been closed...
BTW, you say it slows down when clicking on the desktop and dragging. Do you by chance have 3D desktop effects enabled (they may be enabled by default in Fedora)?zer0 wrote:For the most part the system is still very responsive, however when doing some simple things, such as clicking on the desktop and dragging the cursor around, the system suddenly starts to slow down for no apparent reason.
just brew it! wrote:Have you tried running the top command to see what process(es) are hogging the CPU?
just brew it! wrote:The rationale here is that the user is already trusted (i.e. in order to use sudo they must have been explicitly added to the /etc/sudoers file by someone with root privileges)
bitvector wrote:Do you by chance have 3D desktop effects enabled (they may be enabled by default in Fedora)?
If you need to add users to sudoers, just edit your /etc/sudoers file (the visudo command is provided for that purpose) and add a line like this:zer0 wrote:just brew it! wrote:The rationale here is that the user is already trusted (i.e. in order to use sudo they must have been explicitly added to the /etc/sudoers file by someone with root privileges)
how do I do that?
username ALL=(root) ALL%groupname ALL=(root) ALLbitvector wrote:When you exit X and go to a virtual terminal you are logging in as the root user, whereas sudo is completely different -- you aren't logging in, you are temporarily assuming root's identity. As both JBI and I have said earlier, you type in your own password when using sudo, not root's password.
Edit: Or do you mean sudo actually works differently when you invoke it from a virtual terminal?
bitvector wrote:If, in the above examples, you substitute (ALL) for (root), that allows someone to sudo to any other user (although you can do that anyway with su if you can already sudo to root, since root is all powerful).
bitvector wrote:If you need to add users to sudoers, just edit your /etc/sudoers file and add a line like this:
- Code: Select all
username ALL=(root) ALL
That will allow the user account "username" to run sudo and become root by typing in his own password.
Perhaps you were using "su" instead of "sudo" before?zer0 wrote:Now I can no longer enter the root password when using sudo regardless of whether I'm in a VT or the GUI. Although according to you guys, thats how it should be, so its fine with me.
You need to put it in the COMMANDS section at/near the end of the file. Your existing /etc/sudoers should have stuff in there commented out (lines starting with # are ignored) that looks a lot like the example statements I posted. For example, here is an excerpt from the default Fedora 8 sudoers file:zer0 wrote:So can I stick that line anywhere then?
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h nowbitvector wrote:You need to put it in the COMMANDS section at/near the end of the file.
zer0 wrote:looks like something called 'pcscd,' though I'm not exactly sure what I'm looking at. most of this stuff is completely new to me.
just brew it! wrote:The rationale here is that the user is already trusted (i.e. in order to use sudo they must have been explicitly added to the /etc/sudoers file by someone with root privileges)
how do I do that?
Moving windows around and dragging between screens seems to have no effect, its still perfectly smooth despite dragging my wobbly windows all around the cube (which by the way is the greatest time waster ever for someone whose never seen that before). But doing something as simple as clicking on an empty part of the desktop and dragging the mouse around as if I wanted to select several desktop icons or something like that cause the motion to get very jerky. This isn't a major concern of mine in itself, I'm just thinking its related to the high CPU usage.
BTW, when this happens to you again, try hitting Ctrl-Alt-+ or Ctrl-Alt-- (plus and minus sign -- they need to the ones on the numeric keypad specifically, though). Those key sequences tell the X server to make the screen resolution higher or lower. Since Ctrl-Alt-Backspace works to kill X, it means you are talking to X, you just don't have video. If this is some weirdness with video mode switching not properly restoring your display when going back and forth from virtual terminals and X, explicitly changing the screen resolution with those key sequences might "jog" it back to displaying something. Maybe not, but worth a try.zer0 wrote:Ctrl+Alt+F1 through F6 bring up a shell, F7 brings up the GUI, and F8 and above bring up a black screen that looks like it could be a shell, but there is no login prompt, only a blinking underscore character. This only started happening recently. also, if I go back to F6, the cursor changes as if its passing over text, etc, but I can't do anything. The interesting thing is, if I hit Ctrl+Alt+Backspace, I get the GUI login prompt and I can log back in, but all of my windows have been closed...
notfred wrote:I'm not sure why you would even be running pcscd on your system, I don't think you would need it.
zer0 wrote:notfred wrote:I'm not sure why you would even be running pcscd on your system, I don't think you would need it.
I don't even know what it is...
Return to Linux, Unix, and Assorted Madness
Users browsing this forum: No registered users and 1 guest