Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-29-2009, 12:14 PM   #1
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
/bin/nologin: No such file or directory

I have been following the link for Setting up cyrus for POP3 in Fedora through
When I tried to login as cyrus through:
[root@localhost ~]# su cyrus
su: /bin/nologin: No such file or directory
root@localhost ~]# id cyrus
uid=76(cyrus) gid=12(mail) groups=12(mail),76(saslauth)
[root@localhost ~]#

Also when I am trying to run:
[root@localhost ~]# service cyrus-imapd start
Importing cyrus-imapd databases: runuser: /bin/nologin: No such file or directory
[root@localhost ~]# ^C

Whats the Issue?

Last edited by your_shadow03; 10-29-2009 at 12:26 PM.
Old 10-29-2009, 12:24 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I believe the shell should be /sbin/nologin. The easiest thing might be to make a symlink from /bin/nologin to /sbin/nologin.

Otherwise, edit the /etc/passwd file to point the cyrus user's shell at /sbin/nologin instead.
Old 10-29-2009, 12:29 PM   #3
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
[root@innovation1 ~]# cat /etc/passwd | tail -n 1
cyrus:x:76:12:Cyrus IMAP Server:/var/lib/imap:/bin/nologin
You have new mail in /var/spool/mail/root
[root@innovation1 ~]#

Is that enough?
but again that dont work.
Old 10-29-2009, 02:32 PM   #4
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Run something like locate nologin in a terminal. Use the full path of what you find in /etc/passwd

It might not exist in your distro (not familiar with fedora); you might also be able to use false (locate false)

wim@desktop1:~$ locate nologin
wim@desktop1:~$ locate false


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
strange filename/file in my /usr/bin directory M$ISBS Linux - Security 1 06-04-2006 08:55 PM
/bin/false vs /sbin/nologin - difference? ziggie216 Linux - General 1 12-22-2005 03:59 AM
/bin/sh: ro: No such file or directory Kernel Panic rchrismon Linux - General 2 10-29-2005 10:30 PM
/tools/bin/env: /tools/bin/bash: No such file or directory DaZjorz Linux From Scratch 21 07-27-2005 08:11 AM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 03:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration