Jump to content

Warning message during installation on Debian referring to nonexistent shell "/usr/bin/nologin"


JMLatemby
 Share

Recommended Posts

JMLatemby

Hi there, during "dpkg -i emby-server-deb_4.6.2.0_amd64.deb" on Debian, the following warning message is issued:

Quote

useradd: Warning: missing or non-executable shell '/usr/bin/nologin'

Checking the user definitions for user "emby", the above-mentioned wrong shell entry is indeed present:

admin@emby:~# cat /etc/passwd | grep ^emby
emby:x:998:998:Emby Server:/var/lib/emby:/usr/bin/nologin

The correct nologin shell definition under Debian is "/usr/sbin/nologin". I did adjust the entry accordingly.

  • Agree 1
Link to comment
Share on other sites

Q-Droid

I'm seeing the same thing in the postinstall scriptlet for the 4.6.2.0 CentOS rpm. As posted above the common location for nologin is sbin.

getent passwd emby > /dev/null 2>&1 && usermod -c 'Emby Server' -g emby -d /var/lib/emby -m -s /usr/bin/nologin emby
getent passwd emby > /dev/null 2>&1 || (useradd -r -c 'Emby Server' -g emby -d /var/lib/emby -m -s /usr/bin/nologin emby && passwd -l emby > /dev/null && chown emby:emby -R /var/lib/emby)
 

 

Link to comment
Share on other sites

We'll take a look at it. Thanks for reporting.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...