[SOLVED] sudo password is normal acct password..

Hey I'm very new to arch linux, and linux in general. Im a little confused about the following:
when I am logged in as my normal user account and input a command via sudo (ie sudo pacman...) it asks for password, but when I give it the password for my root account it won't accept it. However it does accept my password for my normal user account.  Im pretty confused about this :S
heres some info (if it helps):
[coleman@BEAST ~]$ id
uid=1000(coleman) gid=1000(coleman) groups=7(lp),10(wheel),91(video),92(audio),93(optical),95(storage),98(power),100(users),1000(coleman)
and my sudoer's file
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
# See the sudoers man page for the details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root    ALL=(ALL) ALL
coleman ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL) ALL
# Same thing without a password
# %wheel        ALL=(ALL) NOPASSWD: ALL
# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
how did this happen? cheers
Last edited by fuwhereisfu (2009-09-01 03:27:59)

If you want to actually switch to your root account try 'su' instead of 'sudo' (su = switch user; sudo = switch user, do once). su can actually be used for any user, but it does default to root.
Edit: Oops... little slow on the response that time... Eh, having a baby around will distract you sometimes
Last edited by Ghost1227 (2009-09-01 03:32:04)

Similar Messages

  • [SOLVED] Sudo does not accept user password

    Hello , again !
    usually i run root commands with sudo , and i enter my current user password and everything works !
    Today , i updated my Arch linux with :
    pacman -Syu
    and my arch upgraded to 3.4.2-2. 
    but when i want to run a command with sudo , i cannot use my current user password ?
    thankyou
    Last edited by arashroshan (2012-06-19 11:10:52)

    thank you for reply but i have read sudo wiki and also sudo was working before updating .
    by the way su is still working .
    here is my sudoer file :
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias    WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users.  These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias    ADMINS = millert, dowdy, mikef
    ## Cmnd alias specification
    ## Groups of commands.  Often used to group related commands together.
    # Cmnd_Alias    PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    #                           /usr/bin/pkill, /usr/bin/top
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"                                                                                                                               
    ## Run X applications through sudo; HOME is used to find the                                                                                                                                   
    ## .Xauthority file.  Note that other programs use HOME to find                                                                                                                                 
    ## configuration files and this may lead to privilege escalation!                                                                                                                               
    # Defaults env_keep += "HOME"                                                                                                                                                                   
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods.  Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot.  Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    ## Uncomment to allow members of group wheel to execute any command
    %wheel ALL=(ALL) ALL
    ## Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL
    #arashr ALL=(ALL) All
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw  # Ask for the password of the target user
    # ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    Last edited by arashroshan (2012-06-17 10:02:55)

  • [solved] Sudo works with user password instead of admin password.

    When i do a sudo command, it asks for a password. I enter my normal user password, and it works!
    It doesn't work if I enter root password. Is this normal?
    Last edited by trusktr (2010-07-27 10:14:15)

    gotcha! Thanks

  • [SOLVED] sudo doesn't ask password

    Hello everyone,
    I have a problem. when I run a command with sudo arch don't ask me my user password.
    In fact, if I launch:
    sudo -ll
    the result is:
    the user delvi can run the following command on delvi-arch:
    Voce sudoers:
    RunAsUsers: ALL
    option: !authenticate
    command: ALL
    this is not good for me. how do I remove the !authenticate option?
    P.S. sorry for my english... I'm italian.
    Last edited by delvi932905 (2014-10-27 17:11:30)

    my sudoers file:
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users. These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias ADMINS = millert, dowdy, mikef
    ## Cmnd alias specification
    ## Groups of commands. Often used to group related commands together.
    # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    # /usr/bin/pkill, /usr/bin/top
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    #Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    #Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    #Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    #Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    #delvi ALL=(ALL) PASSWD: ALL
    ## Uncomment to allow members of group wheel to execute any command
    #%wheel ALL=(ALL) ALL
    ## Same thing without a password
    # Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    #Defaults targetpw # Ask for the password of the target user
    #ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    # Reset environment by default
    Defaults env_reset
    # Set default EDITOR to nano, and do not allow visudo to use EDITOR/VISUAL.
    Defaults editor="/usr/bin/nano", !env_editor

  • Not able to change normal login password through ssh root login remotely

    I am able to login to serverb from servera as root user without password
    as i have set the ssh key authentication between the two servers
    ==============================================================
    bash-3.00# hostname
    servera
    bash-3.00# ssh serverb
    Sun Microsystems Inc. SunOS 5.9 Generic May 2002
    You have new mail.
    root@serverb # hostname
    serverb
    root@serverb #
    ==============================================================
    i am also able to execute remote commands from servera to serverb
    through ssh as root :
    ==============================================================
    bash-3.00# ssh serverb "hostname ; date ; uptime;id -a "
    serverb
    Friday December 11 16:52:10 GMT 2009
    4:52pm up 258 day(s), 2:24, 1 user, load average: 0.12, 0.07, 0.06
    uid=0(root) gid=1(other) groups=1(other),0(root),2(bin),3(sys),4(adm),5(uucp),6(mail),7(tty),8(lp),9(nuucp),12(daemon),1001(srsncadm
    bash-3.00#
    ==============================================================
    But when i try to change a normal users login password it give me the following
    error even as root user, can someone please let me know why it preventing
    from a normal login password change though ssh even for a superuser account
    =============================================================
    bash-3.00# ssh serverb passwd testuser
    Permission denied
    bash-3.00#

    You cannot "ssh passwd username" remotely, for one thing. Remember, the passwd command is going to ask for input from the terminal.
    Also, look into the pfexec man page because you might need to change roles in order to change the password on the remote system.

  • TS2446 I changed my password after the acct. being disabled.  It is still not working.  How long does it take?  And how do I make it work again?

    I changed my password after the acct. was disabled.  We had to dispute some charges and got it worked out.  The new password won't work and thats what we were told to do.  How long does it take for the new password to take effect?  And is there something else we should do?

    Contact itunes support

  • [Solved] sshfs connection: Nothing happens after password prompt

    Hey,
    I'm trying to mount a remote folder via ssh.
    User on the server side is different from local user.
    After entering sshfs -C userserver@server:serverfolder clientfolder I get the password promptfor userserver. Then nothing more happens.
    I've read the troubleshooting section of sshfs and , of course, shh connection is working.
    But what is going wrong here?
    Last edited by dbacc (2015-03-08 19:17:40)

    For comparison, here's my output:
    $ sshfs -d -o sshfs_debug -o LOGLEVEG=DEBUG3 service@clusterfrak:/tmp /tmp/test
    SSHFS version 2.5
    FUSE library version: 2.9.3
    nullpath_ok: 0
    nopath: 0
    utime_omit_ok: 0
    executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-oLOGLEVEL=DEBUG3> <-2> <service@clusterfrak> <-s> <sftp>
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to clusterfrak [199.200.1.140] port 22.
    debug1: Connection established.
    debug1: identity file /home/testing/.ssh/id_rsa type 1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_rsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_dsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_dsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ecdsa type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ecdsa-cert type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ed25519 type -1
    debug1: key_load_public: No such file or directory
    debug1: identity file /home/testing/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_6.7
    debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7
    debug1: match: OpenSSH_6.7 pat OpenSSH* compat 0x04000000
    debug2: fd 3 setting O_NONBLOCK
    debug3: load_hostkeys: loading entries for host "clusterfrak" from file "/home/testing/.ssh/known_hosts"
    debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:3
    debug3: load_hostkeys: loaded 1 keys
    debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug2: kex_parse_kexinit: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ssh-rsa,ssh-dss
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected],arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1,[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
    debug2: kex_parse_kexinit: none,[email protected],zlib
    debug2: kex_parse_kexinit: none,[email protected],zlib
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: kex_parse_kexinit: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
    debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],[email protected]
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit: none,[email protected]
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit:
    debug2: kex_parse_kexinit: first_kex_follows 0
    debug2: kex_parse_kexinit: reserved 0
    debug2: mac_setup: setup [email protected]
    debug1: kex: server->client aes128-ctr [email protected] none
    debug2: mac_setup: setup [email protected]
    debug1: kex: client->server aes128-ctr [email protected] none
    debug1: sending SSH2_MSG_KEX_ECDH_INIT
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug1: Server host key: ECDSA 1b:38:0e:15:39:c6:93:37:12:fb:62:32:c9:ce:cb:b1
    debug3: load_hostkeys: loading entries for host "clusterfrak" from file "/home/testing/.ssh/known_hosts"
    debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:3
    debug3: load_hostkeys: loaded 1 keys
    debug3: load_hostkeys: loading entries for host "199.200.1.140" from file "/home/testing/.ssh/known_hosts"
    debug3: load_hostkeys: found key type ECDSA in file /home/testing/.ssh/known_hosts:2
    debug3: load_hostkeys: loaded 1 keys
    debug1: Host 'clusterfrak' is known and matches the ECDSA host key.
    debug1: Found key in /home/testing/.ssh/known_hosts:3
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: Roaming not allowed by server
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug2: key: /home/testing/.ssh/id_rsa (0x7fbb6e500e10),
    debug2: key: /home/testing/.ssh/id_dsa ((nil)),
    debug2: key: /home/testing/.ssh/id_ecdsa ((nil)),
    debug2: key: /home/testing/.ssh/id_ed25519 ((nil)),
    debug1: Authentications that can continue: publickey,password
    debug3: start over, passed a different list publickey,password
    debug3: preferred publickey,keyboard-interactive,password
    debug3: authmethod_lookup publickey
    debug3: remaining preferred: keyboard-interactive,password
    debug3: authmethod_is_enabled publickey
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /home/testing/.ssh/id_rsa
    debug3: send_pubkey_test
    debug2: we sent a publickey packet, wait for reply
    debug1: Authentications that can continue: publickey,password
    debug1: Trying private key: /home/testing/.ssh/id_dsa
    debug3: no such identity: /home/testing/.ssh/id_dsa: No such file or directory
    debug1: Trying private key: /home/testing/.ssh/id_ecdsa
    debug3: no such identity: /home/testing/.ssh/id_ecdsa: No such file or directory
    debug1: Trying private key: /home/testing/.ssh/id_ed25519
    debug3: no such identity: /home/testing/.ssh/id_ed25519: No such file or directory
    debug2: we did not send a packet, disable method
    debug3: authmethod_lookup password
    debug3: remaining preferred: ,password
    debug3: authmethod_is_enabled password
    debug1: Next authentication method: password
    debug2: we sent a password packet, wait for reply
    debug1: Authentication succeeded (password).
    Authenticated to clusterfrak ([199.200.1.140]:22).
    debug2: fd 4 setting O_NONBLOCK
    debug3: fd 5 is O_NONBLOCK
    debug2: fd 6 setting O_NONBLOCK
    debug1: channel 0: new [client-session]
    debug3: ssh_session2_open: channel_new: 0
    debug2: channel 0: send open
    debug1: Requesting [email protected]
    debug1: Entering interactive session.
    debug2: callback start
    debug2: fd 3 setting TCP_NODELAY
    debug3: packet_set_tos: set IP_TOS 0x08
    debug2: client_session2_setup: id 0
    debug1: Sending subsystem: sftp
    debug2: channel 0: request subsystem confirm 1
    debug2: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    debug2: channel 0: rcvd adjust 2097152
    debug2: channel_input_status_confirm: type 99 id 0
    debug2: subsystem request accepted on channel 0
    Server version: 3
    Extension: [email protected] <1>
    Extension: [email protected] <2>
    Extension: [email protected] <2>
    Extension: [email protected] <1>
    Extension: [email protected] <1>
    unique: 1, opcode: INIT (26), nodeid: 0, insize: 56, pid: 0
    INIT: 7.23
    flags=0x0003f7fb
    max_readahead=0x00020000
    INIT: 7.19
    flags=0x00000011
    max_readahead=0x00020000
    max_write=0x00020000
    max_background=0
    congestion_threshold=0
    unique: 1, success, outsize: 40

  • How can I enable firmware password for normal boot?

    I've enabled firmware password protection, but it won't work unless you try to boot in other mode ( like holding c, d or option to boot from other drives ). However, what I want is a complete lock from opening my computer. Is there a way to enforce this?
    Best Regards

    Even if with the firmware password, you're not safe. There are ways to bypass both the firmware password and the login password. To be as safe as possible:
    1) Turn on the firmware password, as you have done
    2) Turn off auto-login, so that users have to log in to use the machine
    3) Set the login window to ask for name and password instead of displaying a list of users
    4) Use good encryption with a good password to protect any sensitive data
    or,
    4b) Don't ever let the machine out of your sight!
    Disk Utility can help with #4 through use of encrypted sparse disk images on which you store sensitive data. File Vault can also help by encrypting your entire user folder, but IMHO this is a bad idea unless absolutely necessary, as it complicates backups and means that any little disk corruption could trash your entire user directory (since it'll be stored in one big, encrypted file).

  • [SOLVED] sudo doesnt work

    Hi guys,
    I'm having the strangest issues since my last installation of archlinux. First I could not login into any tty (after entering the username, nothing happened). I could solve that by installing the util-linux package. Now I cannot use sudo.
    The user is in the group wheel (which is uncommented in sudoers). I have changed nothing in the sudoers file, here's the content:
    ## sudoers file.
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ## See the sudoers man page for the details on how to write a sudoers file.
    ## Host alias specification
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias WEBSERVERS = www1, www2, www3
    ## User alias specification
    ## Groups of users. These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias ADMINS = millert, dowdy, mikef
    ## Cmnd alias specification
    ## Groups of commands. Often used to group related commands together.
    # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    # /usr/bin/pkill, /usr/bin/top
    ## Defaults specification
    ## You may wish to keep some of the following environment variables
    ## when running commands via sudo.
    ## Locale settings
    # Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    ## Run X applications through sudo; HOME is used to find the
    ## .Xauthority file. Note that other programs use HOME to find
    ## configuration files and this may lead to privilege escalation!
    # Defaults env_keep += "HOME"
    ## X11 resource path settings
    # Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    ## Desktop path settings
    # Defaults env_keep += "QTDIR KDEDIR"
    ## Allow sudo-run commands to inherit the callers' ConsoleKit session
    # Defaults env_keep += "XDG_SESSION_COOKIE"
    ## Uncomment to enable special input methods. Care should be taken as
    ## this may allow users to subvert the command being run via sudo.
    # Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot. Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/usr/local/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    ## Runas alias specification
    ## User privilege specification
    root ALL=(ALL) ALL
    ## Uncomment to allow members of group wheel to execute any command
    %wheel ALL=(ALL) ALL
    ## Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw # Ask for the password of the target user
    # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    In the auth.log there are following lines which seem to be important:
    Jul 12 13:46:18 localhost sudo: PAM _pam_init_handlers: no default config /etc/pam.d/other
    Jul 12 13:46:21 localhost sudo: PAM no modules loaded for `sudo' service
    Jul 12 13:46:22 localhost sudo: pam_unix(sudo:auth): conversation failed
    Jul 12 13:46:22 localhost sudo: pam_unix(sudo:auth): auth could not identify password for [archUser]
    Jul 12 13:46:22 localhost sudo: archUser: 1 incorrect password attempt ; TTY=pts/2 ; PWD=/home/archUser; USER=root ; COMMAND=/usr/bin/pacman -Syyuu
    So I looked up the content of /etc/pam.d/sudo:
    root@arch /etc/pam.d # cat sudo
    #%PAM-1.0
    auth required pam_unix.so
    auth required pam_nologin.so
    The files pam_unix.so and pam_nologin.so are both saved in /usr/lib/security.
    I noticed that if I enter the password wrong, I need to wait one or two seconds before I can try it again (this behaviour seems to be normal). But when I enter the password correct, there is no waiting time and I can enter the pass again.
    I have no idea what to do and hope that anyone can help me to use sudo again.
    4 years ago, after installing archlinux the first time, I had not a single error. Everything worked just fine but now I get two errors at once after the installation!
    --blackdeagle
    Last edited by blackdeagle (2012-07-12 14:05:53)

    blackdeagle wrote:
    65kid wrote:
    blackdeagle wrote:Please stay away from my thread! I don't need people like you telling me to search the forums and which parameters I can use and which not!
    seriously? it is stated in multiple news, the wiki and in about every third forum thread that you shouldn't use force unless you know exactly what you are doing or you are explicitly told to use it. I don't blame you that you didn't notice this, a lot of people don't (unfortunately). But when people correct you and want to help you are like "whatever, I do what I want! go away!" ???
    And what do you think the search function is for?
    Please stay away from Arch... geez...
    Come on, do you seriously think you are the only one using the search function? Show me some threads with the solution for my issue!
    https://bbs.archlinux.org/viewtopic.php?id=143335
    https://bbs.archlinux.org/viewtopic.php?id=144079
    https://bbs.archlinux.org/viewtopic.php?id=143487
    https://bbs.archlinux.org/viewtopic.php?id=142729
    https://bbs.archlinux.org/viewtopic.php?id=142720
    https://bbs.archlinux.org/viewtopic.php?id=142941
    https://bbs.archlinux.org/viewtopic.php?id=144599

  • Administra​tor password or power on password

    when I turn my computer onI get a black screen with a blue box that says enter administrator password or power on password how can I get past this because I've forgotten my passwordplease help me after 3 tries I get the code 758 98382
    This question was solved.
    View Solution.

    Kat try.
    60790904
    REO
    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damage that may arise to your system by using these services. Please be aware that you do this at your own risk.
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

  • Hello I cant activate my iphone 5 because iCould is not responding my password it says your password wrong but I Know what is my password please help me

    Hello guys;
    I trouble because my iPhone 5 is not activating because iCould is not responding but ı know what is my password but iCould says passwords wrong please help me..

    Try to do a reset, if it doesn't work try remove recently added apps this may solve your problem ( like google app because it has happened with me)
    Take a look at apps using your location service in privacy, it can cause battery draining.

  • [Solved] Sudo Configuration (NOPASSWD)

    I am currently trying to configure sudo to not use a password for specific commands.  I am specifically doing this for netcfgGUI, however I will use more basic independent commands to demonstrate my issue.
    If I do the following sudo does not require a password for any commands for any user in group wheel as expected.
    %wheel ALL=(ALL) NOPASSWD: ALL
    Now if I change this to affect only a certain command like so:
    %wheel ALL=(ALL) NOPASSWD: /bin/ls
    or
    %wheel ALL=NOPASSWD: /bin/ls
    I get the following error:
    sudo: sorry, you are not allowed to preserve the environment
    Does anyone know what I am doing wrong?
    Last edited by Tyriel (2009-11-17 14:52:04)

    deej wrote:Are you using the 'visudo' command ?
    Deej
    Yes I am using visudo
    t4k1t wrote:
    Do you use sudo -E? Or have set an alias like
    alias sudo="sudo -E"
    Ahh that was it, I forgot I did not commented out the alias of "sudo -E" in my .bashrc.  Thanks for the help guys
    Last edited by Tyriel (2009-11-17 14:51:29)

  • [SOLVED] sudo problem??

    There's an issue with my sudo command. I have installed the package set up my sudoers file properly. Everytime I call sudo it gives me the password prompt but when I type my account's password it says it's INCORRECT. I have no issues logging in or anywhere else.
    So far I have been able to circumvent this issue by using the NOPASSWD: tag in the sudoers file, but I'd really like to pin down the issue.
    Thanks in advance.
    Edit: Reinstalling pambase does the trick.
    Last edited by vasuman (2012-06-26 18:46:00)

    *cough* ...search function... *cough*
    https://bbs.archlinux.org/viewtopic.php?id=143487
    https://bbs.archlinux.org/viewtopic.php?id=142729
    https://bbs.archlinux.org/viewtopic.php?id=142720
    https://bbs.archlinux.org/viewtopic.php?id=142941
    https://bbs.archlinux.org/viewtopic.php?id=143335

  • [solved] sudo and yaourt problems after recent updates

    After recent updates (past week) yaourt started giving me problems. When using yaourt it prompts me for sudo password but it does not seem to use my sudo configuration.
    I get this:
    [sudo] password for root:
    [sudo] password for root:
    Password:
    su: Authentication failure
    Password:
    When entering mine or root's password I just get prompt again. The last password is for su, which when I enter root's works.
    It seems sudo is not using /etc/sudoers configuration either, as I have things like insults enabled and it used to work previously.
    Any reason for this?
    sudo works fine otherwise.
    Last edited by wrm (2014-03-29 23:12:26)

    Looks like this: https://github.com/archlinuxfr/yaourt/issues/5
    And this: https://bbs.archlinux.org/viewtopic.php?id=178776
    Last edited by 2ManyDogs (2014-03-24 21:33:40)

  • [SOLVED] Sudo not responding to sudoers

    Hi all,
    I have edited my sudoers file, but sudo seems not to be responding. All I want is to be able to do the SHUT and PAC commands (see below), without a password. I also don't want to enter a password for each terminal (i.e. tty_tickets).
    I made the below changes, and then restarted my computer --- none of the changes appear to have been implemented.
    Any ideas?
    Cmnd_Alias SHUT = /usr/sbin/pm-sleep, /usr/sbin/pm-hibernate, /usr/sbin/shutdown, \
    /usr/sbin/reboot, /usr/bin/vlock
    Cmnd_Alias PAC = /usr/bin/pacman
    ## User privilege specification
    root ALL=(ALL) ALL
    ## Uncomment to allow members of group wheel to execute any command
    %wheel ALL=(ALL) ALL
    ## Same thing without a password
    # %wheel ALL=(ALL) NOPASSWD: ALL
    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL
    ## Uncomment to allow any user to run sudo if they know the password
    ## of the user they are running the command as (root by default).
    # Defaults targetpw # Ask for the password of the target user
    # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
    ## Read drop-in files from /etc/sudoers.d
    ## (the '#' here does not indicate a comment)
    #includedir /etc/sudoers.d
    Defaults timestamp_timeout=60
    Defaults !lecture,tty_tickets,!fqdn,insults
    #let archimedes do SHUT
    archimedes ALL = (ALL) NOPASSWD: SHUT, NOPASSWD: PAC
    Last edited by ianhoolihan (2012-01-12 02:02:51)

    Change
    archimedes ALL = (ALL) NOPASSWD: SHUT, NOPASSWD: PAC
    to
    archimedes ALL=(ALL) NOPASSWD: SHUT, NOPASSWD: PAC

Maybe you are looking for

  • Need to make links unclickable in a PDF

    The company I currently work for is looking for a solution to a PDF issue.  Currently I know anything that looks like a link becomes a link when you open it with Adobe Reader or Standard/Pro.  I know there is an option per user to turn this feature o

  • How can I set the printer to continuously print from a roll of paper?

    I need to print something continuously from one long piece of paper. I have googled this but all I find are answers on how to do this with an epsom printer! Just got my first HP printer today (J110) and pleased with it so far, but I'm having trouble

  • Hi i just bought my ipod nano today..........

    hi my name is denzel and i wanted to no how would i be able to delete songs and photos out of my ipod.............thank you

  • Forgot password to start up the computer

    Forgot password to start up the computer I have tried all my passwords but nothing works

  • Web Proxy Server 4.0.6 released

    Web Proxy Server 4.0.6 has been released and is available for download. http://www.sun.com/download/products.xml?id=4701e042 All users of Web Proxy Server 4.0.x are encouraged to update.