Linux: getpassword error: inappropriate ioctl for device

Discussion in 'Linux' started by securityhope, Feb 21, 2017.

  1. securityhope

    securityhope Administrator Staff Member

    Joined:
    Aug 3, 2016
    Messages:
    1,241
    Likes Received:
    0
    Trophy Points:
    36
    I installed tigervnc-server package in server.

    [root@localhost ~]# rpm -qa tigervnc
    tigervnc-1.1.0-16.el6.x86_64

    Created a vnc user and created vncpasswd also for that user.

    [root@localhost ~]# useradd vnc
    [root@localhost ~]# vncpasswd vnc
    Password:
    Verify:
    [root@localhost ~]#

    In /etc/sysconfig/vncserver I changed these 2 lines

    VNCSERVERS="2:vnc"
    VNCSERVERARGS[2]="-geometry 800x600"

    While starting service it's giving this error.

    [root@localhost ~]# service vncserver start
    Starting VNC server: 2:vnc
    You will require a password to access your desktops.

    getpassword error: Inappropriate ioctl for device
    Password: [FAILED]
    [root@localhost ~]#

    Why I am getting this error ?

    Answer:

    This error occurs most often because the configured user doesn't have a vncpasswd set. To fix this, as the user simply execute 'vncpasswd' and follow the prompts. It's just like passwd so you should already be familiar with it.

    Searches related to getpassword error: inappropriate ioctl for device

    • stty standard input inappropriate ioctl for device linux
    • inappropriate ioctl for device bash
    • reset: standard error: inappropriate ioctl for device
    • inappropriate ioctl for device ubuntu
    • inappropriate ioctl for device vagrant
    • error: inappropriate ioctl for device vmware
    • inappropriate ioctl for device python
    • you will require a password to access your desktops.
     

Share This Page

Share